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
Colin Jones
18e69ea035
Add some tests around subtask help formatting.
2010-10-26 23:32:42 -05:00
Colin Jones
053761774b
Move plugin's subtask help mechanism to the help ns.
2010-10-26 22:36:57 -05:00
Michael D. Ivey
4be3d03c48
Merge Colin Jones' lein-plugin plugin for managing plugins
...
This is Colin's plugin.clj plus a few tests.
2010-10-25 18:09:11 -07:00
Phil Hagelberg
f732bfeebf
Support :eval-in-leiningen key in project.clj for plugins.
2010-10-24 14:28:26 -07:00
Phil Hagelberg
6b7a9f7c53
Revert privatization of internal functions.
...
We'll wait for Leiningen 2.0 to introduce breaking changes.
2010-10-03 14:03:28 -07:00
Phil Hagelberg
b13efc5cbd
Test selectors may be customized in project.clj.
2010-09-24 21:32:12 -07:00
Phil Hagelberg
f72bdff365
Primitive test selectors
2010-09-24 19:22:50 -07:00
Phil Hagelberg
23e7f2a5bb
Don't shell out in tests; that's terrible.
2010-09-21 20:17:02 -07:00
Phil Hagelberg
c1c0565cbe
Separate private/internal functions from public API.
2010-09-08 21:05:03 -07:00
Phil Hagelberg
0ebf1bd773
Replace dots with slashes in ~/.m2 path. Fixes #104 .
2010-09-05 15:11:50 -07:00
Phil Hagelberg
b17731b748
Failing test case for standalone-install bug.
2010-08-30 22:11:18 -07:00
Phil Hagelberg
dc933ebc26
Use numeric return value for compile task. Tighten up implementation.
2010-08-24 17:25:21 -07:00
Alan Dipert
1a0a69227e
compile/compile is a hairy mother, but it behaves. Added another test project
2010-08-24 02:01:39 -04:00
Alan Dipert
c5994f8aa6
Suppress compilation stacktrace when testing
2010-08-24 02:01:12 -04:00
Phil Hagelberg
da5571ef60
NEWS for 1.3.1.
2010-08-23 21:40:07 -07:00
Alan Dipert
13781500fa
Fixed compile test
2010-08-23 23:10:57 -04:00
Alan Dipert
93535c5a17
Added a build-failing project for flexing compilation-failing aware 'jar'; created test_projects and moved sample there too
2010-08-23 23:03:52 -04:00
Colin Jones
a59ca8475b
ensure project is present if required
2010-08-21 17:12:42 -05:00
Phil Hagelberg
0773058473
Move mvn-specific bits out into util namespace.
2010-08-14 14:32:14 -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
282782c9d6
Add another test for arg chaining.
2010-08-08 10:44:19 -07:00
Colin Jones
76d3d66482
multiple tasks from the command line
2010-08-01 20:58:22 -05:00
Phil Hagelberg
607c282a0a
Check for Windows in the tests. Fixes #32 .
2010-06-20 20:18:08 -07:00
Phil Hagelberg
e886afb457
Upgrade to Clojure 1.2.0-master-SNAPSHOT.
2010-04-16 21:25:59 -07:00
Phil Hagelberg
417151eb6a
Write ns->path and path->ns functions in core.
2010-04-06 21:41:23 -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
Ryan Zezeski
2c05ffc3fa
Fix test_new.
2010-03-15 21:15:06 -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
Phil Hagelberg
373c5faf9e
Tests broke; I'm dumb.
2010-02-12 12:30:16 -08:00
Hubert Iwaniuk
85f5c5e533
test for issue 8 fix
2009-12-31 10:36:14 +01:00
Phil Hagelberg
35d7165a84
Change sample project to use Clojure 1.0.0.
2009-11-29 21:33:50 -08:00
Phil Hagelberg
22c19cbc1e
Added test for install task.
2009-11-28 20:33:28 -08:00
Phil Hagelberg
12f0b98abc
Allow custom :repositories to be specified in project.clj.
...
Add build.clojure.org as a default repo.
2009-11-14 15:31:42 -08:00
Phil Hagelberg
cbf71b68a9
Add a test for the compile task.
2009-11-14 15:00:46 -08:00
Phil Hagelberg
1083c1f9e1
Move test project to sample/ dir.
2009-11-14 14:48:13 -08:00
Phil Hagelberg
acb11e3a41
Use group.id/artifact notation in project.clj.
2009-11-14 14:33:39 -08:00
Phil Hagelberg
42cdf1f622
Version is no longer optional in defproject.
2009-11-14 14:24:36 -08:00
Phil Hagelberg
d230820d8d
Remove need for fully-qualified defproject.
...
Not sure I'm 100% happy with this solution as it adds a var in clojure.core.
2009-11-09 22:18:02 -08:00
Phil Hagelberg
17caf1d752
Fix dependencies test.
2009-11-08 22:39:07 -08:00
Phil Hagelberg
79b969b425
Move away from build.clj to project.clj.
2009-11-05 20:36:27 -08:00
Phil Hagelberg
8aad65943e
Allow tests to be filtered on predicates.
2009-11-04 22:10:29 -08:00
Phil Hagelberg
6aebd55634
Fix defproject. Unfortunately build.clj needs to call it fully-qualified.
2009-11-02 22:20:29 -08:00
Phil Hagelberg
f53cc17864
Move main.clj to core.clj
2009-11-01 22:22:43 -08:00
Phil Hagelberg
f10dfac68a
Rudimentary tests.
2009-10-31 22:47:15 -07:00