Commit graph

253 commits

Author SHA1 Message Date
Michał Marczyk
8ad14274d3 Fixed whitespace in munge-project-args. 2010-06-24 21:52:28 -07:00
Michał Marczyk
b18c417ba4 Modified defproject to emit unquoted forms verbatim.
This means they are evaluated at runtime. See #49.
2010-06-24 21:52:27 -07:00
Howard M. Lewis Ship
32ceeba111 Recognize a :classifier keyword for dependencies as the Maven classifier
Fixes #58
2010-06-24 20:50:45 -07:00
Phil Hagelberg
99de1160f2 Clean before uberjar, just to be sure. 2010-06-24 11:40:46 -07:00
Phil Hagelberg
5adb4f39cc Support uberjar out of non-default directories. Fixes #60. 2010-06-21 19:20:59 -07:00
Phil Hagelberg
3c86ca585c Implicitly clean lib/ before running deps. Fixes #61. 2010-06-21 19:20:37 -07:00
Howard M. Lewis Ship
badf8c4613 Add support for test-only resources
Fixed #53
2010-06-19 21:54:16 -07:00
Phil Hagelberg
99a1a96e1a Add a little more output to uberjar task. 2010-06-16 21:15:31 -07:00
Phil Hagelberg
a64a77bc88 Suppress extra "lein deps" output. 2010-06-16 21:10:27 -07:00
Phil Hagelberg
f6333042c2 Fix #54; make sure all tasks have fn-level docstrings.
This is a workaround for Clojure issue #130.
2010-06-16 19:30:41 -07:00
Phil Hagelberg
c851b81659 Fix #48; clear out lib/dev in lein clean. 2010-06-16 19:10:56 -07:00
Phil Hagelberg
4a7758a2ce Project skeleton cleanup. 2010-06-15 18:59:09 -07:00
Phil Hagelberg
f95028c420 Suppress useless compilation output. 2010-06-15 18:58:53 -07:00
Phil Hagelberg
20315e3b46 Allow compile task to take a list of namespaces as arguments. 2010-06-12 15:28:50 -07:00
Michał Marczyk
c0c4cc8c48 Handle more types of project metadata.
:url, :mailing-list, :mailing-lists, :licence, :license,
:licences, :licenses will now be used in pom.xml if found
in project.clj.
2010-06-12 15:17:01 -07:00
Phil Hagelberg
7d4444455b Remove Leiningen's run-task in favour of Robert Hooke. 2010-06-11 23:03:02 -07:00
Phil Hagelberg
e81fafbc46 Collapse test task into only a single run-tests call. 2010-06-07 18:07:03 -07:00
Artyom Olshevskiy
3e90e44f4c Added FreeBSD to native names in order for lien swank to wark on FreeBSD 2010-06-07 12:45:58 -07:00
Phil Hagelberg
b88d1b487e Some notes. 2010-06-06 21:18:56 -07:00
Phil Hagelberg
c385a3f576 That last commit was definitely the wine talking. 2010-06-06 21:17:48 -07:00
Phil Hagelberg
179c27d281 Fix error message on missing task. 2010-06-06 20:53:37 -07:00
Phil Hagelberg
617b19894b Find dev-dependencies even when :library-path is customized.
Thanks r0man.
2010-06-06 20:52:52 -07:00
Phil Hagelberg
0cecb8aae8 Don't try to deref nil hook atom. 2010-06-06 19:22:25 -07:00
Phil Hagelberg
4ff7dab7eb Keep hooks on the task function itself, genius.
Entia non sunt multiplicanda praeter necessitatem.
2010-06-06 16:51:02 -07:00
Phil Hagelberg
c725770182 Reduce some contrib dependencies. 2010-06-06 16:47:36 -07:00
Phil Hagelberg
915e61a830 Add sample.project.clj showing all honored project keys. 2010-06-05 13:27:04 -07:00
Phil Hagelberg
553eed84cc Make aliases an atom so plugins can change it. 2010-06-05 13:24:04 -07:00
Phil Hagelberg
7c37750bb9 Suppress annoying ant [null] prefix on all output. 2010-06-04 09:09:35 -07:00
Phil Hagelberg
ab70dbeeef Also don't try to read the test results doc if it's empty. 2010-06-02 15:26:38 -07:00
Phil Hagelberg
8667bac839 Don't try to read the test results doc if it doesn't exist. 2010-06-02 14:48:42 -07:00
Phil Hagelberg
ad237271c4 Include arglists in task help output. 2010-05-27 13:08:44 -10:00
Phil Hagelberg
c99d4b5fd8 Make inter-task dependencies honor hooks. 2010-05-27 12:27:40 -10:00
Phil Hagelberg
0f49979eca Allow leaving the repl with ctrl-d. 2010-05-27 12:15:32 -10:00
Phil Hagelberg
18d5290f93 Poll for repl startup.
Still some prompt I/O wackiness with evaling long-running forms.
2010-05-27 11:49:34 -10:00
Phil Hagelberg
f7cf22c010 3/4 of the way to a working socket-based repl task. Take that, Ant! 2010-05-27 11:23:11 -10:00
Phil Hagelberg
5f237bee62 Don't shutdown agents in core; test task can handle that. 2010-05-27 08:43:20 -10:00
Phil Hagelberg
ee7c2da6d1 Default to EPL for new projects. Change it if you like.
There've been a few lein-generated projects that simply omit licensing
data, which is really not a good idea. I'd rather have a sane default
since changing the license is no more bother than adding one.
2010-05-27 08:43:02 -10:00
Phil Hagelberg
cf37e9ca6e Exit subprocess after writing test summary. 2010-05-22 16:56:21 -10:00
Phil Hagelberg
a927403e8e Remove call to flatten. 2010-05-22 15:29:00 -10:00
Phil Hagelberg
c9bd5c6927 Fork unconditionally for now. This helps some things but *breaks* repl.
We need to come up with an alternate approach for the repl task as Ant
simply refuses to implement support for stdin in a forked process:

http://mail-archives.apache.org/mod_mbox/ant-dev/200310.mbox/%3CBAY8-F108GThLvY279700003252@hotmail.com%3E
2010-05-22 15:22:44 -10:00
Phil Hagelberg
2861d1a414 Allow :all hooks to be set. 2010-05-21 17:10:29 -10:00
Phil Hagelberg
8768ddcadc If a task returns an integer value, consider it an exit code.
This will let us play better with hooks. Previously the System/exit
was hardcoded in the test task and couldn't be used by the hooks.
2010-05-21 17:10:24 -10:00
Dan Larkin
0b35d44b46 flatten needs to come from contrib seq-utils 2010-05-21 14:03:58 -10:00
Stuart Halloway
12b4bf10a3 running the test suite should not recompile and reload between tests!
- This appears to have been introduced innocently during a
    refactoring http://github.com/technomancy/leiningen/commit/a9936d22
    It is a crippling bug, making test suites run an order of magnitude 
    slower, as they recompile the entire app between test files.
2010-05-21 13:25:03 -04:00
Phil Hagelberg
7de0b79c09 Write test summary to disk, then read it in test task.
IIIIIIIIIIIIIIIIIIIIIIIIIIICK. Ant's subclassloaderisms are nasty!
2010-05-19 23:55:25 -10:00
Phil Hagelberg
4d2793abdc Revert "Allow eval-in-project to exit the VM."
This reverts commit b969b6cf9e.
2010-05-19 23:25:54 -10:00
Phil Hagelberg
b969b6cf9e Allow eval-in-project to exit the VM.
Ugh; ant's permissions are hairy.
2010-05-19 23:13:18 -10:00
Phil Hagelberg
c84b717705 Add hooks using symbols instead of strings. 2010-05-19 22:23:02 -10:00
Phil Hagelberg
f1e2cf8996 First pass at implementing hooks, inspired by clojure.test fixtures. 2010-05-19 17:13:32 -10:00
Phil Hagelberg
f1ae52a31c Allow :warn-on-reflection to be set in project.clj 2010-05-18 19:35:21 -10:00