Michael S. Klishin
3675690ade
Print which field we are searching over
2012-09-22 04:37:47 +04:00
Michael S. Klishin
9c4c5c780c
Allow searching over fields other than artifact id, fixes #243
...
Examples:
# searches over artifact id (the default field)
$ lein search clojure
$ lein search "Riak client"
# search for artifacts in a specific group
$ lein search group:clojurewerkz
$ lein search g:clojurewerkz
# search over description
$ lein search d:clojurewerkz
$ lein search description:clojurewerkz
2012-09-22 04:25:18 +04:00
Michael S. Klishin
e06bd2e66c
Ignore all .lein\* files
2012-09-22 03:29:05 +04:00
Michael S. Klishin
14ccb65e3e
Display a message before we update the search index
...
Otherwise it looks as if `lein search` has locked up for minutes or is in
an infinite loop.
2012-09-22 03:26:27 +04:00
Phil Hagelberg
80fa726879
Merge pull request #790 from technomancy/per_project_repl_history
...
Add default REPL history file locations, per-project and globally
2012-09-18 17:01:05 -07:00
Michael S. Klishin
51936c03d4
Add default REPL history file locations, per-project and globally
...
When lein repl is launched in a directory with project.clj ("in project"), the
location is ./.lein-repl-history.
When lein repl is running in a directory without project.clj ("globally"), the
location is ~/.lein/repl-history.
Fixes #751
2012-09-19 03:57:44 +04:00
Phil Hagelberg
2c2f13283b
Merge pull request #786 from technomancy/global-offline-flag
...
If LEIN_OFFLINE env var is set, assume offline mode by default
2012-09-18 16:18:46 -07:00
Michael S. Klishin
dc9fd48376
Make LEIN_OFFLINE take precedence over what's in project.clj
...
Per discussion with @technomancy
2012-09-19 03:16:18 +04:00
Colin Jones
51b4bade31
Bump clojure-complete dependency
2012-09-18 08:33:34 -05:00
Michael S. Klishin
387e624838
If LEIN_OFFLINE env var is set, assume offline mode by default. References #678 .
2012-09-18 13:00:29 +04:00
Phil Hagelberg
975e3eb494
Honor :standalone in :repl-options.
2012-09-17 21:38:19 -07:00
Michael Klishin
317122eb24
Merge pull request #784 from dchelimsky/fix-typo
...
fix typo in lein script
2012-09-14 10:49:16 -07:00
Michael Klishin
67726053e5
Merge pull request #783 from StevenBorrelli/patch-1
...
Fix typos in lein script for download_failed_message
2012-09-14 10:48:59 -07:00
StevenBorrelli
9690f8de65
Fix typos in lein script for download_failed_message
...
Change downoad_failed_message to download_failed_message
Add endquote to error message for curl HTTP_CLIENT.
2012-09-14 12:46:13 -05:00
David Chelimsky
88e9ddfe34
fix typo in lein script
2012-09-14 12:45:50 -05:00
Michael Klishin
d8fb3f2857
Merge pull request #782 from basicsensei/leakyenv
...
move setlocal first to prevent leaking LEIN_VERSION to parent shell in win7/xp
2012-09-13 01:00:31 -07:00
basicsensei
a1bc1f56cc
move setlocal first to prevent leaking it to parent shell in win7/xp
...
However on win7 though (but not on winxp) all set variables inside
script will be leaked if the script fails within another setlocal ie.
set JAVA_CMD="ja"va"
lein
set
Will show LEIN_HOME, LEIN_JAR and ORIGINAL_PWD remained set.
The following .bat will prove the point:
@echo on
setLocal EnableExtensions EnableDelayedExpansion
set xxx="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
rem comment the following line to prevent xxx to leak into parent shell:
setlocal
rem the below will make script fail(just type "set" to see it leaked):
if x == '
echo not reached!
2012-09-13 09:48:29 +02:00
Michael Klishin
89141459fb
Merge pull request #781 from basicsensei/fix774
...
use LEIN_JAVA_CMD in lein.bat just as in the bash script
2012-09-12 22:32:39 -07:00
basicsensei
3b5feb5393
use LEIN_JAVA_CMD in lein.bat just as in the bash script
...
just as @technomancy said in #774
if LEIN_JAVA_CMD is not set it will fall back to JAVA_CMD which in turn
if it's not set it will fall back to just "java" (without dbl.quotes)
2012-09-13 02:48:26 +02:00
Phil Hagelberg
1d022be8a0
Merge pull request #779 from davie/master
...
pass local-repo to install
2012-09-12 09:13:23 -07:00
davie moston
9233e13121
pass local-repo to install
2012-09-11 22:52:56 +01:00
Phil Hagelberg
72e6908778
Add a warning under project-specific tasks.
2012-09-11 10:43:28 -07:00
Phil Hagelberg
a1d4a0fb79
Don't use fast trampolines outside a project. Fixes #777 .
2012-09-11 10:30:16 -07:00
Phil Hagelberg
742b89f691
Improve error message when javac is missing. Fixes #774 .
2012-09-11 10:19:04 -07:00
Phil Hagelberg
67e8019382
Mention the Gitorious mirroring and Travis tests.
...
Also warn about using the master branch without a checkout.
[ci skip]
2012-09-11 09:50:16 -07:00
Michael Klishin
1dacc0dd57
Merge pull request #778 from basicsensei/fix774
...
fix for when JAVA_CMD is set to path containing double quotes
2012-09-11 07:14:46 -07:00
basicsensei
1ac8eac0cc
fix for when JAVA_CMD is set to path containing double quotes
...
addresses #774
script will still fail if it contains characters like >, <, |, & or even
parentheses or an even number of double quotes
ie. this will work:
set JAVA_CMD="c:\program"" f""iles\java\jdk1."7.0_0"5\bin\java.exe"
lein javac
2012-09-11 15:47:22 +02:00
Justin Balthrop
d702a234f5
fix truncated doc string for set-profiles
2012-09-10 12:15:47 -07:00
Phil Hagelberg
fead243aac
Print message from with-profile exceptions. Fixes #764 .
2012-09-10 08:21:41 -07:00
Phil Hagelberg
edfa52753e
Wait no, that Postel's law invocation doesn't make sense.
2012-09-10 08:20:22 -07:00
Justin Balthrop
1077aa4fd7
Merge branch 'drip'
2012-09-07 17:43:06 -07:00
Phil Hagelberg
6b2412ad35
Merge pull request #771 from charleslparker/master
...
Clarifying project-specific plugins in doc
2012-09-07 11:02:29 -07:00
Charles Parker
11e6864e1b
Plugin -> Task
2012-09-07 10:56:33 -07:00
Charles Parker
cee3d972e3
Little addition to plugins doc
2012-09-07 09:53:01 -07:00
Phil Hagelberg
5d37b41fbe
Postel's law, I guess?
2012-09-06 10:26:04 -07:00
Phil Hagelberg
d786791b15
Merge pull request #767 from bruceadams/master
...
Include user profile repos for search outside project, issue #762
2012-09-06 10:26:07 -07: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
d371e4d914
Merge pull request #766 from deduktion/patch-1
...
Update leiningen-core/src/leiningen/core/project.clj
2012-09-04 10:12:58 -07:00
deduktion
e9386b7362
Update leiningen-core/src/leiningen/core/project.clj
...
use concat instead of merge to merge values, :plugin-repositories and :repositories are lists again
with merge you will end up with a value for :repositories like [[repo {:url url}] ([pluginrepo {:url url}])]
instead of [[repo {:url url}] [pluginrepo {:url url}]]
2012-09-04 19:58:03 +03:00
Bruce Adams
0042fdc2f5
Include user profile repos for search outside project, issue #762
2012-09-02 08:10:42 -04:00
Phil Hagelberg
bfc52edece
Merge pull request #763 from bruceadams/master
...
Use project/defaults for lein search, if needed. Issue #762
2012-09-01 16:17:50 -07:00
Bruce Adams
50cbdf9090
Use project/defaults for lein search, if needed. Issue #762
2012-09-01 18:18:59 -04:00
Justin Balthrop
35a01e64c8
work with drip-stable, et al
2012-08-31 16:17:49 -07:00
Phil Hagelberg
26572bc2bd
Merge pull request #760 from zerokarmaleft/master
...
REPL plugin should clean up after itself
2012-08-31 11:51:12 -07:00
Edward Cho
639c636c2a
REPL task cleans up repl-port file on shutdown
2012-08-31 10:20:49 -05:00
Phil Hagelberg
5400be18a2
Fix pom and deploy tests.
2012-08-30 10:12:58 -07:00
Phil Hagelberg
10edee1d6f
Fix bug where normalize-repos wasn't honoring mapization of entries.
2012-08-30 09:59:03 -07:00
Phil Hagelberg
8c68621ce8
Only apply workaround to Windows bug when not trampolining.
...
Fixes #674 .
2012-08-30 09:14:38 -07:00
Phil Hagelberg
6cb0170e69
Merge pull request #759 from hugoduncan/feature/allow-gpg-executable-configuration
...
Allow override of gpg executable using LEIN_GPG
2012-08-30 07:13:31 -07:00
Hugo Duncan
0457aabdb2
Allow override of gpg executable using LEIN_GPG
...
On some platforms, eg. Mac, it may be more desirable to use an executable other
than 'gpg' for signing and encryption, and it may not be possible to symlink to
'gpg'. This allows the gpg executable used in lein to be specified via LEIN_GPG.
You can use ~/.lein/leinrc or ~/.leinrc to set LEIN_GPG by adding
'export LEIN_GPG=your-gpg' to either of those files.
2012-08-30 09:36:09 -04:00