Commit graph

2657 commits

Author SHA1 Message Date
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
Anthony Grimes
1579af9264 Rethink :only-deploy-master and generalize it for a set of branches. 2013-02-14 11:31:12 -08:00
Anthony Grimes
d340cb0de5 Add an :only-install-snapshots option that prevents lein install of non-snapshots. 2013-02-14 11:05:29 -08:00
Anthony Grimes
0d4fd58b14 Add :only-deploy-master option to prevent deploys from non-master branches. 2013-02-13 17:31:43 -08:00
Anthony Grimes
cd87788400 Add never-deploy-snapshots option. 2013-02-13 16:27:01 -08:00
Michael Klishin
62ae78236e Merge pull request #1002 from cldwalker/upgrade-bultitude
upgrade to bultitude 0.2.1 to stop relying on bultitude private fn
2013-02-12 18:08:44 -08:00
Gabriel Horner
07527a4c3d upgrade to bultitude 0.2.1 to stop relying on bultitude private fns
use new ns-form-for-file instead
2013-02-12 20:08:22 -05:00
Phil Hagelberg
9960b16a18 Re-enable :skip-aot. 2013-02-12 09:54:26 -08:00
Phil Hagelberg
af7d5aaffd Improve boot time by limiting tiered compilation. 2013-02-12 09:54:25 -08:00
Michael Klishin
561e6535ee Merge pull request #1001 from cldwalker/test-doc-tweak
add doc for #1000, mention :all for tests
2013-02-11 21:43:16 -08:00
Gabriel Horner
d11089c77b add doc for #1000, mention :all for tests 2013-02-12 00:33:59 -05:00
Phil Hagelberg
176bab653a Merge pull request #1000 from cldwalker/test-command-takes-files
Test command takes file arguments
2013-02-11 20:39:11 -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