Commit graph

815 commits

Author SHA1 Message Date
Phil Hagelberg
b4943e1caa Allow :clean-non-project-classes to be a seq of regexes. 2010-12-24 21:24:34 -08:00
Phil Hagelberg
665ab9afc3 Add sample.project.clj to static-help pages. 2010-12-24 20:48:10 -08:00
Phil Hagelberg
19b44647cc Rework some of sample.project.clj. 2010-12-24 20:48:10 -08:00
Phil Hagelberg
65a2dc461b Switch from JAVA_OPTS to JVM_OPTS. The former retained as an alias for now. 2010-12-24 20:48:10 -08:00
Alex Osborne
3f299cc560 Fix lein run first argument bugs.
There were three related problems:

1) The first argument was always parsed with read-string, even
   when defaulting to the :main namespace.  This caused
   non-numeric first arguments to throw:

   Exception in thread "main" java.lang.Exception: Unable to
   resolve symbol: foo in this context

   Avoid read-string entirely and update the unit tests to use an
   unreadable string instead of a number to make the problem obvious.

   This problem was reported by Marek Kubica on the Clojure
   mailing list.

2) When using an alias the alias keyword was passed to -main as the
   first argument.  This is inconsistent with how the -m and :main
   simply pass the program arguments, not the namespace or -m flag.

3) There was no way to pass "-m" or a string beginning with ":"
   as a first argument to the run program.  Added "--" as an option
   to escape these.
2010-12-24 23:41:23 +11:00
Matjaz Gregoric
b61da8cdb1 Make lein.bat save self-install jars into LEIN_HOME 2010-12-18 11:20:34 +01:00
Matjaz Gregoric
6bab430a4e Enable extensions in lein.bat. 2010-12-18 10:43:11 +01:00
Matjaz Gregoric
637a05ccc0 Fix a lein.bat bug when run from the root folder.
When running lein commands from the root folder on windows (such as "C:\"),
special care needs to be taken to escape the final backslash.
2010-12-18 10:12:36 +01:00
Matjaz Gregoric
24b2403a4b Fix a bug in lein.bat when LEIN_DIR contains parens.
lein.bat would fail to run when installed into a folder whose path name
contains parentheses (such as "Program Files (x86)").
2010-12-18 09:37:17 +01:00
Matjaz Gregoric
95d8be568f Let plugins take precedence in lein.bat when running from checkout. 2010-12-17 09:09:37 +01:00
Matjaz Gregoric
a7240bf625 Update README to point to the latest windows release. 2010-12-17 09:07:38 +01:00
Phil Hagelberg
a246815bf4 Release 1.4.1. 2010-12-16 21:41:44 -08:00
Phil Hagelberg
f999dd890d Update NEWS for 1.4.1. 2010-12-16 21:28:36 -08:00
Phil Hagelberg
9f12894edb Fix bug where plugins didn't take precedence in lein checkouts. 2010-12-15 20:38:27 -08:00
Phil Hagelberg
c960e5f2f3 Allow boosting :repl-retry-limit in project.clj for slow-starting projects. 2010-12-14 21:56:28 -08:00
Matjaz Gregoric
1dd6b7f72e Point to the fixed windows zip file in README. 2010-12-14 09:04:04 +01:00
Phil Hagelberg
c5c760329b Add a test for :skip-aot on :main. Fixes #145. 2010-12-13 22:56:10 -08:00
Phil Hagelberg
c4271c07c6 Switch off :clean-non-project-classes by default. Fixes #141. 2010-12-13 22:49:31 -08:00
Phil Hagelberg
1ee9d5d73c Allow :main to not trigger AOT with :skip-aot metadata. 2010-12-13 22:47:31 -08:00
Phil Hagelberg
68737acdab Indentation for native-names. 2010-12-13 22:45:14 -08:00
Phil Hagelberg
70dc18aebb Switch test project to not use missing Clojure snapshot. 2010-12-13 22:45:02 -08:00
Phil Hagelberg
9ab508e0b8 Make :deps/:dev-deps aliases for :dependencies/:dev-dependencies. 2010-12-12 20:38:15 -08:00
Colin Jones
37b7d2e602 Clean up after test runs. 2010-12-11 11:52:09 -06:00
Colin Jones
ab0b046528 Unshadow clojure.core/name to get tests passing again. 2010-12-11 11:46:43 -06:00
Colin Jones
a4a517b990 Fix argument order for install & plugin install.
This was breaking installs of things like
org.clojars.trptcolin/libthrift (where the group ID had
periods).
2010-12-11 11:27:14 -06:00
Phil Hagelberg
a8349c1a7e Support setting clojure.debug system property. 2010-12-09 22:06:47 -08:00
Matjaz Gregoric
a47bc71b79 Fix a test that wasn't testing anything. 2010-12-09 22:01:08 -08:00
Matjaz Gregoric
e228b91ff5 Make paths absolute when reading project.clj.
Relative paths are assumed to be relative to the root of the project.
2010-12-09 22:01:08 -08:00
Phil Hagelberg
fd61cd5bae Wrap leiningen.original.pwd in quotes. Fixes #143. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
b66a046609 Fix tests to reflect sample project version change. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
de9c54fac2 Mention :keep-non-project-classes in sample.project.clj. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
cc62c1a818 Don't allow release versions that depend upon snapshots. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
887d75de52 Fail correctly in chained tasks. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
8bb9f39a7c Fix exit code of test! task. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
e0cc603fba Bump to version 1.4.1-SNAPSHOT. 2010-12-09 12:46:33 -08:00
Matjaz Gregoric
dba3a51bdc Update README to point to the latest windows distribution. 2010-12-09 21:18:37 +01:00
Phil Hagelberg
b3e113f211 Release 1.4.0. 2010-12-02 18:29:06 -08:00
Phil Hagelberg
ce1fe52c97 Switch to $() shell execution for font-lock purposes. 2010-12-02 18:17:36 -08:00
Phil Hagelberg
b3fe397891 Switching all Github URLs to https. 2010-12-02 18:16:25 -08:00
Phil Hagelberg
10ef6f7323 Clarify checkout dependency FAQ. 2010-12-02 18:10:17 -08:00
Phil Hagelberg
baf1083dd4 No need to skip dev-deps when creating jar. 2010-12-02 18:09:45 -08:00
Phil Hagelberg
b32780d9f0 Support static docs in help task. (readme, tutorial, news, licensing.) 2010-12-01 22:11:53 -08:00
Phil Hagelberg
c10769d857 No quotes on repl start message. 2010-11-27 13:52:32 -08:00
Phil Hagelberg
e048036469 Fix sample.project.clj documentation of :repl-options. 2010-11-27 13:46:55 -08:00
Phil Hagelberg
3926a0f1b5 Fix rlwrap detection on Solaris. 2010-11-26 14:41:11 -08:00
Phil Hagelberg
f3165d686d Conditionally exit after test runs only. 2010-11-26 14:39:33 -08:00
Phil Hagelberg
2ac42819c7 Revert *exit-when-done* addition. Too drastic. 2010-11-26 14:37:01 -08:00
Phil Hagelberg
ab0b885aab Mention :test-selectors in sample.project.clj. 2010-11-24 21:18:47 -08:00
Phil Hagelberg
c444d4e4e9 Recanting the error of my ways: import classes belong in (), not [].
See http://p.hagelb.org/import-indent.html for justification.
2010-11-24 20:59:16 -08:00
Phil Hagelberg
172adf89a2 Move try/catch from repl task to eval-in-project. 2010-11-24 20:46:54 -08:00