Commit graph

399 commits

Author SHA1 Message Date
Phil Hagelberg
da3b3e13f2 No tabs! 2013-01-02 22:32:15 -08:00
Phil Hagelberg
1e4180148f Update lein-pkg. 2012-12-19 09:40:39 -08:00
Allen Rohner
ec8b8fab34 export $SCRIPT as leiningen.script 2012-12-01 18:51:15 -08:00
Shantanu Kumar
bd781857c2 omit redundant :no_upgrde snippet 2012-11-21 22:57:43 +05:30
Shantanu Kumar
214e464cec add upgrade support to lein.bat master 2012-11-21 22:28:01 +05:30
Phil Hagelberg
2973d99652 Check Clojars releases repository instead of classic. Fixes #241. 2012-11-14 12:45:34 -08:00
Phil Hagelberg
4c19f1ee27 Fix font-lock in bin/lein 2012-11-12 14:40:23 -08:00
Phil Hagelberg
13bb1dc37e Allow for $LEIN_TRAMPOLINE_WARMUP.
[ci skip]
2012-11-03 09:54:35 -07:00
Bruce Adams
cbe087d489 Finish getting path quoting right for boot classpath #828 2012-10-27 12:57:39 -04:00
AtKaaZ
5a57fecf8a make trampoline work on windows
applied the same fix that preview branch had
ie. passing the trampoline file like this:
 -Dleiningen.trampoline-file="%TRAMPOLINE_FILE%" ^
2012-10-26 10:54:53 +02:00
Bruce Adams
c9d271c62b Quote file paths: may contain spaces #828 2012-10-25 22:43:31 -04:00
AtKaaZ
f95a9ffba8 bring back lein.bat from LF to CRLF 2012-10-26 02:11:14 +02:00
AtKaaZ
6e237a8a64 fix for previous commit to allow spaces in folder names
ie. the passed path to -Dclojure.compile.path= should be inside
double quotes
2012-10-26 02:08:05 +02:00
AtKaaZ
898aefb89c Pass default clojure.compile.path just like the bash script does
should fix cases where uses of lein.bat 
would cause the use of /classes/ folder instead of /target/classes/
which resulted in some classes not being found
ie. when compiling leiningen project from source
2012-10-26 01:43:15 +02:00
Phil Hagelberg
ff0e95baf0 Debug output in apply-task. 2012-10-04 09:36:21 -07:00
Justin Balthrop
48bea66ea0 use -classpath instead of -cp so that jdb can be used for :java-cmd 2012-09-27 11:22:03 -07:00
Juergen Hoetzel
8f9c246f14 code reuse: context specific CLASSPATH is used checkout and non-checkout 2012-09-26 20:34:27 +02:00
Juergen Hoetzel
26af2db2b7 use bash helper function add_path to setup classpath
instead of conditionally (cywin/unix) constructing the classpath using
bash assignment.
2012-09-26 20:14:41 +02:00
Juergen Hoetzel
e0398e0819 Add bash function add_path for (class)path setup 2012-09-26 19:48:17 +02:00
Michael Klishin
67726053e5 Merge pull request #783 from StevenBorrelli/patch-1
Fix typos in lein script for download_failed_message
2012-09-14 10:48:59 -07:00
StevenBorrelli
9690f8de65 Fix typos in lein script for download_failed_message
Change downoad_failed_message to download_failed_message
Add endquote to error message for curl HTTP_CLIENT.
2012-09-14 12:46:13 -05:00
basicsensei
a1bc1f56cc move setlocal first to prevent leaking it to parent shell in win7/xp
However on win7 though (but not on winxp) all set variables inside
script will be leaked if the script fails within another setlocal ie. 
set JAVA_CMD="ja"va"
lein
set
Will show LEIN_HOME, LEIN_JAR and ORIGINAL_PWD remained set.

The following .bat will prove the point:
@echo on
setLocal EnableExtensions EnableDelayedExpansion
set xxx="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

rem comment the following line to prevent xxx to leak into parent shell:
setlocal
rem the below will make script fail(just type "set" to see it leaked):
if x == '

echo not reached!
2012-09-13 09:48:29 +02:00
basicsensei
3b5feb5393 use LEIN_JAVA_CMD in lein.bat just as in the bash script
just as @technomancy said in #774
if LEIN_JAVA_CMD is not set it will fall back to JAVA_CMD which in turn
if it's not set it will fall back to just "java" (without dbl.quotes)
2012-09-13 02:48:26 +02:00
Phil Hagelberg
a1d4a0fb79 Don't use fast trampolines outside a project. Fixes #777. 2012-09-11 10:30:16 -07:00
basicsensei
1ac8eac0cc fix for when JAVA_CMD is set to path containing double quotes
addresses #774
script will still fail if it contains characters like >, <, |, & or even
parentheses or an even number of double quotes
ie. this will work:
set JAVA_CMD="c:\program"" f""iles\java\jdk1."7.0_0"5\bin\java.exe"
lein javac
2012-09-11 15:47:22 +02:00
Justin Balthrop
35a01e64c8 work with drip-stable, et al 2012-08-31 16:17:49 -07:00
Justin Balthrop
a92fa36028 add DRIP_INIT so lein will be faster when running with decaf 2012-08-29 15:36:06 -07:00
Justin Balthrop
30a6643fcd Fix trampoline file to work with Drip
Read the TRAMPOLINE_FILE environment variable instead of putting it
in a system property. Drip looks up pre-spun JVMs using a hash of the
command-line arguments, so putting the trampoline file in a system
property causes it to start a new spare JVM for every lein invocation.
2012-08-29 15:36:01 -07:00
Phil Hagelberg
a29bc0c248 Echo $LEIN_JAR path in self-install. Fixes #753. 2012-08-28 12:01:37 -07:00
Adirelle
7c927202b9 Have lein.bat use local .lein-classpath.
This should fix issue #718.
2012-08-26 21:40:21 +03:00
Phil Hagelberg
c08d4aa2dd Stupid bash typo. 2012-08-25 18:55:02 -07:00
Phil Hagelberg
f633c90164 Back to 2.0.0-SNAPSHOT. Next release will be RC1, for reals. 2012-08-25 18:41:32 -07:00
Phil Hagelberg
3b1924e538 Release 2.0.0-preview10. 2012-08-25 16:49:21 -07:00
Phil Hagelberg
59303f8101 Consistently explain how to set insecure HTTP_CLIENT in bin/lein. 2012-08-25 14:46:03 -07:00
Phil Hagelberg
e29418dc58 Bump back to 2.0.0-SNAPSHOT. 2012-08-24 17:26:00 -07:00
Phil Hagelberg
88f00af830 Release 2.0.0-preview9. 2012-08-24 17:02:17 -07:00
Justin Balthrop
23af751b04 Always set -Dclojure.compile.path when we are running from a checkout
This way, you don't have to put this in LEIN_JVM_OPTS
2012-08-17 17:48:42 -07:00
Justin Balthrop
a58bf27819 Try to make the LEIN_JVM_OPTS default sane for :eval-in :classloader
To do this, we grep project.clj. This won't always work, but it is good
enough for a default.
2012-08-17 17:45:39 -07:00
Justin Balthrop
5c56a4c451 Add support for .leinrc
Execute the project's .leinrc whenever bin/lein is run. This can be used
to customize various lein configuration in a specific project.
For example: LEIN_JVM_OPTS and LEIN_HOME.

Also support a global ~/.lein/leinrc for user customizations.
2012-08-17 17:45:39 -07:00
Phil Hagelberg
cc79e72cab Fix project-level conditional for fast trampolines. 2012-08-17 13:43:46 -07:00
Phil Hagelberg
cbdf49168e Allow :eval-in to be a symbol instead of a keyword. 2012-08-17 13:11:00 -07:00
Phil Hagelberg
5e82d1bcb8 Fix file leak when not using fast trampolines. 2012-08-17 10:58:37 -07:00
Phil Hagelberg
27ffe8b101 Make fast trampolines opt-in for now, use shasum for portability. 2012-08-17 10:41:38 -07:00
Phil Hagelberg
f9da16e37a Cache trampoline commands. Fixes #573.
Still needs to resolve the checksum command portably.

Also probably needs to be opt-in, at least at first.
2012-08-17 10:15:43 -07:00
Bruce Adams
56e118087b Download lein.jar to temporary name; rename into place 2012-08-16 17:34:57 -04:00
Phil Hagelberg
fc7e3c7cb9 Back to snapshot. 2012-08-16 13:17:59 -07:00
Phil Hagelberg
ff8ed7f6a8 Release 2.0.0-preview8. 2012-08-16 11:06:45 -07:00
Phil Hagelberg
60702d2ff3 Support larger .lein-classpath in .bat. Fixes #724. 2012-08-09 09:23:03 -07:00
Phil Hagelberg
98dff789e1 Todo updates. 2012-08-08 09:32:01 -07:00
Michael S. Klishin
e165d3f8ab Because startup time is science 2012-08-07 05:13:53 +04:00