Commit graph

612 commits

Author SHA1 Message Date
Phil Hagelberg
6d404a8422 Explicitly use bash in bin/lein.
We've done this for a while in 1.x; just moving the change to this branch.
2012-05-03 10:52:15 -07:00
Phil Hagelberg
aa1b11969c Drop the --no-check-certificate argument to wget.
This was necessary early on due to a bug where libssl wouldn't
recognize the specific certificate github was using. If you're stuck
on this old version and are having trouble, try exporting
`HTTP_CLIENT=wget --no-check-certificate -O` to get the old behaviour back.
2012-05-03 10:51:32 -07:00
Mark Baran
e474ad270f Fix for trampoline command parsing on Windows. 2012-04-30 15:25:14 -07:00
Andrew Kondratovich
d919f1211f #541 2012-04-30 10:20:27 +03:00
Juergen Hoetzel
e03989d1c2 fix LEIN_HOME path when running under cygwin (required for user profiles) 2012-04-14 12:18:35 -07:00
Juergen Hoetzel
d539c0edbb lein classpath: Accept optional output-file
Aether writes debug information to stdout, resulting in invalid
classpath entries like:

Could not find artifact lein-newnew:lein-newnew:pom:0.2.6 in
central (http://repo1.maven.org/maven2)
2012-04-14 19:12:34 +02:00
Phil Hagelberg
55935d01e9 Remove "bundled mode" from bin/lein. 2012-04-12 11:50:11 -07:00
Phil Hagelberg
030632acf6 Bump back to snapshot. 2012-04-12 10:37:34 -07:00
Phil Hagelberg
a95f990227 Release 2.0.0-preview3. 2012-04-12 10:18:32 -07:00
Phil Hagelberg
6f1638b1a0 Port arbitrary version upgrades from 1.7.1. 2012-04-07 12:40:14 -07:00
Phil Hagelberg
62a8fc107d Remove plugin stuff from 1.x out of lein.bat. 2012-04-01 22:34:15 -07:00
Phil Hagelberg
030e41d72e Remove jline from lein.bat. 2012-04-01 09:17:27 -07:00
Phil Hagelberg
39a6b2c63a Remove Clojure 1.2 from bootclasspath in lein.bat. Might fix #486. 2012-03-31 16:09:42 -07:00
Phil Hagelberg
d7a835efa9 We don't use CLOJURE_JAR anymore.
[ci skip]
2012-03-27 16:13:17 -07:00
Andrew Kondratovich
9afede1820 fixed normal/trampoline statement and arguments 2012-03-23 13:33:59 +03:00
Andrew Kondratovich
f28018a075 fixed lein self-install on windows 2012-03-21 20:32:30 +03:00
Phil Hagelberg
352e8d3f05 Fix target/classes vs classes mismatch in bin/lein.
In conclusion, freaking protocols.
2012-03-19 15:37:40 -07:00
Phil Hagelberg
245b036a4a Back to 2.0.0-SNAPSHOT. 2012-03-11 21:06:48 -07:00
Phil Hagelberg
82bbd3b601 Release 2.0.0-preview2. 2012-03-08 20:33:47 -08:00
Phil Hagelberg
cc711200a4 Move version back to 2.0.0-SNAPSHOT. 2012-03-07 14:24:03 -08:00
Phil Hagelberg
efe16d5dee Release 2.0.0-preview1. 2012-03-07 12:06:48 -08:00
Phil Hagelberg
201afa4830 Do full AOT in Leiningen project itself.
Can't get it to boot in under a second otherwise.
2012-03-07 11:30:26 -08:00
Phil Hagelberg
fe14bed743 Make "lein upgrade" look at preview branch. 2012-03-06 19:49:10 -08:00
Phil Hagelberg
15f0540c04 Use bootstrap classpath for Leiningen. 2012-03-06 19:49:04 -08:00
Phil Hagelberg
532496a1ab Merge branch '1.x'
Conflicts:
	.gitignore
	README.md
	bin/lein
	project.clj
	src/leiningen/compile.clj
	src/leiningen/core.clj
	src/leiningen/help.clj
	src/leiningen/jar.clj
	src/leiningen/repl.clj
	test/leiningen/test/deps.clj
	test/leiningen/test/help.clj
	todo.org
2012-03-04 21:22:20 -08:00
Phil Hagelberg
29c262da3b Don't put $LEIN_DIR/lib on the classpath; that's deprecated. 2012-02-25 22:01:53 -08:00
Tobias Crawley
95aa910052 Bash isn't necessary. 2012-02-16 15:38:19 -05:00
Tobias Crawley
ce65b18049 Allow lein to run when called with no tasks and no .lein-classpath
In that case, $1 isn't set, causing sh to barf on the test.
2012-02-16 15:34:53 -05:00
guns
449c78f490 Replace whoami with id -u test
`id -u` is in the POSIX and LSB specs [1], while `whoami` is not.
Furthermore, the username of UID 0 can be changed (and is sometimes
recommended in a misguided attempt to increase security).

FreeBSD users logged in as `toor` would also slip through the cracks.

[1]: http://pubs.opengroup.org/onlinepubs/009695399/utilities/id.html
     http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/command.html
2012-02-09 18:58:11 -06:00
Phil Hagelberg
80e2b20378 Use absolute paths when checksumming lein's own project.cljs. 2012-02-07 20:26:23 -08:00
Phil Hagelberg
dad9b14cd4 Drop JLine/rlwrap since we have reply. Allow any task to trampoline. 2012-02-07 20:10:51 -08:00
Phil Hagelberg
61f91add22 Fix lein-classpath calculation; the shell hates me for some reason? 2012-02-07 19:00:30 -08:00
Phil Hagelberg
52a51c3570 Recalculate .lein-classpath when project.clj changes. 2012-02-07 18:25:07 -08:00
Phil Hagelberg
30bdafc9d6 Promote leiningen-core/src in classpath when working in checkout. 2012-02-07 17:09:08 -08:00
Phil Hagelberg
622cd625d9 Calculate lein's own classpath in bin/lein.
Bootstrapping like a boss.
2012-01-23 19:17:14 -08:00
Phil Hagelberg
b4661d8cb9 Tidy up from-checkout classpath setup. 2012-01-17 15:11:24 -08:00
Phil Hagelberg
d49099eba6 Fix running-from-a-checkout detection in bin/lein. 2012-01-17 14:57:24 -08:00
Phil Hagelberg
cea185d334 Tiered compilation in bin/lein. 2012-01-17 14:55:24 -08:00
Phil Hagelberg
d8190b1cb7 Move -main to leiningen.core.main. 2012-01-15 20:20:02 -08:00
Phil Hagelberg
042ec19404 Update readme for lein2. 2012-01-12 16:10:32 -08:00
Phil Hagelberg
e0e0fe24ac Keep Clojure off the bootstrap classpath temporarily. 2011-12-02 20:53:04 -08:00
Phil Hagelberg
e4d786143d Read plugins from ~/.lein/plugins2 for now.
Context:

<technomancy> Scheeeeeeeeeeeeeeeeiiiiiiiiiiiiiiiiiß  [20:32]
<technomancy> user-level plugins have to be on the classpath ahead of
              leiningen's own jar, or they can't override built-in tasks
                                                                     [20:33]
<technomancy> but that means plugins *cannot* be compatible between
              Leiningen 1.x and 2.x
<technomancy> as long as they pull in clojure
<technomancy> because each plugin is an uberjar
<technomancy> bugger. that.  [20:34]
<technomancy> maybe we can add a global exclusion for org.clojure/clojure
              at plugin install time
2011-12-02 20:49:32 -08:00
Phil Hagelberg
9fae735af7 Add leiningen-core's src/ dir to the bin/lein classpath.
checkout-deps don't work in eval-in-project, but this is just as good.
2011-12-02 19:16:34 -08:00
Phil Hagelberg
74fcb25976 OK, now lein version at least runs again. Whew! 2011-11-19 21:07:34 -08:00
Phil Hagelberg
51ceffdc06 Switch from leiningen.core to leiningen.main. 2011-11-19 20:44:21 -08:00
Matjaz Gregoric
1dd8d145db Properly escape USERPROFILE in lein.bat.
Closes #331.
2011-11-17 09:05:51 +01:00
Phil Hagelberg
f3e2518730 Add quotes to JVM_OPTS in bin/lein. 2011-11-12 13:48:33 -08:00
Phil Hagelberg
3b02d41e83 Merge branch '1.x'
Conflicts:
	README.md
	bin/lein
	bin/lein-pkg
	bin/lein.bat
	doc/PLUGINS.md
	pom.xml
	project.clj
	src/leiningen/compile.clj
	src/leiningen/trampoline.clj
	todo.org
2011-11-12 13:46:59 -08:00
Phil Hagelberg
9c94368393 Release 1.6.2. 2011-11-12 11:30:55 -08:00
Phil Hagelberg
005b1612e4 Use $PWD when determining "bundled lein". 2011-11-11 14:59:06 -08:00
Matjaz Gregoric
8a3c5de4ad Implement bundled mode in lein.bat. 2011-11-11 23:45:02 +01:00
Phil Hagelberg
53726ef2fe Running in $HOME is not running in bundled mode. 2011-11-11 08:49:50 -08:00
Phil Hagelberg
68bc6ff905 Port relevant changes from bin/lein to bin/lein-pkg. 2011-11-11 08:26:42 -08:00
Phil Hagelberg
c0fb992dfa Pull in updated lein-pkg from Debian. 2011-11-11 08:10:37 -08:00
Phil Hagelberg
d9765f9eb8 Keep already-packaged lein off the classpath in bin/pkg-lein. 2011-11-09 09:18:04 -08:00
Phil Hagelberg
b066b3364e s/project mode/bundled mode/.
[ci skip]
2011-11-08 15:48:54 -08:00
Heinz N. Gies
addf55cd78 added check for $ORIGINAL_PWD/.lein to exist and choose it over $HOME/.lein as LEIN_HOME. this allows project specific lein installations. 2011-11-08 20:24:40 +01:00
Steffen Dienst
9f9b78b5f5 prevent error for spaces in $SCRIPT path. 2011-11-01 22:52:23 +01:00
Phil Hagelberg
d17814adb4 Add -r to rlwrap so it remembers terms for completion. 2011-10-24 09:43:25 -07:00
Phil Hagelberg
fc7149dddf Prevent redundant self-install. 2011-10-19 16:30:56 -07:00
Matjaz Gregoric
1942c465f0 Add resources to leiningen's classpath in lein.bat. 2011-08-25 16:14:45 +02:00
Phil Hagelberg
6e0454f57d Re-enable execute permissions after last patch disabled it. 2011-08-18 19:15:03 -04:00
Phil Hagelberg
a85443d7fd Respect $LEIN_HOME when staving the standalone jar
Conflicts:

	bin/lein
2011-08-18 19:05:18 -04:00
Phil Hagelberg
7dbeb03364 Add resources/ to Leiningen's own classpath. Fixes #248. 2011-08-16 18:04:13 -04:00
Phil Hagelberg
b631a47dd8 Drop version number to 1.6.2-SNAPSHOT. 2011-08-07 14:46:56 -07:00
Phil Hagelberg
c9ab63ac1e Keep already-packaged lein off the classpath in bin/pkg-lein. 2011-07-31 18:24:59 -07:00
Matjaz Gregoric
64343d221f Use LEIN_JVM_OPTS in lein.bat. 2011-07-31 07:44:13 +02:00
Matjaz Gregoric
43eaf9c85d Use LEIN_JVM_OPTS in lein.bat. 2011-07-31 05:34:25 +02:00
Matjaz Gregoric
75dd8df236 Bump lein.bat to 1.7.0-SNAPSHOT. 2011-07-31 05:33:38 +02:00
Phil Hagelberg
69bdaa3a71 Separate JVM_OPTS and LEIN_JVM_OPTS. Fixes #233. 2011-07-24 21:05:44 -07:00
Phil Hagelberg
32ffd7818d Separate JVM_OPTS and LEIN_JVM_OPTS. Fixes #233. 2011-07-24 21:04:07 -07:00
Phil Hagelberg
2940df02db Replace .lein_classpath with .lein-classpath for consistency.
Conflicts:

	doc/PLUGINS.md
2011-07-21 10:40:09 -07:00
Phil Hagelberg
16020e8320 Replace .lein_classpath with .lein-classpath for consistency. 2011-07-21 10:38:52 -07:00
Phil Hagelberg
aa05891fd6 Fix typo in jar name in lein-pkg. 2011-07-17 14:09:01 -07:00
Phil Hagelberg
b6f43007e2 renamed .classpath to .lein_classpath so that it doesn't conflict with other tools like Eclipse that use .classpath
Conflicts:

	bin/lein.bat
2011-07-16 14:51:35 -07:00
Phil Hagelberg
f3547d5dd1 Bump version to 2.0.0-SNAPSHOT. 2011-07-16 14:50:16 -07:00
Phil Hagelberg
4b369a3a02 renamed .classpath to .lein_classpath so that it doesn't conflict with other tools like Eclipse that use .classpath
Conflicts:

	bin/lein.bat
2011-07-16 14:47:29 -07:00
Phil Hagelberg
86e602e6c0 Bump to 1.7.0-SNAPSHOT. 2011-07-16 14:38:45 -07:00
Phil Hagelberg
d9fd35e36c Add missing jar to bin/lein-pkg. 2011-07-14 12:32:26 -07:00
Matjaz Gregoric
ed42411976 Merge pull request #231 from bitsai/master
Fixed test for empty CONTEXT_CP
2011-07-10 20:40:32 -07:00
Benny Tsai
25a1b65a98 better fix for lein.bat, as per mtyaka's suggestion 2011-07-10 21:32:39 -06:00
Phil Hagelberg
daec042535 Add bin/lein-pkg for downstream packagers. 2011-07-10 14:25:36 -07:00
Benny Tsai
98574d966c fix test for empty CONTEXT_CP 2011-07-10 13:06:38 -06:00
Matjaz Gregoric
a6762b75ca Remove useless x characters. 2011-07-10 09:37:13 +02:00
Matjaz Gregoric
ea5fbaf859 Implement trampoline command on Windows.
Implement trampoline command in lein.bat and
fix bugs when running trampoline under cygwin.
2011-07-10 09:32:29 +02:00
Matjaz Gregoric
42d26253fc Use a consistent style with goto statements. 2011-07-07 00:08:35 +02:00
Matjaz Gregoric
d474253dc6 Switch from rem commands to double colons for improved readability. 2011-07-07 00:07:09 +02:00
Matjaz Gregoric
56a0906b02 Bump lein.bat to 1.6.1. 2011-07-07 00:03:52 +02:00
Matjaz Gregoric
5cb765686b Disable user plugin when the same artifact is a dev dependency in lein.bat. 2011-07-07 00:02:28 +02:00
Phil Hagelberg
bd466d751a Release 1.6.1. 2011-07-06 09:05:09 -07:00
Micah
2fe610a9ee added support for .classpath files 2011-07-01 07:25:31 -07:00
Phil Hagelberg
0a301ae611 Bump version to 1.6.1-SNAPSHOT. 2011-07-01 07:24:41 -07:00
Matjaz Gregoric
c96c74f5eb Bump lein.bat to 1.6.0. 2011-06-30 23:43:17 +02:00
Matjaz Gregoric
93a8e5e7ee Fix bootclasspath to use 1.2.1 in lein.bat. 2011-06-30 10:13:03 +02:00
Phil Hagelberg
8a3054eea0 Release 1.6.0. 2011-06-29 20:35:51 -07:00
Phil Hagelberg
8904543884 Fix bootclasspath to use clojure 1.2.1. 2011-06-29 20:33:29 -07:00
Kevin Downey
49b01efe13 fix JAVA_OPTS backwards compat 2011-06-28 09:51:19 -07:00
Phil Hagelberg
f0e9d313fb Merge pull request #217 from scgilardi/trampoline-fix
load trampoline file into a var to allow cleaning it up
2011-06-27 19:51:19 -07:00
Stephen C. Gilardi
16f5235073 load trampoline file into a var to allow cleaning it up 2011-06-28 02:02:50 +00:00
Phil Hagelberg
a761394dc2 Tutorial updates for 1.6. 2011-06-23 22:49:00 -07:00
Phil Hagelberg
10413655e7 Prevent "lein upgrade" from a checkout. 2011-06-23 20:22:06 -07:00
Stephen C. Gilardi
09ee4f8be0 clean up trampoline file 2011-06-24 01:14:07 +00:00
Phil Hagelberg
917f3816b3 Fix trampoline task. 2011-06-22 20:42:44 -07:00
Phil Hagelberg
dead008fcf First cut at a trampoline task. 2011-06-19 19:28:16 -07:00
Stephen C. Gilardi
16f6b09219 add support for spaces in plugin paths 2011-06-05 23:44:28 +00:00
Stephen C. Gilardi
4aeed4f1b4 disable user plugin when the same artifact is a dev dependency 2011-06-03 18:22:00 -04:00
Phil Hagelberg
0335835d22 Fix traversing up dir hierarchy to find project root. 2011-05-24 21:35:40 -07:00
Phil Hagelberg
5be46a2b13 Bump to 1.6.0-SNAPSHOT. 2011-04-19 21:32:29 -07:00
Phil Hagelberg
a1fa434002 Release 1.5.2. 2011-04-13 21:14:47 -07:00
Phil Hagelberg
ab6293d4c6 Check rlwrap for -q support before enabling it. 2011-04-13 18:15:22 -07:00
Donald Clark Jackson
06c605d1c2 Initializing NOT_FOUND prior to entering loop, to avoid error using /bin/sh on Solaris 2011-04-13 10:28:02 -07:00
Pirmin Fix
2fc1bd114a Fixed zsh error.
It seems that when using zsh as shell and having no https proxy, the following error happened
[zitpcx16106] ~ $ lein repl
/afs/desy.de/user/p/pfix/local/bin/lein: line 86: [: !=: unary operator expected
REPL started; server listening on localhost:48076.
user=>

This change should fix that.
2011-04-13 07:37:30 -07:00
Phil Hagelberg
d055f28b64 Release 1.5.1. 2011-04-12 19:08:00 -07:00
Phil Hagelberg
fdc44d8a4f Enabled correct quoting, editor support in rlwrap. Fixes #188. 2011-04-12 13:32:46 -07:00
Phil Hagelberg
914579ba79 Allow spaces in lein checkout dir. Fixes #186. 2011-04-12 13:02:45 -07:00
Phil Hagelberg
7b3bf4ca0b Use whoami instead of $USER for root detection. 2011-04-11 20:21:45 -07:00
Phil Hagelberg
51b92e5624 Pass $https_proxy environment variable to curl. Fixes #189. 2011-04-10 15:08:37 -07:00
Phil Hagelberg
7ff39e5c82 Revert "Enabled correct quoting, editor support in rlwrap"
This reverts commit e79ba66110.
Enabled correct quoting, editor support in rlwrap

Surrounded the $@ with double quotes to prevent arguments with
spaces (even quoted ones) from being broken appart into multiple args.
2011-04-10 14:17:41 -07:00
Stuart Fehr
651ff4f696 Surrounded the $@ with double quotes to prevent arguments with spaces (even quoted ones) from being broken appart into multiple args. 2011-04-10 14:12:01 -07:00
Ambrose Bonnaire-Sergeant
e79ba66110 Enabled correct quoting, editor support in rlwrap 2011-04-09 17:50:02 -07:00
Phil Hagelberg
c9b9715265 Update bin scripts to version 1.5.1-SNAPSHOT. 2011-04-09 17:48:02 -07:00
Phil Hagelberg
2d0ca7a5c6 Fix warning prompt when running as root. 2011-03-24 21:14:54 -07:00
Phil Hagelberg
0c6ac280e8 Release 1.5.0. 2011-03-22 20:40:46 -07:00
Phil Hagelberg
7719dd6a82 Use AOT to speed up leiningen checkout launch. 2011-03-15 18:50:02 -07:00
Phil Hagelberg
b5b8214f22 1.5.0 RC1 2011-03-11 11:55:24 -08:00
Phil Hagelberg
b638ed87f6 Be more careful handling failed downloads in lein upgrade. Fixes #153. 2011-03-03 18:55:36 -08:00
Phil Hagelberg
9cc22ac615 Warn when falling back to jline. 2011-02-23 21:17:25 -08:00
Matjaz Gregoric
dc29f9c3ac Improve self-install error messages with lein.bat. 2011-02-11 23:56:50 +01:00
Phil Hagelberg
abb6f2b53b Make bin/lein compatible with old Bourne shell.
Thanks to Don Jackson.
2011-01-22 10:06:24 -08:00
Matjaz Gregoric
3426e037b9 Make user-specified %CLASSPATH% take priority. 2011-01-14 20:03:56 +01:00
Phil Hagelberg
e38f8bfa91 Make user-specified $CLASSPATH take priority. 2011-01-14 12:02:01 -05:00
Phil Hagelberg
479c2671ba Bump version to 1.5.0-SNAPSHOT. 2011-01-13 15:27:01 -05:00
Phil Hagelberg
6a1572f478 Release 1.4.2. 2010-12-31 22:22:56 -08:00
Matjaz Gregoric
6cdd04949d Switch from JAVA_OPTS to JVM_OPTS in windows batch scripts.
Keep JAVA_OPTS for backwards compatibility.
2010-12-25 09:41:49 +01: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
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
Phil Hagelberg
a246815bf4 Release 1.4.1. 2010-12-16 21:41:44 -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
fd61cd5bae Wrap leiningen.original.pwd in quotes. Fixes #143. 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
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
3926a0f1b5 Fix rlwrap detection on Solaris. 2010-11-26 14:41:11 -08:00
Phil Hagelberg
2ccb502f9b Fix conditional for falling back to JLine. 2010-11-24 20:27:51 -08:00
Phil Hagelberg
26d7631486 Release 1.4.0-RC2. 2010-11-20 20:42:32 -08:00
Matjaz Gregoric
da8f0858b5 Replace tabs with spaces. 2010-11-19 20:12:28 -08:00
Matjaz Gregoric
6b14ccd6bd Convert the original pwd to windows style when on cygwin. 2010-11-19 20:12:28 -08:00
Phil Hagelberg
c85aaf83a5 Merge remote branch 'mtyaka/windows-updates'
Conflicts:
	src/leiningen/jar.clj
	test/test_jar.clj
2010-11-18 21:21:05 -08:00
Phil Hagelberg
69ee0273b8 Solaris compatibility; thanks Licenser. 2010-11-18 20:32:22 -08:00
Matjaz Gregoric
d0098d7ec5 Let the test! task run under lein.bat.
Due to delayed expansion enabled, the bang would get lost and
test! would get interpreted as test.
Fix this by disabling delayed expansion before running the command.
2010-11-18 11:02:31 +01:00
Matjaz Gregoric
ac90018d70 Use the -Xbootclasspath trick in lein.bat.
This cuts lein startup time from 2.5 seconds
down to 1.5 on Vista.
2010-11-18 11:02:30 +01:00
Phil Hagelberg
ba3d4db49f Don't allow JLINE env var to mess up lein run. Fixes #131. 2010-11-10 14:06:30 -08:00
Phil Hagelberg
5075cf53d6 Release 1.4.0-RC1. 2010-11-07 16:10:42 -08:00
Phil Hagelberg
74f0e8f26d Keep self-install jars in ~/.lein/self-installs instead of ~/.m2. 2010-11-07 16:09:20 -08:00
Phil Hagelberg
5182797f86 Fall back to Clojure 1.2 until bootclasspath issues are resolved. 2010-11-07 13:44:31 -08:00
Matjaz Gregoric
aa421fd1a7 Skip wget cert check in lein.bat. 2010-11-07 15:46:16 +01:00
Matjaz Gregoric
2148769164 Replace homedrive + homepath with userprofile. 2010-11-07 09:50:05 +01:00
Matjaz Gregoric
1d9d95c646 Expose leiningen.original.pwd in lein.bat. 2010-11-07 09:46:05 +01:00
Matjaz Gregoric
832cb1a363 Modify lein.bat to allow running from source. 2010-11-06 23:25:54 +01:00
Matjaz Gregoric
a3632e3cac Add test folder to the classpath. 2010-11-06 23:25:53 +01:00
Phil Hagelberg
5dcd5aa40e Skip curl cert check in lein.bat as well. 2010-11-06 14:07:07 -07:00
Phil Hagelberg
00205012c6 Ignore SSL certs while we wait for Github to get their act together. 2010-11-04 09:12:23 -07:00
Matjaz Gregoric
748d5ce76c Use a backslash instead of a forward slash. 2010-10-30 10:00:08 +02:00
Matjaz Gregoric
dae65b59e0 Allow for spaces in LEIN_HOME. 2010-10-30 08:10:01 +02:00
Matjaz Gregoric
cf24a972bd Allow customization with JAVA_CMD and JAVA_OPTS. 2010-10-30 08:03:14 +02:00
Matjaz Gregoric
d18f5c4b47 Don't use JLine when inside_emacs. 2010-10-30 08:03:12 +02:00
Matjaz Gregoric
5da11332af Use JLine in repl and interactive tasks. 2010-10-30 08:03:11 +02:00
Matjaz Gregoric
e05bb7913c Simplify argument handling with the %* special variable. 2010-10-30 08:03:10 +02:00
Matjaz Gregoric
b80003b933 Add leiningen plugin locations to the classpath. 2010-10-30 08:03:09 +02:00
Matjaz Gregoric
9b3126d7ee Avoid a goto statement. 2010-10-30 08:03:08 +02:00
Matjaz Gregoric
6bb95ba166 Move setLocal command higher up the file. 2010-10-30 08:03:07 +02:00
Matjaz Gregoric
30584eabe6 Convert lein.bat to DOS-style line endings. 2010-10-30 08:03:03 +02:00
Matthew Maravillas
7e157036f8 Set LEIN_JAR before handling args 2010-10-30 08:00:32 +02:00
Colin Jones
3c473d9fa6 Allow for spaces in LEIN_JAR path in lein.bat. 2010-10-28 23:43:42 -05:00
pm-bauer
434482b4a2 Added quote marks around CLASSPATH variable to fix parsing error in cygwin. 2010-10-25 18:59:02 -07:00
Phil Hagelberg
f732bfeebf Support :eval-in-leiningen key in project.clj for plugins. 2010-10-24 14:28:26 -07:00
Phil Hagelberg
de27390d1b Don't create new skeleton in root. Expose leiningen.original.pwd. 2010-10-23 13:22:11 -07:00
Phil Hagelberg
72270396a4 Mostly todos. 2010-10-16 09:35:35 -07:00
Phil Hagelberg
bd77377a91 Silently delete failed self-install downloads. 2010-09-21 20:16:29 -07:00
Phil Hagelberg
7f5b8627a6 Ready for 1.4.0-SNAPSHOT. 2010-09-08 14:06:17 -07:00
Phil Hagelberg
2ea4b63e58 Release 1.3.1. 2010-09-07 18:54:35 -07:00
Phil Hagelberg
5ff106e96b Auto-self-install on demand. 2010-09-02 20:17:40 -07:00
Phil Hagelberg
484e33397a Use LEIN_VERSION env var instead of system property. 2010-08-28 12:41:18 -07:00
Phil Hagelberg
94f08b5966 Don't allow malformed checkout deps to interfere with eval-in-project. 2010-08-26 17:50:23 -07:00
Isaac Hodes
31ea0932fe Changed VERSION in bin/lein to LEIN_VERSION, and export it.
Check to ensure :min-lein-version is less than or equal to the current
leiningen version
2010-08-23 21:14:59 -07:00
unknown
1b6f36f6ab prune lein.bat for unwanted code
add self-install feature to lein.bat
add dummy upgrade feature to lein.bat
2010-08-22 01:22:19 +05:30
Phil Hagelberg
b6347f08f9 Back to 1.3.1-SNAPSHOT; we have unfinished business here. 2010-08-20 17:56:31 -07:00
Phil Hagelberg
5b76514ea6 Bump version to 1.4.0-SNAPSHOT. 2010-08-20 13:58:50 -07:00
Phil Hagelberg
b93f5e4feb Release 1.3.0! 2010-08-19 21:15:59 -07:00
Phil Hagelberg
7efb72f963 Fix help task to ignore hooks. 2010-08-19 20:54:50 -07:00
Phil Hagelberg
fe2927a9f2 Upgrade Leiningen and "new" task to Clojure 1.2.0 stable. 2010-08-19 20:54:28 -07:00
Phil Hagelberg
7e4a5c09c2 Give more useful error message on self-install. 2010-08-16 21:46:31 -07:00
Phil Hagelberg
2cf9683257 Bump to 1.3.0-RC1 2010-08-16 21:39:43 -07:00
Phil Hagelberg
f790f14b97 Oops; shell scripts don't use ==. Fixes #93. 2010-08-16 13:14:15 -07:00
Phil Hagelberg
b8b9b6c685 Change directories to project root before calculating classpath. 2010-08-11 18:22:25 -07:00
Phil Hagelberg
8012a50c88 Include bin scripts in generated jars when specified in :shell-wrapper. 2010-08-09 18:11:37 -07:00
Phil Hagelberg
0e7599e729 Add support for user-level plugins. 2010-08-08 13:33:04 -07:00
Laurence Hygate
723ba075a0 Fix problem using jline on cygwin on later versions of windows 2010-08-08 11:06:38 -07:00
Phil Hagelberg
2f5cbde7d0 Remove bashisms for portability. Thanks to Mike Meyer. 2010-08-08 11:00:14 -07:00
Will Morgan
69c325e032 Quote argument in shell script. Fixes #79. 2010-08-08 09:56:25 -07:00
Phil Hagelberg
4a848077a2 Bump version to 1.3.0-SNAPSHOT. 2010-07-31 09:37:03 -07:00
Phil Hagelberg
49beabb67f Yeah, so we want rlwrap with the interactive task too. 2010-07-30 21:23:50 -07:00
Phil Hagelberg
c82fcaf4c1 Warn when running as root. 2010-07-30 13:28:45 -07:00
Phil Hagelberg
c461fa75dd Merge remote branch 'lozh/windows-fixes' 2010-07-28 21:54:23 -07:00
Phil Hagelberg
1a64da9987 Detect download failures in self-install.
Come on curl; please don't silently accept 404s.
2010-07-28 21:30:16 -07:00
Phil Hagelberg
ae98527789 Add Building section to README. 2010-07-27 20:14:01 -07:00
U-Maximillian\loz
e5904bedab fix syntax error and some quoting problems 2010-07-26 09:37:32 +01:00
Laurence Hygate
9422fe4b33 Search parent directories for project.clj if necessary (lein.bat)
Deal with cygwin better (lein)
2010-07-23 17:19:15 +01:00
Phil Hagelberg
8fe309db58 Mention disabling the self-install/upgrade task for packagers. 2010-07-21 23:14:52 -07:00
Phil Hagelberg
13dff97c1d Bump version to 1.2.1-SNAPSHOT. 2010-07-21 23:14:48 -07:00
Phil Hagelberg
c21bbd9aed Release 1.2.0. 2010-07-18 13:41:03 -07:00
Phil Hagelberg
cea853ad52 Update -Xbootclasspath Clojure version 2010-07-17 16:17:14 -07:00
Phil Hagelberg
12e15fd879 Don't use rlwrap if inside Emacs. Fixes #73.
It causes a "floating point exception" in rlwrap, and it isn't needed anyway.
2010-07-17 11:02:48 -07:00
Phil Hagelberg
0e46cc1608 Bump version to 1.2.0-RC2. 2010-06-26 15:10:24 -07:00
Phil Hagelberg
9874a42094 Re-enable rlwrap in bin script. 2010-06-21 19:21:22 -07:00
Phil Hagelberg
1e89f0299d Snapshot versions now work with self-install.
Previously there was too much churn in the bin script to make this
feasible, but now that things have stabilized we should be able to use
self-install without breaking compatibility between the shell script
and the Clojure code.
2010-06-13 20:02:19 -07:00
Phil Hagelberg
43ee48e277 Version 1.2.0-RC1. 2010-06-12 15:38:48 -07:00
Phil Hagelberg
ee96d8e24c Traverse up the current directory's ancestors to find project root. 2010-05-27 12:54:43 -10:00
Phil Hagelberg
23991a2f86 Allow $JAVA_CMD to be customized.
Makes it easier to swap out a 32-bit JVM where you want to reduce boot
time by using the Client Hotspot.
2010-05-22 14:28:39 -10:00
Tero Parviainen
43038d1dc1 Added Cygwin support to the lein script 2010-05-15 00:13:28 -07:00
DRT
2be6905ae7 Changed lein script to compensate for lack of /dev/null under Windows 2010-05-15 00:10:05 -07:00
Phil Hagelberg
52e561aace Add src/ to lein-level classpath so it can contain lein tasks.
Thanks ninjudd.
2010-05-14 22:46:54 -07:00
Phil Hagelberg
85b84bc4fa Fix classpath calculation to use ls instead of find. (Thanks Licenser) 2010-04-19 22:23:12 -07:00
Phil Hagelberg
9fd8cb23e7 Quit using that nasty $ESCAPED_ARGS hack for leiningen.core/-main. 2010-04-16 22:34:45 -07:00
Phil Hagelberg
cd4b56972c Keep dev-dependencies in lib/dev, out of the way of uberjar. 2010-04-16 22:24:01 -07:00
Phil Hagelberg
44b6369aec Move repl task out of shell script, finally! Depends on Clojure ticket #299. 2010-04-16 21:46:53 -07:00
Phil Hagelberg
e886afb457 Upgrade to Clojure 1.2.0-master-SNAPSHOT. 2010-04-16 21:25:59 -07:00
Phil Hagelberg
f83bf739e7 Use rlwrap if detected. 2010-04-06 22:29:59 -07:00
Peter Schuller
dcb2d54bf2 Do not assume bash it as /bin/bash; use /usr/bin/env bash. 2010-04-06 22:17:42 -07:00
dakrone
a726c4aad4 Add ability to specify jline usage with env variable.
Set LEIN_USE_JLINE=false and 'lein repl' will not use jline when
starting a REPL. Also updated the README's FAQ to add this.
2010-04-06 21:50:40 -07:00
Phil Hagelberg
8a687e7c94 Check a project's src/ dir for leiningen tasks. 2010-03-15 21:25:46 -07:00
Rob Wolfe
5961500a51 updating versions and links 2010-03-13 17:17:56 +01:00
Phil Hagelberg
efbeb67c4d Allow $CLASSPATH to be used to customize repl classpath. 2010-03-12 21:07:44 -08:00
Phil Hagelberg
1ea20ac740 Fix java paths on cygwin and allow spaces in the LEIN_JAR directory path. 2010-03-06 21:51:13 -08:00
Phil Hagelberg
b5b6b56e6d Add a note in order to clarify that -Xbootclasspath is optional. 2010-03-06 21:36:19 -08:00
Phil Hagelberg
bb4badefab Update lein.bat to reflect the fact that CLOJURE_JAR is optional. 2010-03-06 10:01:45 -08:00
Phil Hagelberg
2337ea1569 Bump to 1.2.0-SNAPSHOT. 2010-02-26 16:10:30 -08:00
Phil Hagelberg
0577148bd2 Release 1.1.0! 2010-02-16 21:58:41 -08:00
Seth Schroeder
92e9bbf571 restore Xbootclasspath on MacOS X 2010-02-16 21:15:58 -08:00
Phil Hagelberg
8891f781ae Skip -Xbootclasspath on OS X until test issues are resolved.
This makes boot time sloooooooooooooow.
2010-02-13 09:40:08 -08:00
Phil Hagelberg
176c2cdea4 Only show repl warning when running in a project dir.
Standalone repls don't care.
2010-02-13 09:27:29 -08:00
abscondment
8fe72c159a Refining upgrade: check for access, request confirmation. 2010-02-13 09:25:55 -08:00
abscondment
dce5992814 First pass at an upgrade task. 2010-02-13 09:25:47 -08:00
Phil Hagelberg
d6e22bddbb In bin script, find's -follow argument must come after path. 2010-01-31 14:17:07 -08:00
Phil Hagelberg
3130064c8a Add a warning for the lein repl task. 2010-01-30 21:53:38 -08:00
Phil Hagelberg
62dfb7e029 Don't use find's -H option; it's not present on older systems.
Thanks to Scott Haug.
2010-01-30 21:31:05 -08:00
Rob Wolfe
74c9f1c839 adding error messages to lein.bat 2010-01-27 22:13:53 -08:00
Phil Hagelberg
d9e2b7791b Use Clojure 1.1.0 release for using Leiningen itself. 2010-01-20 23:22:39 -08:00
Phil Hagelberg
c99bada107 Mention windows support in docs. 2010-01-02 15:52:14 -08:00
Rob Wolfe
5e9f694fd3 windows environment 2010-01-02 15:23:30 -08:00
Phil Hagelberg
6e1a777c9b Remove cargo-cult garbage in bin script. Thanks, Steve. 2010-01-01 21:58:27 -08:00
Phil Hagelberg
5fc196cfeb Honor $RLWRAP if present in repl task. 2009-12-15 19:38:24 -08:00
Phil Hagelberg
14b08db530 Bump version. 2009-12-15 19:38:14 -08:00
Phil Hagelberg
fb13db7d38 Release 1.0.1! 2009-12-10 22:52:01 -08:00
Phil Hagelberg
109b38f738 Honor $JAVA_OPTS. 2009-12-10 22:37:59 -08:00
Phil Hagelberg
119cb3f480 Use 1.1.0-master, not -alpha. 2009-12-10 21:15:43 -08:00
Phil Hagelberg
35e0667237 Abort when running self-install on SNAPSHOT versions. 2009-12-10 20:18:22 -08:00
Phil Hagelberg
b3e37c438c Replace rlwrap with jline for repl task. 2009-12-08 18:01:08 -08:00
Mike T. Miller
c521758a30 added 'version' command 2009-12-07 20:20:44 -08:00
Phil Hagelberg
d3d53a432f Bump version number to 1.0.1-SNAPSHOT 2009-12-06 14:07:35 -08:00
Phil Hagelberg
da41a91e05 Releasing 1.0.0. 2009-12-05 21:07:26 -08:00
Phil Hagelberg
d164dd82f9 Pass args through on repl task. 2009-12-05 20:30:32 -08:00
Phil Hagelberg
ddc013c6db Release Candidate 1? Why certainly; I don't mind if I do. 2009-12-03 22:36:56 -08:00
Phil Hagelberg
7c2d01a440 Merge RickMoynihan's rlwrap patch, but disable it for dumb terms. 2009-12-02 21:00:01 -08:00
Phil Hagelberg
dda9f3f6b0 Add project's lib/ directory to lein classpath for plugins.
Fix classpath for repl task.
2009-12-02 20:47:30 -08:00
Rick Moynihan
01860b3100 Added code to use rlwrap for "lein repl" if present. 2009-12-02 17:40:25 +00:00
Phil Hagelberg
3a4c7e0408 Fix NPE when using -Xbootclasspath with transitive requires. 2009-12-01 23:02:44 -08:00
Phil Hagelberg
c846cefbc9 Temporarily disable -Xbootclasspath until cause of NPE is discovered. 2009-12-01 22:30:33 -08:00
Dan Larkin
42f8f3a2d0 always use -Xbootclasspath/a, if $CLOJURE_JAR doesn't exist there's no harm done 2009-12-01 23:04:26 -05:00
Dan Larkin
61c8683db3 try to detect clojure.jar so we can use -Xbootclasspath/a 2009-12-01 21:42:24 -05:00
Phil Hagelberg
88d4de108e If no task is given fall back to help task. 2009-11-30 22:16:34 -08:00
Alex Osborne
fb95c5ef57 Run compile and test tasks in isolated classloader
This means that we can:
- Safely compile against alternative versions of Clojure.
- Move classpath logic from the shell script to lein itself.
- Run lein with: java -jar leiningen-standalone.jar

This patch also makes the source, test and library paths configurable
which is useful for people with special requirements like mixed-language
projects.
2009-11-30 15:34:14 +11:00
Phil Hagelberg
7acd4cb32d Updated todos. 2009-11-28 21:35:19 -08:00
Phil Hagelberg
2a76567d9e Running a dev version of lein from a checkout shouldn't use LEIN_JAR.
Improve error message when dev checkout deps are missing.

Store uberjar in ~/.m2 as -standalone in order to avoid ambiguity.
2009-11-27 20:27:11 -08:00
Dan Larkin
6fbdfb7a91 move mkdir of classes/ from shell script into core.clj 2009-11-25 01:35:07 -05:00
Dan Larkin
07f61f6bf6 remove gen-class on leiningen.core and update lein shell script and project file to deal with it 2009-11-22 17:09:11 -05:00
Phil Hagelberg
4b0991c49f Don't mkdir classes unless you're in a project directory. 2009-11-21 22:28:15 -08:00
Phil Hagelberg
915c0eb173 Fall back to LEIN_JAR if core.class isn't found. 2009-11-21 22:20:00 -08:00
Alex Osborne
92f260e214 Resolve symlinks to the script itself, not parent directories in a cross-platform way. 2009-11-22 16:08:38 +11:00
Dan Larkin
52dd161b34 resolve symlinks in a cross-platform way, using pwd -P 2009-11-21 23:48:22 -05:00
Alex Osborne
b1daf46753 Follow symlinks when finding BIN_DIR. 2009-11-22 12:12:46 +11:00
Dan Larkin
8470190d13 don't check for existence of git repo, all we need to do is check for the source 2009-11-21 20:04:32 -05:00
Dan Larkin
6e35f71a7e if lein shell script is being run from a git checkout then we should put src:lib:classes on the CLASSPATH in addition to the LEIN_JAR 2009-11-21 19:45:10 -05:00
Dan Larkin
d6feadd695 Merge branch 'master' of git://github.com/technomancy/leiningen 2009-11-21 15:34:38 -05:00
Phil Hagelberg
ab37c75fed Make uberjar create a $PROJECT-standalone.jar file. 2009-11-20 17:30:54 -08:00
Phil Hagelberg
70a6d19546 Bump version to 1.0.0-SNAPSHOT 2009-11-19 17:22:52 -08:00
Dan Larkin
e5afd5efc8 Merge branch 'master' of git://github.com/technomancy/leiningen 2009-11-18 11:33:35 -05:00
Phil Hagelberg
f97228f1a7 Calling it good: releasing 0.5.0! 2009-11-17 23:28:36 -08:00
Phil Hagelberg
a387b2196d Skip dev dependencies when they probably aren't needed. 2009-11-17 23:04:13 -08:00
Phil Hagelberg
0a6898d8d6 Move deps-if-missing to shell script. Needs to happen before JVM launch. 2009-11-17 22:03:12 -08:00
Phil Hagelberg
ebd3c2c3d7 Allow setting group in defproject. 2009-11-16 20:05:07 -08:00
Mike Douglas
41953e6dee bin/lein: ensure $PATH is searched when checking for curl. 2009-11-15 14:36:30 -08:00
Dan Larkin
9a53c85412 Merge remote branch 'technomancy/master' 2009-11-15 01:44:23 -05:00
Dan Larkin
940008648b update usage for lein script 2009-11-15 01:44:20 -05:00
Phil Hagelberg
c5ba551500 Add motivation to README 2009-11-14 20:56:52 -08:00
Phil Hagelberg
bc9e72f715 Merge danlarkin/master. 2009-11-14 15:42:44 -08:00
Dan Larkin
7255bc453f lein shell script should show usage if you don't give a task 2009-11-14 18:03:09 -05:00
Phil Hagelberg
371ce49af4 Use client JVM since it shouldn't be a long-running process. 2009-11-14 14:48:39 -08:00
Dan Larkin
6988356d37 put quotes around $1 in lein shell script so it runs okay on OS X 2009-11-14 16:44:59 -05:00
Phil Hagelberg
44a1370cc2 Improve self-install. 2009-11-11 21:24:48 -08:00
Phil Hagelberg
d84de0ccfa Add self-install command. 2009-11-09 22:22:09 -08:00
Phil Hagelberg
79b969b425 Move away from build.clj to project.clj. 2009-11-05 20:36:27 -08:00
Phil Hagelberg
6aebd55634 Fix defproject. Unfortunately build.clj needs to call it fully-qualified. 2009-11-02 22:20:29 -08:00
Phil Hagelberg
1db1515e79 Four spaces to indent a shell script, you HEATHEN! 2009-11-01 22:47:41 -08:00
Phil Hagelberg
a96d05e4d1 Make bin script slightly smarter. One step at a time. 2009-11-01 22:38:59 -08:00
Phil Hagelberg
dc69c98887 Fleshed out minimal bin script 2009-11-01 22:21:50 -08:00
Phil Hagelberg
88b53602f7 Initial commit. 2009-10-31 21:48:57 -07:00