Michael S. Klishin
e165d3f8ab
Because startup time is science
2012-08-07 05:13:53 +04:00
Michael S. Klishin
7e12617d6e
Consolidate LEIN_JVM_OPTS defaults
2012-08-07 05:12:09 +04:00
Michael S. Klishin
262859b767
Don't set -Xms, it adds to the startup time and has no real benefit
2012-08-07 05:11:18 +04:00
Michael S. Klishin
f97f58ebf9
Add default value for LEIN_JVM_OPTS
2012-08-07 05:08:55 +04:00
Phil Hagelberg
cc9ba8609a
Only use leiningen-core/lib for bootstrapping lein's own classpath.
...
Works around http://dev.clojure.org/jira/browse/CLJ-1034 and is just
generally cleaner.
2012-07-26 14:09:38 -07:00
Phil Hagelberg
296adbf1ab
Some more TODOs.
2012-07-17 14:17:50 -07:00
Phil Hagelberg
5120d24732
Explanatory message at the top of bin/lein.
2012-07-03 22:38:06 -07:00
Phil Hagelberg
36856e4fad
Drop back to 2.0.0-SNAPSHOT, hopefully for the last time.
2012-06-27 16:54:31 -07:00
Phil Hagelberg
811e974174
Release 2.0.0-preview7.
2012-06-27 16:45:13 -07:00
Phil Hagelberg
25181bed9c
Test boot time for lein run rather than lein version.
...
Who cares if lein version is slow?
2012-06-13 21:43:22 -07:00
Phil Hagelberg
628e13ef8e
Fix checkout detection logic in lein.bat; fixes #579 .
...
[ci skip]
2012-06-13 18:59:36 -07:00
Phil Hagelberg
1da790ed78
Bump back to 2.0.0-SNAPSHOT.
2012-06-11 18:45:00 -07:00
Phil Hagelberg
dfb54f3683
Use env in bash shebang. Fixes #624 .
2012-06-09 19:48:41 -07:00
Phil Hagelberg
3d57749896
Don't mess with HTTP_CLIENT setting. Fixes #623 .
2012-06-09 19:48:40 -07:00
Jorge Barrios
b659769d54
Minor fix to avoid this error:
...
./lein: line 180: [darwin11: command not found
2012-06-06 15:54:14 -07:00
Phil Hagelberg
14c650c9b0
Release 2.0.0-preview6
2012-06-02 21:07:35 -07:00
Alex Osborne
484151d007
Register certificates before calling get-classpath. Fixes #613
...
We need to do this as get-classpath can itself trigger the downloading
of dependencies. This also ensures leiningen-core/resources is added to
the classpath by the wrapper scripts.
2012-06-02 20:10:17 +10:00
Phil Hagelberg
060ab177d2
Add bin/release.
2012-06-01 22:01:48 -07:00
Phil Hagelberg
479fcb83bf
http://p.hagelb.org/what.gif
...
Seriously Maven? You'll accept just any old certificates by default?
2012-06-01 14:08:40 -07:00
Phil Hagelberg
71781a83f3
Back to 2.0.0-SNAPSHOT.
2012-06-01 10:46:54 -07:00
Phil Hagelberg
5a790ca7c8
Release 2.0.0-preview5.
2012-05-31 21:20:42 -07:00
Phil Hagelberg
53c039d3b9
Use cygpath in upgrade target path. Fixes #583 .
...
[ci skip]
2012-05-30 21:19:34 -07:00
Phil Hagelberg
6c927c7e12
Explain how to fall back to insecure SSL when self-install fails.
...
Fixes #601 .
[ci skip]
2012-05-27 22:04:58 -07:00
Michael S. Klishin
6d66921151
Don't break the line
2012-05-17 23:30:20 +04:00
Michael S. Klishin
efc8fb4424
Set default encoding for Lein's JVM to UTF-8, fixes #586
...
On OS X, JDK 6 uses MacRoman encoding otherwise and it messes
things up for REPL sessions that may have non-ASCII characters
2012-05-17 23:23:12 +04:00
Michiel Borkent
af1aafda6c
fixed another quote
2012-05-12 10:59:08 +02:00
Michiel Borkent
e2c874dca4
fixed another quote
2012-05-12 10:38:58 +02:00
Phil Hagelberg
93bb6a1e14
Bump back to 2.0.0-SNAPSHOT.
2012-05-11 18:46:25 -07:00
Phil Hagelberg
104726ee71
Release 2.0.0-preview4.
2012-05-11 18:07:07 -07:00
Phil Hagelberg
95e3863d3f
Make in-project .lein-classpath work for specifying plugins. Fixes #508 .
2012-05-11 16:24:31 -07:00
Michiel Borkent
139e1014d5
Fixed some quotes.
2012-05-12 01:15:47 +03:00
Leonel Gayard
ef11cb4480
Improvements in lein.bat.
...
Changed to look for file .lein-classpath only when running from source checkout.
Fixed construction of variable CLASSPATH to avoid unnecessary quotes and semi colons.
Removed option Xbootclasspath from command line.
2012-05-11 14:20:13 -03:00
Phil Hagelberg
bf7256ad94
Untabify bin/lein.
2012-05-10 11:45:03 -07:00
Leonel Gayard
9af28dfe83
Changed launcher lein.bat to determine whether it's a source checkout by looking for directory 'src'
2012-05-10 10:30:16 -03:00
Phil Hagelberg
3afbbb8bcd
Make sure cygpath affects LEIN_JAR.
2012-05-09 19:17:37 -07:00
Mark Baran
b1022fa4b5
Fixed quoting inside generated trampoline command to pass arguments correctly.
2012-05-07 11:45:41 -07:00
Phil Hagelberg
1cbd58179e
Quit checking CLASSPATH in lein.bat.
...
Disclaimer: http://www.buzzize.com/wp-content/gallery/7i_have_no_idea/thumbs/thumbs_i_have_no_idea_01.jpg
2012-05-07 11:25:18 -07:00
Phil Hagelberg
7c86bdbb83
Set CLASSPATH from scratch rather than checking existing value.
...
This has only ever caused problems.
2012-05-07 11:24:52 -07:00
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