Commit graph

984 commits

Author SHA1 Message Date
Phil Hagelberg
f88a7e413d User plugins should take precedence on the project's classpath. 2011-03-01 09:29:21 -08:00
Phil Hagelberg
4b994497ee Factor out :repl-options handling into its own function. 2011-02-28 20:18:20 -08:00
Phil Hagelberg
b5002a23c2 Rearrange todo.org. 2011-02-28 20:04:46 -08:00
Phil Hagelberg
ef5b7fef6d Fix chaining of tasks. 2011-02-28 20:04:36 -08:00
Phil Hagelberg
33846eddfb Honor :class-file-whitelist to make classes/ deletion more manageable. 2011-02-28 13:55:06 -08:00
Phil Hagelberg
1943be7000 Accept :repl-init ns in favour of :repl-init-script. 2011-02-23 21:17:58 -08:00
Phil Hagelberg
9cc22ac615 Warn when falling back to jline. 2011-02-23 21:17:25 -08:00
Dmitri Iouchtchenko
80964a19d9 Adjust .gitignore creation.
Should only ignore a new project's "lib" or "classes" if they are
directories in the root.
2011-02-21 19:04:05 -05:00
Phil Hagelberg
cc740d04e0 Mention ant stdin bug. 2011-02-18 20:43:29 -08:00
Phil Hagelberg
338dbbc36c Key leiningen-auth by URL instead of repo name. 2011-02-18 20:43:17 -08:00
Phil Hagelberg
d839074a96 Add prepend-tasks for task hooking in simplistic cases. 2011-02-15 20:48:37 -08:00
Phil Hagelberg
dcf210d501 Add flexibility to clean task. 2011-02-15 11:23:52 -08:00
Phil Hagelberg
1c1c8f4229 Fix test-jar and test-pom. 2011-02-13 19:34:53 -08:00
Phil Hagelberg
583431cc06 Continue loading hooks if one happens to fail. 2011-02-13 17:17:06 -08:00
Phil Hagelberg
727781e6bf Don't def project to var named after project. Fixes #147. 2011-02-13 15:07:58 -08:00
Phil Hagelberg
ff58079e37 Remove clojure snapshot dep from test project. 2011-02-13 15:06:42 -08:00
Phil Hagelberg
c962312003 Fix test-pom to watch for abort. 2011-02-13 15:06:32 -08:00
Matjaz Gregoric
edd75979fc Bring jar text up to date with current shell wrappers. 2011-02-12 00:14:20 +01:00
Matjaz Gregoric
e3bf2d0454 Fix test_deploy. 2011-02-11 23:56:52 +01:00
Matjaz Gregoric
dc29f9c3ac Improve self-install error messages with lein.bat. 2011-02-11 23:56:50 +01:00
Jaskirat
846409c9bc Fixed script-template for windows. Made it similar to the shell script so that the %s replacements occur in the right order 2011-02-12 03:47:08 +05:30
Phil Hagelberg
6cc10bc4be s/disable-implicit-clean/disable-deps-clean/. keep backwards-compat. 2011-02-10 20:08:59 -08:00
Phil Hagelberg
c61611882d Fix deploy test. 2011-02-10 20:08:16 -08:00
Phil Hagelberg
d4cc05773f Mention freezing snapshot versions. 2011-02-10 20:07:55 -08:00
Phil Hagelberg
cc4379ff1a Catch errors when requiring tasks in help. Fixes #172. 2011-02-10 19:34:48 -08:00
Phil Hagelberg
cda3806ca6 21st century, mate. 2011-02-10 19:26:15 -08:00
Phil Hagelberg
f4e4c1958d Compojure is grandfathered in. Fixes #164. (close enough)
With the regex factored out into its own def, it can be overcome in
~/.lein/init.clj:

(require 'leiningen.new)
(alter-var-root #'leiningen.new/project-name-blacklist (constantly #"^$"))
2011-01-28 20:21:36 -08:00
Phil Hagelberg
e3bbd8809d Don't checksum the deps unless needed. 2011-01-27 09:11:17 -08:00
Phil Hagelberg
f505317a14 Fix deploy/deps arities. 2011-01-26 10:38:13 -08:00
Phil Hagelberg
15ff6b1170 A few doc changes. 2011-01-24 19:42:38 -08:00
Phil Hagelberg
27f0f36030 Suppress socket closed exceptions in interactive tasks.
This requires heinous hackery! It appears the only way to get out of
clojure.main/repl is by sending an EOF character, but there doesn't
seem to be a way to do that over sockets; you can only close
sockets. Reading from a closed socket results in an exception, so we
rebind clojure.main/skip-whitespace, which is where the reading
happens, to a function that fakes an EOF if it sees an IOException.

We also have to pass in a custom :caught function to suppress
SocketExceptions since the clojure.main/repl will continue to attempt
to perform I/O on the socket even once we are done with it.
2011-01-24 19:42:17 -08:00
Phil Hagelberg
bf08da5742 New project skeletons don't need contrib. 2011-01-24 19:39:01 -08:00
Phil Hagelberg
781ec86f18 Fix deploy task to use :repositories for configuration.
No more separate :deploy-to configuration.
2011-01-24 19:38:28 -08:00
Phil Hagelberg
0ecfbe150d First pass at fixing infinite loop in interactive task.
Still need to suppress exception output from clojure.main. Hard to
debug since we are turning off *err* on purpose and the problem
doesn't occur when we leave *err* alone.
2011-01-22 10:11:23 -08:00
Phil Hagelberg
abb6f2b53b Make bin/lein compatible with old Bourne shell.
Thanks to Don Jackson.
2011-01-22 10:06:24 -08:00
Phil Hagelberg
fdec5685f3 Don't send stderr to the socket repl. 2011-01-21 12:57:08 -08:00
Phil Hagelberg
3c738ce443 Merge remote branch 'mattrepl/master' 2011-01-20 22:15:59 -08:00
Travis Vachon
30e197f8cc Add logic to create checksum file after creating dependencies
This means that deps won't even try to resolve dependencies
after the first time unless they've changed or the lib dir is empty.
2011-01-21 00:29:07 -05:00
Travis Vachon
b40b8575d4 Add ant-nodeps as a dependency to pull in symlink task
The symlink task appears to have moved to ant-nodeps in ant 1.7.1,
which means that :jar-strategy :symlink is currently broken. Add
ant-nodeps as a dependency to get this working again.
2011-01-21 00:29:07 -05:00
Phil Hagelberg
e462e6fe27 The *jure check needs to be case-insensitive. Thanks to kencausey. 2011-01-20 21:22:44 -08:00
Matt Revelle
33ef2ca981 Fix case of not finding :deploy-to when no options are provided. 2011-01-20 22:44:07 -05:00
Matt Revelle
9ee9fd1784 Merged auth support for deps with latest from master. 2011-01-20 16:20:50 -05:00
Phil Hagelberg
de46c1651f Set includeantruntime to false for javac task. 2011-01-19 21:33:26 -08:00
Phil Hagelberg
0cf736a5d6 Fix deploy test. 2011-01-19 21:33:26 -08:00
Phil Hagelberg
201f0b6249 Add version to script wrappers. 2011-01-19 21:33:26 -08:00
Travis Vachon
27c631aa24 Fix bug in classpath task when checkout project uses custom paths
Custom {source,compile,resource}-paths in a checkout project would not
be absolute, which meant checkout projects would not be on the
classpath as expected.

Fix this by ensuring that paths extracted from checkout dependencies
are always absolute.
2011-01-18 22:50:55 -05:00
Matt Revelle
76cc24050d Moved make-auth to leiningen.deps from leiningen.deploy. Modified leiningen.deps/make-deps-task to use make-auth. 2011-01-15 18:56:26 -05:00
Phil Hagelberg
ee6736a3f3 Add pcmpl-lein.el for eshell completion. 2011-01-15 10:38:41 -05:00
Phil Hagelberg
31e5c6fef8 Update bash completion with latest task list. 2011-01-15 09:23:13 -05:00
Phil Hagelberg
e30a38d549 Skip fetching deps unnecessarily when :checksum-deps is set. 2011-01-15 09:23:03 -05:00