Commit graph

910 commits

Author SHA1 Message Date
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
Phil Hagelberg
0cf1ddf024 Separate :snapshots and :releases repository URLs in project.clj.
Plane commit; woo!
2011-01-15 08:53:03 -05:00
Phil Hagelberg
48109fa593 Set $PROJECT.version as system property. Fixes #156. 2011-01-14 15:23:58 -05:00
Matjaz Gregoric
3426e037b9 Make user-specified %CLASSPATH% take priority. 2011-01-14 20:03:56 +01:00
Phil Hagelberg
e38f8bfa91 Make user-specified $CLASSPATH take priority. 2011-01-14 12:02:01 -05:00
Phil Hagelberg
1c82f852fc Fix docstring for clean task. 2011-01-14 09:42:52 -05:00
Phil Hagelberg
13cf7101d4 Update NEWS for 1.5.0 features. 2011-01-13 22:30:35 -05:00
Phil Hagelberg
c112f60724 Add test for deploy task. 2011-01-13 22:30:24 -05:00
Phil Hagelberg
59e18bb485 Add deploy task.
Works great with file:// repositories, OK with http://, and not at all
with scp://.Commit rough deploy task; still need to bridge maven and ant APIs.
2011-01-13 15:29:19 -05:00
Phil Hagelberg
1de07c9e45 Reload tests in interactive mode. 2011-01-13 15:27:11 -05:00
Phil Hagelberg
479c2671ba Bump version to 1.5.0-SNAPSHOT. 2011-01-13 15:27:01 -05:00
Joe Gallo
7c6275edd7 Make lein test! able to handle nses 2011-01-13 10:03:41 -05:00
Phil Hagelberg
bf7685b4d3 Update copyright year in readme. 2011-01-12 18:59:39 -05:00
Joe Gallo
26bdace257 Use the current year for the README 2011-01-12 18:30:20 -05:00
Matjaz Gregoric
f95b4b1e12 Update README to point to the latest Windows release. 2011-01-01 22:55:56 +01:00
Phil Hagelberg
6a1572f478 Release 1.4.2. 2010-12-31 22:22:56 -08:00
Phil Hagelberg
0c6cc27eb6 Honor init form in eval-in-project. Fixes #152. 2010-12-31 22:22:56 -08:00
Liu Zehua
bd22c0d4b1 Added .gitattributes to avoid autocrlf for bat files 2010-12-31 22:22:56 -08:00
Phil Hagelberg
78384ba6da Fix condition in native-path calculation. Thanks to wburke. 2010-12-31 22:22:56 -08:00
Matjaz Gregoric
6cdd04949d Switch from JAVA_OPTS to JVM_OPTS in windows batch scripts.
Keep JAVA_OPTS for backwards compatibility.
2010-12-25 09:41:49 +01:00
Phil Hagelberg
b4943e1caa Allow :clean-non-project-classes to be a seq of regexes. 2010-12-24 21:24:34 -08:00
Phil Hagelberg
665ab9afc3 Add sample.project.clj to static-help pages. 2010-12-24 20:48:10 -08:00
Phil Hagelberg
19b44647cc Rework some of sample.project.clj. 2010-12-24 20:48:10 -08:00
Phil Hagelberg
65a2dc461b Switch from JAVA_OPTS to JVM_OPTS. The former retained as an alias for now. 2010-12-24 20:48:10 -08:00
Alex Osborne
3f299cc560 Fix lein run first argument bugs.
There were three related problems:

1) The first argument was always parsed with read-string, even
   when defaulting to the :main namespace.  This caused
   non-numeric first arguments to throw:

   Exception in thread "main" java.lang.Exception: Unable to
   resolve symbol: foo in this context

   Avoid read-string entirely and update the unit tests to use an
   unreadable string instead of a number to make the problem obvious.

   This problem was reported by Marek Kubica on the Clojure
   mailing list.

2) When using an alias the alias keyword was passed to -main as the
   first argument.  This is inconsistent with how the -m and :main
   simply pass the program arguments, not the namespace or -m flag.

3) There was no way to pass "-m" or a string beginning with ":"
   as a first argument to the run program.  Added "--" as an option
   to escape these.
2010-12-24 23:41:23 +11:00