Commit graph

456 commits

Author SHA1 Message Date
Matjaz Gregoric
f8974186e2 Don't install .bat files on Unix. 2010-11-19 20:12:29 -08:00
Phil Hagelberg
cb51f6eb09 Support :repl-options in project.clj. 2010-11-19 19:21:30 -08:00
Phil Hagelberg
87753f890f Include :all test selector by default. 2010-11-18 21:53:09 -08:00
Phil Hagelberg
a6d0a174df I love reduce, but it's not appropriate here. 2010-11-18 21:40:02 -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
Matjaz Gregoric
1b2e9703d3 Print an error message when plugin uninstall fails.
Windows is strict when it comes to file locking
and so doesn't let leiningen delete its own plugin jar files.
Print an error message when uninstallation fails.
2010-11-18 11:09:53 +01:00
Matjaz Gregoric
6b6a30a148 Use a platform dependent tmp folder. 2010-11-18 11:09:51 +01:00
Matjaz Gregoric
0a6ec18e0d Add support for windows .bat wrappers. 2010-11-18 11:09:48 +01:00
Matjaz Gregoric
09e4881bd0 Set working directory in eval-in-project.
Not setting it can lead to some hard to debug test failures
when a previously set working directory of lancet/ant-project is used.
2010-11-18 11:09:46 +01:00
Matjaz Gregoric
412cad7fdc Make sure paths in the shell wrapper are unix-style. 2010-11-18 11:09:45 +01:00
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
Phil Hagelberg
682b514052 Place user plugins after lib/ on the classpath.
User plugins are uberjars now, so if you had swank-clojure in
~/.lein/plugins you were locked to its version of Clojure, etc.
2010-11-13 11:16:49 -08:00
Phil Hagelberg
f41c5af1ac Fix jar task for projects with no dependencies. Fixes #123. 2010-11-13 11:03:01 -08: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
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
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
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
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
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
73cc0b5094 Add delete-non-project-classes to compile task. 2010-10-30 13:15:51 -07:00
Phil Hagelberg
2ab1d4cebc Rename first-arg -> flag. 2010-10-28 21:18:52 -07:00
Phil Hagelberg
063baba0aa Add run task plus rudimentary tests. 2010-10-28 21:12:24 -07:00
Phil Hagelberg
b5adf254a5 Add local-repo-path as a top-level def for customization. 2010-10-28 19:13:03 -07:00
Phil Hagelberg
ac60070f62 Don't bother running deps task if there aren't any dependencies. 2010-10-28 19:12:29 -07:00
Colin Jones
18e69ea035 Add some tests around subtask help formatting. 2010-10-26 23:32:42 -05:00
Colin Jones
9b437c4c2a Pass the task var around to avoid extra lookups. 2010-10-26 22:46:55 -05:00
Colin Jones
053761774b Move plugin's subtask help mechanism to the help ns. 2010-10-26 22:36:57 -05:00
Joe Gallo
bd3675b3aa Add verbose DEBUG output of errors initializing hookes. 2010-10-26 19:27:01 -07:00
Colin Jones
8c703034b0 Remove quote typo. 2010-10-25 21:03:36 -05:00
Phil Hagelberg
35c9e4fee9 Make plugin help get picked up by help task. 2010-10-25 18:54:25 -07:00
Phil Hagelberg
a423d5a304 Allow tasks to provide their own help function. 2010-10-25 18:53:05 -07:00
Michael D. Ivey
4be3d03c48 Merge Colin Jones' lein-plugin plugin for managing plugins
This is Colin's plugin.clj plus a few tests.
2010-10-25 18:09:11 -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
7c60a884ae Use an arrow in leiningen.help/tasks. Keep it under 80 cols. 2010-10-22 12:19:02 -07:00