Commit graph

717 commits

Author SHA1 Message Date
Matjaz Gregoric
2fe29e52a9 Work around a RuntimeMXBean bug.
RuntimeMXBean.getInputArguments is buggy when an input argument contains spaces.
For an input argument of "-Dmyprop=hello world" it returns two arguments, split at the
space: "-Dmyprop=hello" and "world".

This causes eval-in-project to fail in spectacular ways when leiningen.original.pwd
contains spaces or when path to the clojure jar that gets passed to -Xbootclasspath
contains spaces (which it does by default on Windows XP).
2010-11-18 11:09:44 +01:00
Matjaz Gregoric
1c166b15e5 Use a more portable way of getting user's home folder. 2010-11-18 11:09:42 +01:00
Matjaz Gregoric
f4d254e04c Use windows-style paths when running on windows.
This makes path handling easier and fixes a failing test on windows.
2010-11-18 11:09:41 +01: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
e75c6d32b1 Better unquote testing. 2010-11-11 21:37:09 -08:00
Phil Hagelberg
26f315fbc2 Deprecate :jar-dir in favour of :target-dir. 2010-11-11 10:37:00 -08:00
Phil Hagelberg
a50cef373d bin/lein placement notes. 2010-11-10 20:49:45 -08: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
a53e419f4c Expand on bootstrap instructions. 2010-11-10 14:05:59 -08:00
Phil Hagelberg
742738d9d2 Fix unquote-project to preserve forms in test-selectors. 2010-11-10 14:05:42 -08:00
Phil Hagelberg
38347be0fc Allow test selectors and namespaces to be specified in the same run. 2010-11-10 13:10:49 -08:00
Phil Hagelberg
fa2a0a0f47 Mention features for 1.4 in tutorial/plugin docs. 2010-11-09 22:20:22 -08:00
Phil Hagelberg
1777267207 Test fixes. 2010-11-09 13:08:51 -08:00
Phil Hagelberg
51fd53b8b1 Show exceptions reading test namespaces. Fixes #127. 2010-11-09 13:08:29 -08:00
Phil Hagelberg
d176fa348f Fixes for bootstrap classpath in :eval-in-leiningen. 2010-11-09 13:07:21 -08:00
Phil Hagelberg
589b38b4ff Factor out read-args function in test task. 2010-11-08 13:36:58 -08:00
Phil Hagelberg
86b281eb14 Better error message when you don't nest dependencies correctly.
Thanks to abedra for "reporting" this bug. =)
2010-11-08 13:34:55 -08:00
Phil Hagelberg
acf9b100e1 Don't need to generate "Installation" section in skeleton readme. 2010-11-08 13:34:36 -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
89f2a77a7a Documentation updates in preparation for 1.4 release. 2010-11-07 15:51:44 -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
Phil Hagelberg
b505cba346 Remove usage of handler arg in test task. 2010-11-03 21:58:04 -07:00
Phil Hagelberg
d88165ae9c Deprecate unused eval-in-project arguments. 2010-11-03 21:18:37 -07:00
Phil Hagelberg
d900c662e3 Documentation updates. Mention JAVA_CMD, contribution guidelines. 2010-11-03 19:46:13 -07:00
Phil Hagelberg
a3255e5aba Switch from :test-resources-path to :dev-resources-path; deprecate former. 2010-11-02 22:07:30 -07:00
Phil Hagelberg
4274e6dcad Deprecation notice for :namespaces in project.clj. 2010-11-02 22:06:56 -07:00
Phil Hagelberg
9cf394649a Clarify unclear docstring for run task. 2010-11-02 21:48:17 -07:00
Phil Hagelberg
e66622a8e2 Fix post-AOT cleanup to use package-based deletion heuristic.
We had it so every .class file had to correspond with a .clj file in
src/, but sometimes there are outliers that don't match up. So instead
we now ensure that there's a directory in src/ that matches the
package of each .class file.
2010-11-02 21:45:15 -07:00
Joe Gallo
b837ebc20a Changed error message when missing required project. 2010-11-02 10:46:24 -04:00
Colin Jones
4af798d959 Allow :dev-dependencies without :dependencies. 2010-10-31 13:41:28 -04:00
Phil Hagelberg
a0656b05c4 Update NEWS file for upcoming 1.4 release. 2010-10-30 13:15:51 -07:00
Phil Hagelberg
28faed0021 TODO updates. 2010-10-30 13:15:51 -07:00
Phil Hagelberg
73cc0b5094 Add delete-non-project-classes to compile task. 2010-10-30 13:15:51 -07:00
Phil Hagelberg
e27f228e17 Forgot a test file. 2010-10-30 13:15:51 -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