Phil Hagelberg
58cddaa9c8
Copy shell wrappers from jar file to FS on install.
2010-08-09 18:15:49 -07:00
Phil Hagelberg
8012a50c88
Include bin scripts in generated jars when specified in :shell-wrapper.
2010-08-09 18:11:37 -07:00
Phil Hagelberg
0966229899
Clean up make-manifest. Fixes #46 .
2010-08-08 16:27:28 -07:00
Phil Hagelberg
d0e1678b34
Wrap checkout-deps read-project with more useful message. Fixes #85 .
2010-08-08 14:33:42 -07:00
Phil Hagelberg
9a1ea45d23
Indentation and whitespace fixes.
2010-08-08 13:58:08 -07:00
Phil Hagelberg
0e7599e729
Add support for user-level plugins.
2010-08-08 13:33:04 -07:00
Phil Hagelberg
6625672976
Load user init script on Leiningen launch.
2010-08-08 12:12:19 -07:00
Phil Hagelberg
2247d67e73
Rename :init-script to :repl-init-script; remove global-init-script.
2010-08-08 11:51:28 -07:00
Phil Hagelberg
381b9f0d3a
Make arglist check error more explicit.
2010-08-08 11:44:34 -07:00
Phil Hagelberg
7b0054dc86
Merge branch 'alex-init'
2010-08-08 11:31:10 -07:00
Phil Hagelberg
e451e12b55
Clean up argument grouping a bit.
2010-08-08 10:43:14 -07:00
Phil Hagelberg
c706035812
Merge remote branch 'trptcolin/master'
2010-08-08 10:11:36 -07:00
Phil Hagelberg
6db4080a06
Fix help message in interactive task.
2010-08-05 18:45:00 -07:00
Colin Jones
d2942f9feb
merge multiple-tasks
2010-08-05 14:24:30 -05:00
Colin Jones
53151e850a
Merge remote branch 'origin/master' into project-needed
2010-08-01 21:00:59 -05:00
Colin Jones
18799f2840
Merge remote branch 'origin/master' into multiple-tasks
2010-08-01 21:00:38 -05:00
Colin Jones
76d3d66482
multiple tasks from the command line
2010-08-01 20:58:22 -05:00
Phil Hagelberg
b915c68c6f
Add test! task that cleans and runs deps first.
2010-08-01 14:39:39 -07:00
Alex Ott
c9a453d8fd
implement support for global initialization script
...
script is either $LEIN_HOME/init.clj or $HOME/.lein/init.clj
2010-08-01 17:10:04 +02:00
Alex Ott
e5cc06e11d
check existence of init script
2010-08-01 16:27:55 +02:00
Alex Ott
690093eed3
implement loading of init-script specified in project.clj into REPL
2010-08-01 14:32:26 +02:00
Colin Jones
dc4ae5191c
task-level arity checking
2010-07-31 16:30:55 -05:00
Colin Jones
7acdf16a29
unifying interactive and normal task calling
2010-07-31 15:58:58 -05:00
Colin Jones
af71f1d529
more robust project-needed decision
2010-07-31 15:41:24 -05:00
Phil Hagelberg
778a522915
Add interactive task. No more waiting around for JVM boot if that's your thing.
2010-07-30 21:17:07 -07:00
Phil Hagelberg
062358093f
Indentation fix.
2010-07-30 13:28:40 -07:00
Phil Hagelberg
b5cb0cb52f
Don't load hooks unless they're specified in project.clj.
...
Turn on :implicit-hooks true to get back the old behaviour of scanning
the classpath.
2010-07-30 13:28:18 -07:00
Phil Hagelberg
c461fa75dd
Merge remote branch 'lozh/windows-fixes'
2010-07-28 21:54:23 -07:00
Phil Hagelberg
0b0a30e498
Catch exceptions looking for hooks, not just loading them.
2010-07-28 21:35:14 -07:00
Phil Hagelberg
0475ba538f
Add resources and test-resources to pom output.
2010-07-28 12:56:18 -07:00
Phil Hagelberg
5c85cdb534
Fix uberjar ns form.
2010-07-28 12:47:45 -07:00
Phil Hagelberg
a15893e9f2
Don't freak out if OS isn't in native-names. Fixes #81 .
2010-07-28 12:47:32 -07:00
Phil Hagelberg
f48213d120
Better hooks loading warning message.
2010-07-27 17:50:44 -07:00
Phil Hagelberg
19817504fe
Handle missing .class files better in leiningen.compile/stale-namespaces.
2010-07-27 17:49:55 -07:00
Phil Hagelberg
549ddc7bd3
Merge remote branch 'alexott/master'; Fixes #77 .
...
Conflicts:
src/leiningen/uberjar.clj
2010-07-26 21:54:46 -07:00
Mark McGranaghan
aefd10eeb5
Fix typo breaking uberjar.
2010-07-23 19:30:17 -07:00
Michał Marczyk
29f2ff279b
Added "OpenBSD" :openbsd to compile/native-names.
...
Thanks to tomoj for the fix and to zmyrgel for report & testing.
Also see #81 .
2010-07-23 09:09:27 +02:00
Michał Marczyk
ba72808176
s/meta-inf/META-INF/g in jar.clj
2010-07-23 06:50:55 +02:00
Laurence Hygate
9b8cd008c6
Work around problems in Java's handling of windows command line escaping
2010-07-22 19:30:59 +01:00
Phil Hagelberg
78f94180dc
Refactor new task.
2010-07-21 23:17:19 -07:00
Phil Hagelberg
2ff9928e13
Refactor deps task.
2010-07-21 23:17:07 -07:00
Phil Hagelberg
45b101d431
Clean up some docstrings.
2010-07-21 23:16:54 -07:00
Phil Hagelberg
bca8cf3a29
Refactor jar and uberjar tasks.
2010-07-21 23:16:25 -07:00
Phil Hagelberg
6c36bbb0da
Refactor clean task. Fixes #64 .
2010-07-21 23:14:53 -07:00
Alex Ott
e4bb204c1a
Fix problem with uberjar
2010-07-21 11:47:39 +02:00
Phil Hagelberg
49ad76d2ca
Fix use clause in classpath ns.
2010-07-17 11:24:30 -07:00
Phil Hagelberg
d6c50fbc28
Reverse order of checkout deps vs lib deps in classpath. Fixes #72 .
2010-07-17 11:22:17 -07:00
Phil Hagelberg
18f3a5a886
Collapse checkout-deps file into compile.clj.
2010-07-17 11:21:57 -07:00
Phil Hagelberg
71a966be19
Bump to using Clojure beta1 for Leiningen and new projects.
2010-07-17 10:38:55 -07:00
Phil Hagelberg
3234265aac
Fix repl to exit properly on ^D char. Fixes #69 .
...
Thanks to Steve Gilardi for the tip.
2010-07-17 10:37:50 -07:00
Allen Rohner
cd4e06d605
Fix pom/make-repository to work after changing deps/make-repository.
2010-07-16 09:36:53 -07:00
Paul Stadig
a434c92098
new command generates test namespace compatible with clojure-test-mode
2010-07-16 09:08:46 -07:00
Phil Hagelberg
101481bf51
Suppress hook-loading warning if lib dir is empty.
2010-07-12 17:41:22 -07:00
Phil Hagelberg
4b95989206
TODO updates
2010-07-11 08:00:48 -07:00
Phil Hagelberg
df79e2e7a1
Preserve order of :aot namespaces list.
2010-07-03 14:22:03 -07:00
Phil Hagelberg
99ed98cad6
Oops; missed local in my let form.
2010-06-26 15:13:36 -07:00
Phil Hagelberg
8eb54a913e
Minor cleanup of make-repository.
2010-06-26 14:53:44 -07:00
Allen Rohner
f5064be7d8
Adds support for repositories being maps, adds :username, :password options to the repository map.
2010-06-26 14:48:25 -07:00
Phil Hagelberg
58f85146e3
Merge remote branch 'michalmarczyk/flexible-jar-names'
...
Conflicts:
src/leiningen/uberjar.clj
2010-06-25 21:44:27 -07:00
Phil Hagelberg
2ed7339408
Remove unneeded use clause.
2010-06-25 21:39:58 -07:00
Phil Hagelberg
e5c7174f11
Roll back mistaken explicit eval of unquoted defproject args.
2010-06-25 08:03:09 -07:00
Phil Hagelberg
02e97149d7
Rename munge-project-args to eval-unquoted-project.
...
Also eval unquoted forms rather than passing them through.
2010-06-24 21:59:21 -07:00
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
Michał Marczyk
4fb55619ea
Added setting of default jar names through :jar-name & :uberjar-name.
...
Also added an optional uberjar-name argument to the uberjar task and
factored out the default jar/uberjar naming schemes into separate
functions.
2010-06-24 02:54:55 +02: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
Phil Hagelberg
f2214c7b17
Automatically compile and deps in eval-in-project if needed.
...
The heuristic for whether it's needed is just "is the directory empty
or not", which obviously isn't perfect, but whatever--it's just a
convenience thing.
2010-05-18 19:34:50 -10:00
Phil Hagelberg
4014adf766
NEWS/TODO updates.
2010-05-18 16:24:58 -10:00
Phil Hagelberg
d67d7d7cb9
Allow :jvm-opts to be set in project.clj.
...
Note: this forces the project to run in a forked JVM, which increases
startup time. Use sparingly.
2010-05-18 15:24:30 -10:00
Phil Hagelberg
7e493d6b46
Allow :fork option to be set in project.clj
2010-05-16 20:43:53 -07:00
Perry Trolard
aec6d3d91f
Fix infinite loop when core/-main called with no args.
2010-05-14 22:31:57 -07:00
Phil Hagelberg
b9663abca6
Allow :aot as alternate way to list :namespaces.
2010-05-14 20:37:27 -07:00
Phil Hagelberg
501dfbae7e
exits with 1 when tests have failures or errors
2010-05-14 15:55:48 -07:00
Phil Hagelberg
6ef32376bc
Allow org.clojure group-id to be omitted from clojure/contrib deps.
2010-05-04 21:59:34 -07:00
Phil Hagelberg
ce0d680e6c
Clojure 1.2 update: flatten has been promoted to core.
2010-04-28 20:38:29 -07:00
Phil Hagelberg
39732d5b64
Enough is enough.
2010-04-26 21:24:19 -07:00
Phil Hagelberg
9fd8cb23e7
Quit using that nasty $ESCAPED_ARGS hack for leiningen.core/-main.
2010-04-16 22:34:45 -07:00
Phil Hagelberg
cd4b56972c
Keep dev-dependencies in lib/dev, out of the way of uberjar.
2010-04-16 22:24:01 -07:00
Phil Hagelberg
a756c40de7
Re-enable use of checkout-dependencies.
2010-04-16 22:14:33 -07:00
Phil Hagelberg
44b6369aec
Move repl task out of shell script, finally! Depends on Clojure ticket #299 .
2010-04-16 21:46:53 -07:00
Phil Hagelberg
e886afb457
Upgrade to Clojure 1.2.0-master-SNAPSHOT.
2010-04-16 21:25:59 -07:00
Perry Trolard
d3b479d9df
Whitespace change...
2010-04-08 16:58:27 -05:00
Perry Trolard
575405c829
Fix incorrecty formed jarname in uberjar.
2010-04-08 16:49:51 -05:00
Phil Hagelberg
d9246d6c6f
More helpful message when no namespaces are configured for compilation.
2010-04-06 22:42:31 -07:00
Phil Hagelberg
5c3667986f
Keep jar files in root unless :jar-dir specifies otherwise.
2010-04-06 22:35:59 -07:00
David McNeil
225d4a4ae1
Write jar to the :target-path directory.
2010-04-06 22:31:13 -07:00
David McNeil
036b47d505
Added option to omit-default-repositories.
2010-04-06 22:31:13 -07:00
Phil Hagelberg
8c9e0a7dae
Include version number in jar filenames.
2010-04-06 22:22:17 -07:00
Stephen Compall
625c5de55d
move classpath-related functions from compile to classpath module
2010-04-06 22:08:33 -07:00
Stephen Compall
ba964458c6
add "classpath" built-in subcommand
2010-04-06 22:06:18 -07:00
Phil Hagelberg
266b254b76
Call read-project from leiningen.core ns.
2010-04-06 22:05:48 -07:00
Phil Hagelberg
28573d093a
Implement first run of checkout dependencies.
2010-04-06 21:59:44 -07:00
Phil Hagelberg
417151eb6a
Write ns->path and path->ns functions in core.
2010-04-06 21:41:23 -07:00
Phil Hagelberg
b3a794c604
I'm dumb; let some conflicts in.
2010-03-22 20:55:56 -07:00
Phil Hagelberg
0df6f8477d
Tweak symlinking of dependent jars.
2010-03-16 21:06:34 -07:00
Richard Newman
0b9fba8395
Make deps generic. Add draft symlink implementation.
2010-03-16 20:58:21 -07:00
Ryan Zezeski
1c9048dbb1
Fix jar task and add test.
...
The jar task is not correctly building the Main-Class attribute in the
case of multiple hyphens in the namespace. Fix this and add
regression test.
2010-03-15 21:15:46 -07:00
Stephen Compall
c99d28e7b0
Use on-disk file mod times in generated jars. Allows require to use jar-stored AOT compilations.
2010-03-15 21:02:36 -07:00
abscondment
d11eae7451
Separate version check from form generator; add an optional test-package argument to the from generator.
2010-03-15 20:49:05 -07:00
abscondment
b19d46b6d0
Prevent users of Clojure 1.0 from calling the test task and point them
...
to the lein-test-is plugin. closes #21
2010-03-15 20:48:50 -07:00
Stuart Halloway
1bbcf902f0
write build config into pom
...
- makes pom-as-project work in NetBeans Enclojure
2010-03-15 20:52:57 -04:00
Bobby Calderwood
731f3c5a5a
Use Java package naming conventions in Main-Class value of JAR manifest.
2010-03-06 21:48:12 -08:00
Phil Hagelberg
e4e4ff5db7
Don't create single-segment namespaces in the "lein new" skeleton.
2010-02-16 21:57:25 -08:00
Seth Schroeder
199d03a34d
[github-17] exclude Xbootclasspath from eval-in-project forking of JVM
2010-02-15 21:36:55 -08:00
Phil Hagelberg
5dcbda0ef7
Allow task functions to be defined in project.clj.
2010-02-14 14:14:49 -08:00
Phil Hagelberg
e4ae8b2bfd
Make no-project-needed set an atom so plugins can add to it.
2010-02-13 09:31:51 -08:00
Phil Hagelberg
59526b5dc8
Only shutdown agents in JVMs 1.6+.
2010-02-13 09:30:10 -08:00
abscondment
8fe72c159a
Refining upgrade: check for access, request confirmation.
2010-02-13 09:25:55 -08:00
abscondment
dce5992814
First pass at an upgrade task.
2010-02-13 09:25:47 -08:00
Phil Hagelberg
0aca88dcde
Move test's shutdown-agents to inside eval-in-project.
2010-02-12 21:01:56 -08:00
Phil Hagelberg
4a11590edb
Shut down agents after test run.
2010-02-12 12:51:58 -08:00
Phil Hagelberg
aaf60f6da0
Compile :main even if not explicitly listed in :namespaces.
2010-02-12 12:44:32 -08:00
Phil Hagelberg
14f9691e0a
Fix indentation and remove outdated todos.
2010-02-12 12:44:13 -08:00
Mark McGranaghan
7d57e70e3f
Differentiate between no compilable namespaces and no stale namespaces.
2010-02-12 12:38:36 -08:00
Phil Hagelberg
bf2f63c942
Modify test task so it doesn't load clojure.test in Leiningen's classloader.
2010-02-12 12:30:48 -08:00
Phil Hagelberg
94c675afe6
Exclude temp files from jar creation.
2010-02-01 20:57:34 -08:00
Phil Hagelberg
f244a34887
Whitespace fix. I'm crazy like that.
2010-02-01 20:51:35 -08:00
Perry Trolard
4b773b1835
Fix to lein-jar path resolution bug.
2010-02-01 20:46:29 -08:00
Phil Hagelberg
024f167d86
Remove overzealous arity catch.
...
This was catching an artity problem deeper in the code and reporting
it as "wrong number of arguments to task". Thanks to Mark McGranahan
for noticing it.
2010-01-31 21:11:48 -08:00
Rob Wolfe
d528c492ad
constraining implicit dependencies resolving
2010-01-31 14:14:19 -08:00
Phil Hagelberg
a9936d22b7
Factor out form-for-testing-namespaces for other plugins to use.
2010-01-30 22:43:07 -08:00
Phil Hagelberg
24ef40dba1
Add build.clojure.org releases repository.
2010-01-30 22:11:54 -08:00
Phil Hagelberg
bd0e725548
Fix test file for generated projects.
2010-01-30 22:11:17 -08:00
Phil Hagelberg
a960a1c4ef
Switch to ant 1.6.5 so we can access the subclassloader's classpath.
...
It's bound to user/*classpath* when using eval-in-project.
2010-01-30 21:28:02 -08:00
Rob Wolfe
9884b00bc3
cleaning :library-path
2010-01-30 16:01:58 -08:00
Phil Hagelberg
b6a807bd33
Add a note if compiling with no :namespaces specified.
2010-01-27 22:42:03 -08:00
Steve Purcell
797994881d
Make "lein jar" trim :source-path from packed files, not simply "src"
2010-01-27 22:18:30 -08:00
Rob Wolfe
a33a777e71
installing pom.xml artifact along with jar
2010-01-27 22:14:29 -08:00
Rob Wolfe
4cce1fafea
test path should be pointed by :test-path key
2010-01-27 22:13:41 -08:00
Phil Hagelberg
8789acc130
TODOs and readme clarification.
2010-01-27 21:38:55 -08:00
Phil Hagelberg
f3a097d958
Don't try to System/exit from within eval-in-project. It doesn't work.
2010-01-21 00:26:39 -08:00
Phil Hagelberg
b3232350e2
Update new task. Output project.clj as string. Add skeletal test.
2010-01-20 23:40:17 -08:00
Phil Hagelberg
40d8c2cff5
Merge commit 'neotyk/master'
2010-01-02 15:53:49 -08:00
Rob Wolfe
5e9f694fd3
windows environment
2010-01-02 15:23:30 -08:00
Phil Hagelberg
4fa7a13d2d
Don't AOT namespaces by default.
2010-01-01 22:06:36 -08:00
Phil Hagelberg
258f72e755
Add a message in the jar task.
2010-01-01 21:57:56 -08:00
Phil Hagelberg
793285c335
Use 1.1.0 for both Leiningen itself and newly-generated projects.
2010-01-01 21:46:09 -08:00
Hubert Iwaniuk
711b3acfec
replaces '.' with '/' in package name when creating dir
2009-12-30 23:40:43 +01:00
Phil Hagelberg
af77ef61ed
Merge commit 'mattrepl/master'
2009-12-26 08:46:04 -08:00
Phil Hagelberg
069a96f29c
Add überjar alias.
2009-12-26 08:42:37 -08:00
Phil Hagelberg
4fdad15915
Merge setfork branch.
2009-12-22 14:42:07 -08:00
Matt Revelle
bea0cfa50a
Added documentation about :exclusions in :dependencies to the README and deps docstring.
2009-12-21 16:28:19 -05:00
wilkes
f963996036
in eval-in-project, added setFailonerror true
2009-12-20 22:02:31 -08:00
Matt Revelle
09911f4aa9
Added exclusions support in project files. Useful for libraries that have extra dependencies unnecessary for runtime. (Looking at you, log4j)
2009-12-20 21:59:55 -08:00
Bagu is my name. Show my code to River Man
7f1f7ba6df
may have fixed issues with fork not getting jvm args and setting if on osx
2009-12-20 20:45:23 -08:00
Bagu is my name. Show my code to River Man
7661ebe493
moved setFork so that its only used when needed by native code
2009-12-20 20:45:22 -08:00
Bagu is my name. Show my code to River Man
8d35fe3f91
made changes as suggested by technomancy
2009-12-20 20:45:17 -08:00
Bagu is my name. Show my code to River Man
fa5cc6f326
more and better defaults for native-path
2009-12-20 20:44:55 -08:00
Bagu is my name. Show my code to River Man
768e5d1b18
added native-path key to project
2009-12-20 20:44:29 -08:00
Phil Hagelberg
66b4ed91e2
Rename exit-with-error to abort.
2009-12-15 19:51:09 -08:00
Dan Larkin
e4e01fe1d1
print an error message instead of a stack trace when no project.clj is found
2009-12-12 16:52:37 -05:00
Dan Larkin
54c8de178d
use exit-with-error instead of printing an error message and calling System/exit separately every time
2009-12-12 16:51:37 -05:00
Phil Hagelberg
5646badf5e
Be more verbose about the JVM in lein version.
2009-12-10 22:42:50 -08:00
Phil Hagelberg
63162f6229
Oops; new is shadowed by a macro; can't call it like that.
2009-12-10 22:24:06 -08:00
Phil Hagelberg
144723bad6
Avoid rest args where possible in order to catch arity mistakes.
2009-12-10 22:09:12 -08:00
Phil Hagelberg
a27704b7f9
Merge commit 'danlarkin/guard-against-arity'
2009-12-10 22:00:28 -08:00
Phil Hagelberg
8774473460
Modify test task to take advantage of fixed clojure bug #193 .
2009-12-10 21:56:49 -08:00
Dan Larkin
27aebfe37d
report wrong arity, don't crash
2009-12-10 23:42:19 -05:00
Dan Larkin
2ebb2f220a
grammar fix
2009-12-10 23:41:34 -05:00
Dan Larkin
41274ba073
fix NPE when doing "lein core"
2009-12-10 23:23:37 -05:00
Phil Hagelberg
acf6c3a1f6
Stray println snuck in.
2009-12-10 20:06:07 -08:00
Phil Hagelberg
a59bc8d5af
Call .replace instead of str-replace. Don't create lib or classes, just ignore.
2009-12-07 21:22:02 -08:00
Phil Hagelberg
94f65dadcd
Don't pass in a project arg to tasks that don't use it.
2009-12-07 21:17:01 -08:00
B.Smith-Mannschott
2c83f9dd72
teach "leiningen add" not to conflate project's name and directory.
...
As a consequence it is now also possible to specify a groupId for a
newly created project.
lein new [group-id/]artifact-id [project-dir]
- Group-id is optional. Project-dir defaults to artifact-id if not given.
- Neither group-id nor artifact-id may contain slashes.
- Underscore (_) is normalized to dash (-) in namespace names.
- Dash (-) is normalized to underscore (_) in file and directory names.
2009-12-07 20:59:25 -08:00
Phil Hagelberg
223dffe69c
Add aliases for version command. Don't need a project to use it.
2009-12-07 20:54:59 -08:00
Mike T. Miller
c521758a30
added 'version' command
2009-12-07 20:20:44 -08:00
Wayne Rittimann, Jr
2d5a1bece3
Fix for JDK 1.5 compatibility.
2009-12-06 14:07:40 -08:00
Phil Hagelberg
47a50d1695
Only include :resources-path in jar if it exists.
2009-12-03 22:36:47 -08:00
Phil Hagelberg
4dca233c8b
Allow callers of eval-in-project to customize the java task.
2009-12-03 22:36:28 -08:00
Phil Hagelberg
19548745ed
Add resources/ dir to the classpath and generated jars.
2009-12-02 21:07:14 -08:00
Phil Hagelberg
3a4c7e0408
Fix NPE when using -Xbootclasspath with transitive requires.
2009-12-01 23:02:44 -08:00
Phil Hagelberg
0361b0cfd0
System/exit appropriately depending on pass/fail count.
...
Also fixes super-summary, which an earlier commit had broken.
2009-12-01 21:11:21 -08:00
Phil Hagelberg
81d05b7ae2
Mention cleaning before uberjar to avoid dev deps.
2009-11-30 22:22:23 -08:00
Phil Hagelberg
1c17c2deca
Skip dev dependencies when pulling deps for compiling.
2009-11-30 22:20:15 -08:00
Alex Osborne
fb95c5ef57
Run compile and test tasks in isolated classloader
...
This means that we can:
- Safely compile against alternative versions of Clojure.
- Move classpath logic from the shell script to lein itself.
- Run lein with: java -jar leiningen-standalone.jar
This patch also makes the source, test and library paths configurable
which is useful for people with special requirements like mixed-language
projects.
2009-11-30 15:34:14 +11:00
Phil Hagelberg
b9a018721e
Unify terminology: there are no commands, just tasks.
2009-11-29 14:22:20 -08:00
Phil Hagelberg
4d4aa03983
Allow test task to take namespaces as an argument.
2009-11-29 14:20:09 -08:00
Phil Hagelberg
7acd4cb32d
Updated todos.
2009-11-28 21:35:19 -08:00
Phil Hagelberg
eb7f69adbb
Merge branch 'no-maven-shell-out'
2009-11-28 21:22:52 -08:00
Andrei Dragomir
7104b52a0c
fixed weird jars issue crashing uberjar task; no longer checking input ZipEntry size
2009-11-28 20:40:28 -08:00
Phil Hagelberg
15cbad9daf
Disable help summary output until Clojure bug #130 is fixed. =(
2009-11-28 20:38:24 -08:00
Phil Hagelberg
ec2724120a
The install task no longer shells out to maven.
...
Thanks to Alex for several functions taken from clojars.
2009-11-28 20:28:33 -08:00
Phil Hagelberg
173da8ee74
Remove duplicate task output from help task.
...
Consolidate IO in help.
2009-11-27 20:13:36 -08:00
Phil Hagelberg
777ce00787
Don't mkdir classes if it's a task that doesn't take a project arg.
2009-11-27 20:10:41 -08:00
Dan Larkin
014b2f18f8
we no longer create a pom-generated.xml so we no longer have to clean it
2009-11-25 01:40:10 -05:00
Dan Larkin
e024e15c79
improve "clean" command: Don't delete lib/ and classes/, just empty them. Also delete -standalone jar and pom-generated.xml
2009-11-25 01:39:00 -05:00
Dan Larkin
cb5bf137a8
clean should delete whatever (:compile-path project) is, not hardcode "classes/"
2009-11-25 01:39:00 -05:00
Dan Larkin
47e7b98ddb
make :compile-path a key that's always present in the project hash map
2009-11-25 01:35:07 -05:00
Dan Larkin
6fbdfb7a91
move mkdir of classes/ from shell script into core.clj
2009-11-25 01:35:07 -05:00
Phil Hagelberg
cee9dcc0ee
Update todos.
2009-11-24 22:24:49 -08:00
Phil Hagelberg
39f6ab8be1
Merge commit 'danlarkin/build-jar-in-memory'
2009-11-24 22:20:18 -08:00
Dan Larkin
258b6b52e2
remove lancet require from pom, it wasn't being used
2009-11-25 00:53:13 -05:00
Dan Larkin
90d5e955fb
include a pom.properties file in the jar
2009-11-25 00:50:21 -05:00
Dan Larkin
7647c6cbed
refactor pom and jar code to use make-pom
2009-11-25 00:30:04 -05:00
Dan Larkin
d3159a4548
generate pom byte array (instead of on disk) and include that in the jar in appropriate meta-inf/groupid/artifactid directory
2009-11-25 00:18:31 -05:00
Dan Larkin
366c8713b0
refactor writing files to jar into a multimethod
2009-11-25 00:15:36 -05:00
Phil Hagelberg
ca0eb42f47
Neither "new" nor "help" tasks need a project to run.
2009-11-23 21:27:07 -08:00
Phil Hagelberg
a2f17c0d0b
Update readme for easier dev installation; add some TODOs.
2009-11-23 21:26:47 -08:00
Dan Larkin
b7ae6e263f
use java.util.jar to build jars instead of lancet
2009-11-23 01:08:44 -05:00
Phil Hagelberg
5d018c1026
Leave lib/ and classes/ intact but delete their contents.
2009-11-22 20:26:45 -08:00
Phil Hagelberg
f979048404
Merge commit 'danlarkin/improve-manifest'
2009-11-22 15:55:24 -08:00
Alex Osborne
7b6acbc5af
Fix compiling of namespace that include a - character.
2009-11-22 14:55:42 -08:00
Dan Larkin
07f61f6bf6
remove gen-class on leiningen.core and update lein shell script and project file to deal with it
2009-11-22 17:09:11 -05:00