Commit graph

259 commits

Author SHA1 Message Date
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