Marko Topolnik
fa95200da0
Don't explicitly check user profile in repl task
...
it should have already been merged
2013-04-10 14:54:29 +02:00
Marko Topolnik
3f4e64f888
Support :ack-port config option
2013-04-05 12:21:51 +02:00
Marko Topolnik
4280f2bb1f
update-in: use resolve-and-apply (honor aliases)
2013-04-03 16:32:22 +02:00
Marko Topolnik
cd906e6bf0
update-in: vary meta project :without-profiles
2013-04-03 15:06:38 +02:00
Marko Topolnik
d2fccebb04
Formatting in test code
2013-03-29 14:09:21 +01:00
Marko Topolnik
de673e44d4
Test options-for-reply
2013-03-29 14:05:37 +01:00
Marko Topolnik
dfac3ce369
Tests for repl
2013-03-27 16:52:58 +01:00
Jean Niklas L'orange
dba0815138
Add guard rails for lein new
newline handling.
2013-03-26 03:05:11 +01:00
Colin Jones
8bf417a0d0
Make slurp-resource 2.0.0-compatible again
...
closes #1102
2013-03-25 17:31:17 -05:00
Phil Hagelberg
4a5032f111
Reorganize most of repl.clj.
2013-03-24 15:40:08 -07:00
Phil Hagelberg
9043e3b5c7
Fix repl test.
2013-03-24 14:19:33 -07:00
Joshua P. Tilles
437e63daab
Adjust compile task to make use of regex fns
...
Also update documentation.
2013-03-19 16:12:08 -07:00
Phil Hagelberg
ededa95c2d
Merge remote-tracking branch 'marcliberatore/natives-update-java-library-path'
2013-03-19 14:25:48 -07:00
Marc Liberatore
d9e943e519
fix error in test introduced in 43581e2
2013-03-19 16:07:06 -04:00
Phil Hagelberg
4f4e66e01b
Tag tests which require network access.
2013-03-19 10:24:56 -07:00
Phil Hagelberg
b8a6a090fe
Remove outdated link to GitHub downloads page.
2013-03-19 10:24:56 -07:00
Tim McCormack
d14f5149f1
#949 Allow specification of artifact signing key.
...
Add :signing {:gpg-key "..."} option to project maps (global value)
and to :deploy-repositories maps (per-repo value). Does not yet work
in :repositories specs.
Also:
* Document per-repo :sign-releases option
* Delete unused defn deploy/signature-for
2013-03-19 10:24:56 -07:00
Phil Hagelberg
0e132292b7
Merge remote-tracking branch 'hyPiRion/read-nonblocking'
...
Conflicts:
src/leiningen/deploy.clj
2013-03-17 08:05:11 -07:00
Jean Niklas L'orange
e42e44911d
Add expected :input-stream in repl test.
2013-03-16 23:47:31 +01:00
Phil Hagelberg
41df82ba5c
Fix repl test.
2013-03-14 21:15:26 -07:00
Colin Jones
50dd466255
Specify :root in repl test so the stub works
2013-03-14 10:47:28 -05:00
Michael Klishin
1e32278061
Add tests for #1017
2013-02-23 23:09:51 +04:00
Gabriel Horner
3c8b95d5b6
add resources dir to default new template, close #1016
2013-02-21 22:07:41 -05:00
Phil Hagelberg
52ae933cfa
Fix tests to no longer look for shouty output prefix.
2013-02-21 13:35:21 -08:00
Phil Hagelberg
3b3573b47b
Revert "Logging warnings to stderr and editing for consistency"
...
This reverts commit 4f05a44a0e
.
Conflicts:
leiningen-core/src/leiningen/core/project.clj
src/leiningen/deploy.clj
src/leiningen/test.clj
src/leiningen/with_profile.clj
2013-02-21 13:29:48 -08:00
Phil Hagelberg
cc4045b932
Merge remote-tracking branch 'hugoduncan/feature/fix-recursive-alias-993'
...
Conflicts:
leiningen-core/test/leiningen/core/test/project.clj
2013-02-21 12:04:19 -08:00
Gabriel Horner
2a9b50de5b
fix tests broken by change in error format
2013-02-19 08:12:13 -05:00
Jean Niklas L'orange
6aed6d377f
Resolve failing test introduced by *warn*.
...
Also move abort-msg up to leiningen core and call it from the leiningen
test helpers package instead.
2013-02-18 00:07:53 +01:00
Jean Niklas L'orange
55dd6b3fd4
Replace main
ns with log
where forgotten.
2013-02-17 23:39:40 +01:00
Gabriel Horner
c395092d8f
new task generates in current directory by default, close #989
2013-02-15 16:15:56 -08:00
Gabriel Horner
95eeba2f1a
add new task tests for other templates, fail case and :show
2013-02-15 16:15:55 -08:00
Gabriel Horner
0e025421d6
documenting and testing --to-dir option for new task
2013-02-15 16:15:55 -08:00
Gabriel Horner
efb62f7f84
remove failing report test that is no longer valid
...
removed at dfb951f430
2013-02-11 22:30:20 -05:00
Gabriel Horner
5cc3aa874b
allow lein test
to take file args
...
closes #996
2013-02-11 22:16:22 -05:00
Gabriel Horner
2e349c61e3
test for test command aborting on invalid namespace
...
move abort-msg to helper and ensure it only catches main/abort
2013-02-11 22:16:22 -05:00
Gabriel Horner
d5ec46e871
add missing tests for common test command invocations
2013-02-11 22:16:22 -05:00
Hugo Duncan
c418aee68b
Allow building of jars with classifiers
...
Adds a :classifiers project key that takes a map from classifier keyword to
profile map.
:classifiers {:tests {:source-paths ^:replace ["test"]
:resource-paths ^:replace []}}
2013-02-10 22:14:52 -08:00
Phil Hagelberg
6d7a77d547
Update tests to remove :custom-init.
2013-02-10 21:52:08 -08:00
Marko Topolnik
4c5185f33a
Remove obsoleted tests
2013-02-10 21:45:13 -08:00
Marko Topolnik
2d120ac925
Adapt repl tests
2013-02-10 21:45:12 -08:00
Hugo Duncan
551479fc5a
Fix stack overflow on with-profile self-aliases
...
An alias such as {"doc" ["with-profile" "+doc" "doc"]} was leading to a stack
overflow when executed.
This was due to the project being reload when with-profile calls set-profiles,
thus re-instating the aliases that have been removed by remove-alias.
2013-02-08 22:56:42 -05:00
Gabriel Horner
f477ffa7da
add tests for helpful renderer msgs, handle no args case
2013-01-30 06:31:14 -05:00
Tim McCormack
45a5901d69
Remove some unnecessary regular expressions from the templates util ns.
...
Also:
* Add tests for string-munging fns
* Correct doc for name-to-path
2013-01-18 22:09:17 -05:00
Phil Hagelberg
54806fa5bc
Fix newnew test
2013-01-10 16:45:09 -08:00
Phil Hagelberg
96adcdccc5
Fix tests re: central snapshots.
2013-01-10 11:40:15 -08:00
Ryan Senior
f4c2b97bc6
changed leiningen/test to allow the call into the clojure.test report to
...
pass through the hook to the original multimethod
2013-01-10 11:07:01 -06:00
Jean Niklas L'orange
6280b73da0
Enforce nREPL dependencies in :repl profile. Fixes #893 .
...
Enforces a nREPL dependency and a clojure-complete dependency for the :repl
profile. Previously, the first found :repl profile from
`project.clj`-`profiles.clj`-default was returned and merged into the real
profile. Now all :repl profiles that are found are merged into the active
profile.
The dependencies are tagged with the ^:displace tag, and as such will be
discarded if a collision occurs.
The changes made `repl-profile-in-project` fail as it did not contain
`leiningen.core.project/empty-dependencies`, which has a :reduce tag in its
metadata for handling dependency merging. The dependency merger expands the
version to its url, hence the change to a url map.
Also removed a TODO from the file, fixed by 27fe39d
.
2012-12-28 04:56:27 +01:00
Phil Hagelberg
f92f677eb7
Disable a test that requires Java 7.
2012-12-26 10:12:03 -08:00
Phil Hagelberg
b4cc0f9dba
Rename :post-preview selector to :disabled.
2012-12-26 10:07:51 -08:00
Balint Erdi
e7295dcb8a
Update tests to the new way of defining replacing repositories
2012-12-04 15:58:56 +01:00
Marshall T. Vandegrift
24ca286d54
Test :provided profile interpretation by the uberjar task.
2012-11-17 17:38:11 -05:00
Phil Hagelberg
624bf2ae88
Move AOT of :main into uberjar task. Remove :skip-aot.
2012-11-12 15:30:43 -08:00
Anthony Grimes
43a5af1356
Add a test for :only selector.
2012-10-20 18:03:16 -05:00
Justin Balthrop
9f37f53c5e
move dependency and repository merging into meta-merge
...
This is accomplished with the :reduce metadata, which specifies the
reduce function to use when merging. This allows us to merge
dependencies and repositories deeply like other structures. Note that
dependencies are transformed into a map before they are merged and then
transformed back into a vector.
Also change the way that collections are merged. They used to be merged
by taking the right collection and prepending it to the left collection.
This behavior was needed for :*-paths in defproject, but it is not an
obvious default. Now, the default is to append the right collection, but
the :prepend metadata can be used to tell meta-merge to prepend instead.
By default, :source-paths, :resource-paths and :test-paths have :prepend
set to true.
2012-10-08 18:27:40 -07:00
Tobias Crawley
6998dd6929
Support subtask specific help via 'lein help task subtask'
...
The help task will first look for static help under
'leiningen/help/task-subtask', then for a function name 'help-subtask' in the
subtask's namespace, then a docstring on the subtask function. For the latter
two options, the arglists are also printed.
2012-10-05 14:37:58 -04:00
Phil Hagelberg
929b09c1ba
Allow repl profile to be overridden from project.clj. Fixes #789 .
2012-10-04 10:22:22 -07:00
Phil Hagelberg
b5dc41a682
Fix repl tests.
2012-10-04 09:26:14 -07:00
Jim Crossley
e770d5e649
Include namespace metadata in test-selector predicates, fixes #242
...
More specific metadata wins, e.g. deftest trumps its namespace.
Also tweaked the tests a bit so that actual/expected results are now
shown in the output.
2012-10-02 19:38:35 -04:00
Nelson Morris
d254dae544
Reduce output for dependency resolution
...
Showing every failed repo lookup is bad for users.
They see the failure and get confused.
Hook up a custom listener that has the following behavior:
1. success -> print out artifact name, size, and repository name
2. failure -> ignore unless it is the last repo, then print out failure
message with artifact name.
Fixes #610 .
2012-09-05 14:59:53 -05:00
Phil Hagelberg
5400be18a2
Fix pom and deploy tests.
2012-08-30 10:12:58 -07:00
Phil Hagelberg
22b427aca1
Fix some of the tests.
2012-08-29 19:50:53 -07:00
Phil Hagelberg
b4cc744efd
Merge remote branch 'llasram/provided-profile'
2012-08-23 14:49:32 -07:00
Justin Balthrop
09e5f60684
remove unnecessary is inside of are expression
2012-08-23 13:17:20 -07:00
Marshall T. Vandegrift
f416ad9481
Implement Maven "provided" scope with :provided profile.
2012-08-23 14:33:42 -04:00
Phil Hagelberg
e25c9940dd
Fix bugs in pom and repl tests.
2012-08-13 15:01:29 -07:00
Phil Hagelberg
ec0187d8e7
Use updated search index format and location. Lots of TODOs still.
2012-08-09 00:48:32 -07:00
Phil Hagelberg
e7dadcd7b9
Remove commented-out shell wrapper remainders.
2012-08-01 09:42:20 -07:00
Arlen Cuss
710849c3f5
Unmark :post-preview compile tests.
2012-07-06 23:20:47 +10:00
Arlen Cuss
e39397cbc5
Fix existing :post-preview tests for cleanup.
2012-07-06 23:13:57 +10:00
Phil Hagelberg
82d812eccb
Fix pom tests to reflect sample project change.
2012-06-26 20:26:37 -07:00
Phil Hagelberg
b6f90ac49e
Fix test for lein-newnew.
2012-06-24 22:06:07 -07:00
Phil Hagelberg
b7c6a63fd5
Qualify implicit ::test profile. Fixes #659 for real, hopefully.
2012-06-22 13:19:46 -07:00
Phil Hagelberg
2f2bd69b4d
Fix tests for bootclasspath.
2012-06-14 16:26:22 -07:00
Phil Hagelberg
1be0c5edb9
Move task chaining to do task. Fixes #632 .
2012-06-09 21:48:23 -07:00
Phil Hagelberg
3b7fda6b5f
Work around bug in ordered maps.
...
https://github.com/flatland/ordered/issues/4
2012-05-30 20:56:09 -07:00
Phil Hagelberg
34eb0a5d22
Use https for clojars.
2012-05-28 13:46:14 -07:00
Nelson Morris
e2d2e681f8
Output correct groupId tag for exclusions in pom. Fixes #593
2012-05-26 00:14:30 -05:00
Nelson Morris
a047f6fa23
Enable pom tests
2012-05-26 00:14:25 -05:00
Phil Hagelberg
6ed63b0254
Remove support for :run-aliases.
2012-05-24 18:27:19 -07:00
Phil Hagelberg
27346f0f62
Fix install test.
2012-05-09 11:05:17 -07:00
Phil Hagelberg
08c1ce6973
Fix deps test to clean whole target dir.
2012-05-07 16:58:33 -07:00
Phil Hagelberg
2a6a4e4d00
Fix search test.
2012-05-07 11:37:41 -07:00
Phil Hagelberg
1561aa5233
Merge pull request #547 from hugoduncan/feature/decouple-init-project
...
Decouple init-project from l.c.project/read
2012-04-29 17:18:59 -07:00
Anthony Grimes
f9c093a35d
Fix a test.
...
Apparently this test was 'fixed' before for broken code in lein newnew.
Pretty great, I'd say.
2012-04-29 19:12:21 -05:00
Hugo Duncan
ccd3f58465
Decouple init-project from l.c.project/read
...
Reading a project should be side affect free. init-project modifies the current
classloader (and possible installs a new context classloader), so should not be
part of leiningen.core.project/read.
2012-04-29 09:07:51 -04:00
Michael S. Klishin
fcf63f39c5
Translate most common javac options in Leiningen 1 format into the one used by Leiningen 2
...
We intentionally don't try to support every single Lein 1 option because there is no way
to do everything Ant javac task can do with JDK's javac API. And it's also not necessary
because many of those features are very opinionated at best.
2012-04-28 03:14:46 +04:00
Phil Hagelberg
c842c41723
Fix deps test.
2012-04-25 14:49:29 -07:00
Phil Hagelberg
5f5c0cdbab
Fix native-path and repl test failures.
2012-04-18 21:51:50 -07:00
Colin Jones
b48eec97c4
Handle starting in a different ns
...
Allow either :init-ns and :main. Add tests for reply option
conversions.
refs #432
2012-04-11 09:47:43 -05:00
Phil Hagelberg
eb745d06b0
Prevent user profiles from affecting pom tests.
2012-04-10 16:06:52 -07:00
Phil Hagelberg
9c1a6f5b47
Switch pom tests back to not having clojure-complete.
2012-04-10 15:57:17 -07:00
Phil Hagelberg
30c0fdbafd
Fix tests for new pomegranate and newnew versions.
2012-04-10 13:31:38 -07:00
Nelson Morris
2d71d28904
Pom output handles dev dependencies that overlap standard deps
...
Fixes #500
2012-04-05 13:48:30 -05:00
Nelson Morris
3076100706
Handle global exclusions in all dependency cases. Fixes #498
...
Also remove global exclusion handling in pom generation, otherwise
it would generate 2 exclusion tags.
2012-04-04 19:02:54 -05:00
Nelson Morris
9d046a83b7
Handle exclusion vector better for pom generation
...
treat [name name2] the same as [[name] [name2]].
2012-04-03 20:53:16 -05:00
Phil Hagelberg
7f5e2b1a94
Support :fn in :filespecs for arbitrary additions to jar.
2012-04-03 11:36:13 -07:00
Phil Hagelberg
bc91b8d731
Fix deps :tree test.
2012-04-02 11:50:46 -07:00
Phil Hagelberg
0babb90b05
Translate nonzero exit codes into exceptions. Fixes #493 .
2012-04-02 11:12:36 -07:00
Phil Hagelberg
404d37f499
Temporarily disable test that relies on exit codes.
...
Once #493 is implemented, we can re-enable this test.
2012-04-02 10:32:20 -07:00
Nelson Morris
bbb2e37cfe
Poms generate dependency options. Fixes #483
...
Helps with #457
2012-03-30 13:13:41 -05:00
Nelson Morris
cdc3ad14f4
Pom adds dev and test dependencies scoped
2012-03-30 13:13:41 -05:00
Nelson Morris
b4770d03c0
Pom generation profile handling; Add java-source-paths
...
1) add java-source-paths; #474 .
2) make some good tests
3) remove :test :dev and :default profiles for maven info
4) use :test, :dev, :default profiles for test info
2012-03-30 13:13:41 -05:00
Nelson Morris
d633fad0b6
Let deps :tree print a dependency tree
2012-03-22 22:27:16 -05:00
Phil Hagelberg
556f4b87e6
Switch from :busted test tagging to :post-preview.
2012-03-16 12:14:01 -07:00
Phil Hagelberg
37483b487b
Add :offline test selector.
2012-03-16 11:57:35 -07:00
Phil Hagelberg
32c1a21b6a
Don't use abort as a side-effect.
2012-03-16 11:57:34 -07:00
Nelson Morris
557cdde580
Pretty-print pom.xml. Fixes #429 .
2012-03-14 07:41:39 -05:00
Michael S. Klishin
c7b92d1b78
One more test case for the lein new task, includes artifact group in project name
2012-03-12 08:11:40 +04:00
Anthony Grimes
82df67b959
Add a failing test for overlapped sourcepaths.
2012-03-06 15:58:14 -06:00
Phil Hagelberg
532496a1ab
Merge branch '1.x'
...
Conflicts:
.gitignore
README.md
bin/lein
project.clj
src/leiningen/compile.clj
src/leiningen/core.clj
src/leiningen/help.clj
src/leiningen/jar.clj
src/leiningen/repl.clj
test/leiningen/test/deps.clj
test/leiningen/test/help.clj
todo.org
2012-03-04 21:22:20 -08:00
Phil Hagelberg
71874208f3
Move normalization out of defproject into top-level comp.
2012-03-01 11:17:40 -08:00
Nelson Morris
a102f1fd26
Set classifier in pom. Fixes #349
2012-02-22 22:56:27 -06:00
Chas Emerick
140e99c8e6
tweak test so that we *actually* fix gh-413.
2012-02-21 14:53:36 -05:00
Phil Hagelberg
7d8dca635d
Use ordered maps for :dependencies and :repositories. Fixes #400 .
2012-02-19 22:10:09 -08:00
Phil Hagelberg
59fe078991
Fix compilation test for numeric eval-in-project return values.
2012-02-13 21:11:11 -08:00
Phil Hagelberg
f08c484a8c
Fix compile tests.
2012-02-08 23:38:35 -08:00
Phil Hagelberg
c11a3a83c0
Absolutize paths in :without-profiles project map as well.
2012-02-08 00:18:31 -08:00
Phil Hagelberg
e07a6fe108
Remove dummy leiningen.core namespace.
2012-02-07 18:15:12 -08:00
Nelson Morris
09483ed64d
Update pomegranate; all repo/dependency options should work
2012-02-01 21:20:20 -06:00
Nelson Morris
1c5babe984
Fix jar task with jar-inclusions
2012-02-01 06:39:10 -06:00
Nelson Morris
8baf33ec80
Update deploy task
2012-01-22 22:41:47 -06:00
Nelson Morris
7ff1e2ed43
Update install task
2012-01-22 22:41:47 -06:00
Nelson Morris
39892e19fa
Update uberjar for new api
2012-01-22 22:41:47 -06:00
Nelson Morris
ef2b0f0b9b
Copy pom.xml generation from depot
...
Take some code from depot
Take the git scm code from lein 1.x
Update sample.project.clj with multiple source/test directories and extensions
Creates a similiar pom for sample.project.clj as lein 1.x
Use build-helper-maven-plugin for multiple source directories
2012-01-22 22:41:47 -06:00
Phil Hagelberg
d4e86d2a81
Derp; duplicate set key.
2012-01-17 20:33:34 -08:00
Phil Hagelberg
b43cdea3a8
Fix "lein new" tests to not care about order on disk.
2012-01-17 20:29:54 -08:00
Phil Hagelberg
92dfe67a85
Re-enable ci for master branch.
2012-01-17 20:08:19 -08:00
Phil Hagelberg
e50ee1ba4e
Fix tests for main in leiningen-core.
2012-01-17 20:08:06 -08:00
Phil Hagelberg
d8190b1cb7
Move -main to leiningen.core.main.
2012-01-15 20:20:02 -08:00
Phil Hagelberg
1fee69f7b3
Update bootstrapping instructions, remove old lein.util.* references.
2012-01-12 18:05:00 -08:00
Phil Hagelberg
03e462cdec
Re-enable tests targeted for preview.
2012-01-10 23:26:50 -08:00
Phil Hagelberg
64c381c001
Remove deprecated util namespaces (except ns; still needs work).
2012-01-10 23:25:08 -08:00
Phil Hagelberg
a749666bb7
Fix help task.
...
One namespaces-matching call still hasn't been switched over to leiningen.core.
2012-01-10 22:44:02 -08:00
Phil Hagelberg
6530927bcb
Fix "lein compile :all".
2012-01-10 22:35:36 -08:00
Phil Hagelberg
c0adabb208
Fix jar task. Punt on shell wrappers for now.
2012-01-10 22:12:57 -08:00
Phil Hagelberg
4064065bd5
Fix compile task and tests. Punt on transitive cleaning for now.
2012-01-10 22:12:37 -08:00
Phil Hagelberg
464e631bef
Remove plugin task.
2012-01-10 22:09:12 -08:00
Phil Hagelberg
c2b40834e0
OK, so relative paths in project maps was the wrong way to go.
2012-01-06 21:27:21 -08:00
Phil Hagelberg
1fe2fed158
Fix deps tests.
2012-01-06 21:27:21 -08:00
Phil Hagelberg
bfe2c32fd2
Remove dev-deps-only test project.
2012-01-06 21:27:21 -08:00
Phil Hagelberg
a6fe9e148e
Fix test task for :test-path-as-collection.
2012-01-06 21:27:21 -08:00
Phil Hagelberg
bee65686e4
Full test suite will at least compile.
...
Tests which we don't expect to pass are marked with :busted metadata.
2012-01-06 21:27:21 -08:00
Phil Hagelberg
3e23fb126b
Remove old core tests.
2012-01-06 21:27:21 -08:00
Phil Hagelberg
7a0449e6d6
Fix run tests.
2012-01-06 21:27:20 -08:00
Phil Hagelberg
07e9b4d0bc
Fixed deps task; tests are still a mess.
2011-12-03 13:11:39 -08:00
Phil Hagelberg
6540de69a4
Un-mapify :repositories before handing off to pomegranate.
2011-12-03 12:41:11 -08:00
Nelson Morris
690c7966f4
Update tests for test task.
2011-12-03 14:07:24 -06:00
Nelson Morris
5184b8017e
Update tests for compile tests
...
The classpath was changed to use absolute paths for the checkout
dependencies. They were pointing to the wrong directory since the
working directory would be the leiningen project instead of the
test project.
This adds the absolute paths for test projects back, as just
changing the classpath does not help for the other tasks.
2011-12-03 13:39:22 -06:00
Phil Hagelberg
2c4fdac5e1
Normalize :repositories values into map. This fixes search task.
2011-12-02 21:02:01 -08:00
Phil Hagelberg
85b1dc5e81
Absolutize paths inside get-classpath for now.
2011-12-02 20:48:58 -08:00
Nelson Morris
cd5cd2c0d9
Update the run task tests for 2.0
...
The test.helper needed to change the project map for the test projects
because eval-in-project uses get-classpath, which will return the
relative paths for some directories. This breaks in this case since
the working directory is not the root of the test project.
2011-12-02 21:45:47 -06:00
Phil Hagelberg
2b074c09b0
Switch run task over to using leiningen-core library.
...
Broken only because sample-project reading in test.helper is still busted.
2011-12-02 16:00:32 -08:00
Phil Hagelberg
7ff6478f5a
Try to fix reading of sample projects in leiningen.test.helper.
...
Still broken unfortunately; getting inexplicable NPE out of resolve.
2011-12-02 16:00:32 -08:00
Phil Hagelberg
fb84749484
Only show a single line of help for subtasks in task help.
2011-11-30 17:53:12 -08:00
Phil Hagelberg
4575143988
Fix test task.
2011-11-22 16:00:46 -08:00
Phil Hagelberg
75ec33f0d4
Add :offline test selector.
2011-11-13 11:20:29 -08:00
Phil Hagelberg
3b02d41e83
Merge branch '1.x'
...
Conflicts:
README.md
bin/lein
bin/lein-pkg
bin/lein.bat
doc/PLUGINS.md
pom.xml
project.clj
src/leiningen/compile.clj
src/leiningen/trampoline.clj
todo.org
2011-11-12 13:46:59 -08:00
Phil Hagelberg
7c067a5e33
Ensure explicit deps calls override :checksum-deps.
2011-11-12 06:54:09 -08:00
Matjaz Gregoric
32ebf41f23
Call System/gc before deleting files recursively.
...
Calling System/gc can help release files on windows.
It will hopefuly help with issues such as #252 and #309 .
I wasn't able to reproduce those two issues on Windows
Vista, but I have experienced a related problem when
running the leiningen test suite when some jar files
failed to be deleted. Calling System/gc resolved the
issue in that case.
2011-11-12 09:00:19 +01:00
Phil Hagelberg
d3797fe408
Look for main functions on Java classes in run task. Fixes #249 .
2011-11-10 13:42:19 -08:00
Phil Hagelberg
bc253e5bc5
Fix compile test.
2011-11-10 04:53:34 -08:00
Phil Hagelberg
ffa1b3887c
Check for file on disk before assuming :main should be AOT'd. Fixes #249 .
2011-11-09 10:06:14 -08:00
Rob Wolfe
d83920b068
installing in local repository even if redefined in settings.xml
2011-11-09 09:18:09 -08:00
Phil Hagelberg
bcb3098e8f
Make plugin help tests much less specific.
2011-11-01 11:38:18 -07:00
Matjaz Gregoric
0d6dc8f521
Work around a windows specific problem in tests.
...
On Windows, delete-file-recursively sometimes fails
to delete certain jar files, which results in cascading
test failures.
An explicit call to System/gc seems to solve the problem
on Windows Vista.
2011-10-31 08:49:21 +01:00
Phil Hagelberg
d6dfa89b1f
Remove workaround for joda.
...
[ci skip]
2011-10-19 17:14:35 -07:00
Phil Hagelberg
bd6e487706
Apparently joda-time 1.6 is no longer resolving from central!
2011-10-19 16:57:36 -07:00
Phil Hagelberg
a97363c505
Don't error out when cleaning up after snapshot deps test.
2011-10-19 16:39:02 -07:00
Phil Hagelberg
d309b4b057
Propagate failure return values a bit better in install/jar.
2011-10-19 15:58:32 -07:00
Phil Hagelberg
2ffa002924
Clean up some test directory references.
2011-10-19 15:20:30 -07:00
Stephen Compall
8179e7bdd8
Test that load works after compiling with :clean-non-project-classes true.
2011-10-19 14:32:57 -07:00
Chas Emerick
bd6959c3a3
Add support for :deploy-repositories slot for deployment-only repositories; closes gh-273
2011-09-15 21:29:18 -04:00
Colin Jones
9d7c8b52b0
Support ordering repositories, fixes #268
2011-09-01 22:22:05 -05:00
Colin Jones
ad39cec761
Add a test around disabling maven central
2011-09-01 22:20:29 -05:00
Rob Wolfe
805c1faebd
installing in local repository even if redefined in settings.xml
2011-08-20 23:01:48 +02:00
Phil Hagelberg
3b47bfccf1
Fix native-deps test.
2011-08-16 16:42:35 -04:00
Phil Hagelberg
0e299f0a17
Honor :jar-exclusions in copy-to-jar :bytes method.
2011-08-07 14:46:03 -07:00
Phil Hagelberg
53141eab86
Run eval-in-project using clojure.java.shell. Fixes #239 .
2011-07-25 13:37:07 -07:00
Phil Hagelberg
69bdaa3a71
Separate JVM_OPTS and LEIN_JVM_OPTS. Fixes #233 .
2011-07-24 21:05:44 -07:00
Phil Hagelberg
32ffd7818d
Separate JVM_OPTS and LEIN_JVM_OPTS. Fixes #233 .
2011-07-24 21:04:07 -07:00
Matjaz Gregoric
70bc19d5bb
Fix typos.
2011-06-30 18:27:30 +02:00
Matjaz Gregoric
6abed15c43
Make native-deps test work on systems other than 32-bit linux.
2011-06-30 18:14:10 +02:00
Matjaz Gregoric
3867f97307
Fix an issue with leiningen's tests on Windows.
...
Deleting one of the jar files in the sample test project
was failing on Windows, which was causing all sorts of hard to debug
test errors.
Calling System/gc seems to do the trick (at least on Vista),
but it is not really a proper solution.
If anybody has a better idea, please speak up.
2011-06-30 17:06:11 +02:00
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
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