Commit graph

2672 commits

Author SHA1 Message Date
Phil Hagelberg
ecf6ca40c8 Stop tiered compilation at 1 in project JVM.
Fixes #1025.

We're doing this for Leiningen itself already, but I was hesitant to
do it for the project JVM as well until the stack trace bug came up.
2013-02-21 20:58:53 -08:00
Phil Hagelberg
9317add4bd Merge pull request #1026 from bruceadams/master
minor fix to search: "group (aliased as g)"
2013-02-21 20:55:40 -08:00
Phil Hagelberg
976b564a83 Merge pull request #1027 from cldwalker/add-resources
add resources dir to default new template, close #1016
2013-02-21 20:55:05 -08:00
Gabriel Horner
3c8b95d5b6 add resources dir to default new template, close #1016 2013-02-21 22:07:41 -05:00
Bruce Adams
c77c7aff1e minor fix to search: "group (aliased as g)" 2013-02-21 21:26:05 -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
Michael Klishin
28ade1c060 Merge pull request #1024 from hugoduncan/feature/task-not-found-to-stderr
Output task not found messages to *err*
2013-02-21 13:10:18 -08:00
Michael Klishin
fbf9401328 Merge pull request #1023 from sergv/typo-fixes
Fix some typos
2013-02-21 13:09:44 -08:00
Hugo Duncan
8472e347fd Output task not found messages to *err*
Throws an ex-info rather than calling abort to avoid the "Leiningen has
encountered a critical error and will now exit." message.

Adds a check for a :suppress-msg key before printing the exception message in
leiningen.core.main/main.
2013-02-21 16:01:25 -05:00
Phil Hagelberg
1e49148267 Merge pull request #1022 from tobias/dynapath-update
Force usage of newer dynapath until pomegranate updates.
2013-02-21 12:07:04 -08:00
Toby Crawley
5fd5592711 Force usage of newer dynapath until pomegranate updates.
This fixes the issue causing the build failures. The root of it is
that dynapath was allowing pomegranate to modify the boot classloader,
which caused multiple copies of the same class to be loaded.
2013-02-21 15:04:26 -05: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
Sergey Vinokurov
efc580dd79 Fix some typos 2013-02-21 22:03:56 +02:00
Phil Hagelberg
5ff555db12 Tweak tutorial. 2013-02-21 10:38:21 -08:00
Phil Hagelberg
972bf935cc Fix FAQ formatting; link to "Faster" wiki page.
Note that the two spaces after each Q line are intentional; otherwise
we don't get proper line breaks.

[ci skip]
2013-02-21 10:18:54 -08:00
Jean Niklas L'orange
ea90df22c9 Merge pull request #1020 from cldwalker/fix-new-tests
fix tests broken by change in error format
2013-02-19 06:12:49 -08:00
Gabriel Horner
2a9b50de5b fix tests broken by change in error format 2013-02-19 08:12:13 -05:00
Michael Klishin
d1019dbb47 Merge pull request #1019 from hugoduncan/feature/log-classpath
Log classpath files at debug in get-classpath
2013-02-18 15:45:52 -08:00
Hugo Duncan
1a7b9d11e7 Log classpath files at debug in get-classpath
Logging the classpath facilitates diagnosis of classpath issues.
2013-02-18 17:21:15 -05:00
Michael Klishin
9449d3cbbe Merge pull request #1018 from hugoduncan/feature/fix-test-exit-code-for-eval-in-leiningen
Fix lein test exit code when :eval-in :leiningen
2013-02-18 13:56:09 -08:00
Hugo Duncan
37611bfb24 Fix lein test exit code when :eval-in :leiningen
Lein test was always exiting with 0 when :eval-in :leiningen was used.
2013-02-18 16:43:44 -05:00
Michael Klishin
c2e45482c1 Merge pull request #1006 from cldwalker/document-global-options
document global options in help task, close #1005
2013-02-18 01:46:13 -08:00
Michael Klishin
bfeae36fb8 Merge pull request #1014 from deduktion/patch-2
Update src/leiningen/with_profile.clj
2013-02-18 01:44:23 -08:00
deduktion
ddf6c322c5 Update src/leiningen/with_profile.clj
Replace `main` ns with `log` where forgotten.
2013-02-18 10:22:40 +01:00
Jean Niklas L'orange
2ab0f9df5f Add in old fns to avoid breakage in plugins.
Also tag them as deprecated. (Since I was a bit too eager on this one,
feel free to revert to before the merge if the changes aren't worth it.)
2013-02-18 00:44:40 +01: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
Jean Niklas L'orange
dff5865b2e Merge branch 'master' of https://github.com/benjaminsavoy/leiningen
Conflicts:
	leiningen-core/src/leiningen/core/project.clj
2013-02-17 23:17:57 +01:00
Jean Niklas L'orange
cd3f5c0c5e Merge pull request #1012 from daemianmack/patch-1
Fix typos.
2013-02-17 04:01:31 -08:00
Daemian Mack
6de6b8c817 Fix typos. 2013-02-17 06:45:45 -05:00
Jean Niklas L'orange
15f8192b44 Merge pull request #986 from hugoduncan/feature/add-repo-warn-suppression
Add LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS
2013-02-17 03:43:35 -08:00
Benjamin Savoy
4f05a44a0e Logging warnings to stderr and editing for consistency 2013-02-17 11:10:41 +01:00
Hugo Duncan
fb1e73cd3b Add test cases for warn-user-repos and fix
Refactored warn-user-repos to take an argument to enable testing.

The tests are different depending on whether
LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS is set or not.  This is not ideal, but
there doesn't seem to be a good way of altering the environment variables in
clojure.
2013-02-16 22:29:12 -05:00
Hugo Duncan
7807740f8b Add LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS
Can be used to suppress warnings about repositories in user level profiles.  Also
adds the list of profiles containing :repositories when not suppressed.
2013-02-16 22:29:12 -05:00
Gabriel Horner
ca9da99e5b remove abort in new task which was for lein1 compatability 2013-02-15 16:15:56 -08: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
Anthony Grimes
139b87c599 Make :only work with namespaces too. 2013-02-15 16:10:19 -08:00
Anthony Grimes
e55d98a993 Add examples of new keys to sample.project.clj. 2013-02-15 15:30:07 -08:00
Anthony Grimes
feae1157fd Merge branch 'master' of github.com:technomancy/leiningen 2013-02-15 15:24:49 -08:00
Anthony Grimes
f11d7d2234 Make sure metadata is propagated. 2013-02-15 15:23:59 -08:00
Anthony Grimes
7b41504de0 Rewrite only-install-snapshots as install-releases? 2013-02-15 15:09:56 -08:00
Colin Jones
9183315bbb Add a comment about the need for with-local-vars
[ci skip]
2013-02-15 16:38:20 -06:00
Anthony Grimes
4080c1e62f Add a simple alias mechanism for :repositories and :deploy-repositories. 2013-02-15 14:29:32 -08:00
Colin Jones
700e5e84c6 Move back to using a var, since nREPL needs it
refs #955
2013-02-15 16:24:04 -06:00
Colin Jones
dc887efc03 Bump reply version
refs #957
2013-02-15 14:57:00 -06:00
Jean Niklas L'orange
2107a25439 Gracefully handle javac errors. Fixes #994.
When javac runs, it will run in a subprocess. If that subprocess fails,
the entire command should fail. However eval-in command throws an error
as the subprocess returns an exit code not equal to zero. The result is
that we end up with a messy stacktrace even if the javac command
explains why we failed.

This patch handles this by catching an eventual exception, but only if
it's generated by the subprocess. If the subprocess does crash, call
main/exit with the exit code we were given.
2013-02-15 07:18:10 +01:00
Gabriel Horner
4fe565dc50 document global options in help task, close #1005 2013-02-15 00:08:46 -05:00