Commit graph

94 commits

Author SHA1 Message Date
Phil Hagelberg
4e5574cc1c Allow search pagination to work outside project. 2011-06-18 20:39:04 -07:00
Joe Gallo
69174dc347 Accept a URL as an argument to the deploy task. 2011-06-13 14:32:07 -04:00
Phil Hagelberg
874951cc56 Extract os/arch-specific native libs into native. 2011-05-31 21:40:38 -07:00
Phil Hagelberg
2c0e605554 Move to usages of leiningen.util.paths. 2011-05-29 14:27:07 -07:00
Phil Hagelberg
c51ba1115e Fix search test. 2011-05-29 14:26:41 -07:00
Phil Hagelberg
665ad07b74 Merge native-deps functionality. Needs more testing. 2011-05-06 21:11:14 -07:00
Phil Hagelberg
be641e770d Un-generalize code injection. Use for Hooke only.
There's too much opportunity for collision to make this a generalized
feature; let's just use it to get the six forms required for add-hook
and thus retest/test selectors.
2011-05-06 20:05:55 -07:00
Clojure
668919b15d Fix search and uberjar tests. 2011-05-05 21:12:43 -07:00
Phil Hagelberg
e3c1847245 Merge search task into mainlein. (har har) 2011-05-04 18:07:53 -07:00
Phil Hagelberg
f9138b1f14 Use the first line of task defn docstrings as help summary. 2011-04-12 13:02:18 -07:00
Colin Jones
511ee7ef67 Fix version comparison by using Maven API. 2011-03-26 17:46:33 -05:00
Phil Hagelberg
74ba8f8829 Add tests for snapshot/releases distinction. 2011-03-20 11:00:15 -07:00
Phil Hagelberg
6546512048 Factor out test helper functions. 2011-03-17 21:49:51 -07:00
Phil Hagelberg
7347e67aa8 Support :snapshots/:releases/:update/:checksum settings in :repositories. 2011-03-15 23:04:02 -07:00
Phil Hagelberg
96ff4eee9e Allow multiple Java source paths. Fixes #155. 2011-03-09 21:51:49 -08:00
Joe Gallo
1cef468bcd Move test namespaces to leiningen.test.* 2011-03-06 09:41:47 -05:00
Phil Hagelberg
1c1c8f4229 Fix test-jar and test-pom. 2011-02-13 19:34:53 -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
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
Phil Hagelberg
c61611882d Fix deploy test. 2011-02-10 20:08:16 -08:00
Phil Hagelberg
0cf736a5d6 Fix deploy test. 2011-01-19 21:33:26 -08:00
Phil Hagelberg
c112f60724 Add test for deploy task. 2011-01-13 22:30:24 -05:00
Phil Hagelberg
b4943e1caa Allow :clean-non-project-classes to be a seq of regexes. 2010-12-24 21:24:34 -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
Phil Hagelberg
c5c760329b Add a test for :skip-aot on :main. Fixes #145. 2010-12-13 22:56:10 -08:00
Colin Jones
37b7d2e602 Clean up after test runs. 2010-12-11 11:52:09 -06:00
Colin Jones
a4a517b990 Fix argument order for install & plugin install.
This was breaking installs of things like
org.clojars.trptcolin/libthrift (where the group ID had
periods).
2010-12-11 11:27:14 -06:00
Matjaz Gregoric
a47bc71b79 Fix a test that wasn't testing anything. 2010-12-09 22:01:08 -08:00
Phil Hagelberg
b66a046609 Fix tests to reflect sample project version change. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
cc62c1a818 Don't allow release versions that depend upon snapshots. 2010-12-09 12:46:33 -08:00
Phil Hagelberg
3c5fecfe98 Fix path issue in javac task. Fixes #138. 2010-11-23 20:11:58 -08:00
Phil Hagelberg
6f517d0af2 Fix test to reflect run task bugfix. 2010-11-21 20:59:25 -08:00
Phil Hagelberg
2bda774edc Add :uberjar-exclusions to project.clj. 2010-11-20 12:22:29 -08:00
Colin Jones
08522f89e5 Test plugin installation and create plugins dir where necessary. 2010-11-20 13:34:50 -06:00
Phil Hagelberg
96423b44b3 Use a platform dependent nullsink in test. 2010-11-19 20:12:29 -08:00
Matjaz Gregoric
f8974186e2 Don't install .bat files on Unix. 2010-11-19 20:12:29 -08:00
Phil Hagelberg
c85aaf83a5 Merge remote branch 'mtyaka/windows-updates'
Conflicts:
	src/leiningen/jar.clj
	test/test_jar.clj
2010-11-18 21:21:05 -08:00
Matjaz Gregoric
6b6a30a148 Use a platform dependent tmp folder. 2010-11-18 11:09:51 +01:00
Matjaz Gregoric
0a6ec18e0d Add support for windows .bat wrappers. 2010-11-18 11:09:48 +01:00
Matjaz Gregoric
2fe29e52a9 Work around a RuntimeMXBean bug.
RuntimeMXBean.getInputArguments is buggy when an input argument contains spaces.
For an input argument of "-Dmyprop=hello world" it returns two arguments, split at the
space: "-Dmyprop=hello" and "world".

This causes eval-in-project to fail in spectacular ways when leiningen.original.pwd
contains spaces or when path to the clojure jar that gets passed to -Xbootclasspath
contains spaces (which it does by default on Windows XP).
2010-11-18 11:09:44 +01:00
Phil Hagelberg
f41c5af1ac Fix jar task for projects with no dependencies. Fixes #123. 2010-11-13 11:03:01 -08:00
Phil Hagelberg
e75c6d32b1 Better unquote testing. 2010-11-11 21:37:09 -08:00
Phil Hagelberg
1777267207 Test fixes. 2010-11-09 13:08:51 -08:00
Phil Hagelberg
d88165ae9c Deprecate unused eval-in-project arguments. 2010-11-03 21:18:37 -07:00
Colin Jones
4af798d959 Allow :dev-dependencies without :dependencies. 2010-10-31 13:41:28 -04:00
Phil Hagelberg
73cc0b5094 Add delete-non-project-classes to compile task. 2010-10-30 13:15:51 -07:00
Phil Hagelberg
063baba0aa Add run task plus rudimentary tests. 2010-10-28 21:12:24 -07:00
Colin Jones
07072396b4 Add one more subtask-help test. 2010-10-26 23:45:19 -05:00