Commit graph

3081 commits

Author SHA1 Message Date
Richo Healey
4fc9e61fdd Fallback to the original behaviour on any error invoking git plumbing 2013-07-15 11:42:27 -07:00
Richo Healey
5dfa542f8f Always return full SHA1 hash of HEAD 2013-07-15 11:42:26 -07:00
Richo Healey
36b2d62d12 Fallback to original behaviour on IOException 2013-07-15 11:42:16 -07:00
Richo Healey
b850f7b5c1 Use git's plumbing to lookup HEAD 2013-07-01 16:45:54 +10:00
Jean Niklas L'orange
0f861c8349 Fix garbled sentence and broken formatting. 2013-06-26 13:56:16 +02:00
Jean Niklas L'orange
29d3776f28 Add FAQ entry on background procs. Closes #1173. 2013-06-26 13:53:28 +02:00
Jean Niklas L'orange
82c4f15171 Merge pull request #1231 from juergenhoetzel/fix-trampoline3
Use single quotes in shell command
2013-06-26 04:25:28 -07:00
Jean Niklas L'orange
0c6b417d9f Merge pull request #1239 from djanatyn/master
add suggestion to deploy to clojars when running `lein deploy` with no arguments
2013-06-26 04:07:58 -07:00
Jonathan Strickland
83e6febdf0 added suggestion to run lein deploy clojars after runing lein deploy 2013-06-25 21:00:48 -04:00
Jean Niklas L'orange
a2d22c1a24 Merge pull request #1234 from juergenhoetzel/fast-trampoline-keep-init-file
Keep init-file when using LEIN_FAST_TRAMPOLINE
2013-06-23 15:28:03 -07:00
Juergen Hoetzel
28fad91bfb Keep init-file when using LEIN_FAST_TRAMPOLINE 2013-06-20 22:20:42 +02:00
Michael Klishin
0ef2ac4731 Merge pull request #1232 from w01fe/faq-entry-for-long-term-performance
Update FAQ to add entry about long-term performance
2013-06-20 02:35:01 -07:00
Jason Wolfe
8eca6a1c08 Update FAQ to add entry about long-term performance 2013-06-20 00:12:35 -07:00
Phil Hagelberg
8dfacb98db Merge pull request #1230 from stuartsierra/displace-jvm-opts
Set default :jvm-opts in :base profile to :displace
2013-06-19 07:48:06 -07:00
Jean Niklas L'orange
48a19e1c05 Merge pull request #1229 from juergenhoetzel/secure-tempfiles
Secure handling of temporary trampoline file
2013-06-18 14:09:30 -07:00
Stuart Sierra
fb133fdb67 Set default :jvm-opts in :base profile to :displace
When the default behavior for `:jvm-opts` is additive, it can lead to
unexpected results if a project tries to add its own options which
conflict with the defaults. For example, the following setting:

    :jvm-opts ["-XX:-TieredCompilation"]

Results in a JVM command line like this, in which the project's JVM
options are overridden by the defaults:

    -XX:-TieredCompilation -XX:+TieredCompilation -XX:TieredStopAtLevel=1

By setting :displace metadata on the default :jvm-opts, any project
configuration of :jvm-opts will replace the defaults.
2013-06-18 14:55:08 -04:00
Juergen Hoetzel
6e5c5a1714 Secure handling of temporary trampoline file
File name is easy to predict when using PID ($$) as template.
2013-06-17 21:51:22 +02:00
Juergen Hoetzel
d5c1083de4 Use single quotes in shell command
Fixes shell evaluation issues on Cygwin (in double-quoted strings, a backslash gets evaluated)
2013-06-17 20:37:51 +02:00
Jean Niklas L'orange
9fbbcd1d85 Merge pull request #1226 from juergenhoetzel/fix-trampoline
Fix trampoline files when running subprocesses.
2013-06-16 08:45:12 -07:00
Juergen Hoetzel
43fe245b4f Delete the initfile when the subprocess exits, not when the Leiningen process exits
Fixes issues when a task is applied via trampoline:

Exception in thread "main" java.io.FileNotFoundException: /tmp/form-init2098686718977910298.clj (No such file or directory)
2013-06-16 16:05:22 +02:00
Juergen Hoetzel
0bac7b7ea0 Use (pr-str form) to write form to init-file
Ensures that the form can be read by read-string. Fixes issues when
the form is lazy, which result in invalid init files like:

clojure.lang.LazySeq@451d3cd3
2013-06-16 15:51:13 +02:00
Jean Niklas L'orange
1c43a36125 Add in todos for 3.0.0. 2013-06-15 22:14:22 +02:00
Jean Niklas L'orange
d75f9f1921 Fix docstring and cosmetics on abort message. 2013-06-15 20:45:27 +02:00
Jean Niklas L'orange
46b2e13f57 Merge pull request #1225 from juergenhoetzel/use-init-file
Double quotes are sill not handled corrected correctly, when forms are passed to subprocess on Windows
2013-06-15 11:35:04 -07:00
Juergen Hoetzel
90a74131c9 use init-file (-i) instead of form (-e) when evaluating forms in subprocess.
The form is still not passed correctly on Windows, when it has nested quotes is passed via "-e".
See: http://bugs.sun.com/view_bug.do?bug_id=6468220

Refs #1203
Refs #863
Refs #1224
2013-06-15 14:01:01 +02:00
Juergen Hoetzel
89c4bf7520 Use nested strings in test-eval-in-project, refs #1203
Test double quote issues on Windows platform: http://bugs.sun.com/view_bug.do?bug_id=6468220
2013-06-15 13:43:51 +02:00
Phil Hagelberg
36c1a9633d Merge pull request #1221 from malyn/unix-path-copy-to-jar-bytes
copy-to-jar :bytes needs to unix-path the :path
2013-06-14 12:37:38 -07:00
Phil Hagelberg
e22d0aada7 Don't need this now with read-edn. 2013-06-14 12:32:56 -07:00
Phil Hagelberg
a41c7e4bd0 Merge pull request #1223 from kanej/hostreplarg
Add :host as an option to 'lein repl :start' and 'lein repl :headless' commands
2013-06-14 12:36:42 -07:00
John Kane
e8665af01f Include host in nrepl start message.
This makes the default use of localhost for nrepl port binding
explicit, see issue #1217.
2013-06-14 08:32:57 +01:00
Phil Hagelberg
0908ca7be0 Remove mention of 1.x in readme. 2013-06-12 17:11:18 -07:00
Phil Hagelberg
12d0ec95f9 Point to the djpowell installer for Windows.
The choclatey package appears to still have some usability issues.
2013-06-12 17:08:51 -07:00
Phil Hagelberg
f92ca69c8b gpg-agent caching is time-bounded. 2013-06-12 17:05:12 -07:00
Jean Niklas L'orange
ec7775dd39 Merge pull request #1220 from malyn/normalized-template-slurping
Normalize line endings in slurp-resource
2013-06-12 08:50:35 -07:00
Michael Alyn Miller
5eb63c73b6 Normalize line endings in slurp-resource
slurp-resource previously expected the resource to use Unix-style line
endings, which it would then convert into system-specific line endings
using fix-line-separators.  The problem with that approach is that
templates built on Windows contain resources with CRLF-terminated lines
and so slurp-resource returned CRCRLF-terminated lines.

The new slurp-to-lf function behaves similarly to slurp, but it
normalizes the line endings in the resource to LF.  This ensures that
slurp-resource is able to produce the correct system-specific line
endings.
2013-06-11 21:39:40 -07:00
Michael Alyn Miller
7bd6b26bf3 copy-to-jar :bytes needs to unix-path the :path
All of the other copy-to-jar methods call unix-path on (:path spec),
thus ensuring that files added to the jar from a Windows machine end up
with Unix-style path names.  The byte array variant of copy-to-jar is
the one exception though and the result is that tools such as
lein-cljsbuild will leave Windows-style paths in jar files generated
with the "lein jar" command.
2013-06-11 20:55:09 -07:00
John Kane
6cabea9be8 Add Host as arg to "repl :start" and "repl :headless" commands.
This is a step towards easier setting up of remote nrepl
sessions, see issue #1217.
2013-06-11 00:39:10 +01:00
Phil Hagelberg
8f566613df Merge pull request #1218 from leon-barrett/line-fix
Fixed long line support in make-manifest.
2013-06-10 16:32:13 -07:00
Leon Barrett
2d5e1b04de Fixed long line support in make-manifest. 2013-06-10 16:08:00 -07:00
Phil Hagelberg
803ebaef7f Merge pull request #1213 from zachpendleton/search-documentation
add documentation on `lein search` options to tutorial.
2013-06-06 16:49:39 -07:00
Zach Pendleton
6f24bd12ac add documentation on lein search options to tutorial. 2013-06-06 16:40:12 -06:00
Phil Hagelberg
8307aa58fc Fix long line.
[ci skip]
2013-06-06 09:37:33 -07:00
Phil Hagelberg
8531b8ee8d Merge pull request #1209 from robermann/master
Suggestion on when you have to set the 'http_proxy' variable
2013-06-06 09:39:41 -07:00
Michael Klishin
93f4bb7e89 Merge pull request #1211 from Iristyle/patch-1
README - Update Windows install instructions
2013-06-06 05:48:00 -07:00
Ethan J. Brown
2a3158cbea README - Update Windows install instructions
- Use Chocolatey to install
2013-06-06 09:02:05 -03:00
Roberto Mannai
f4a0fcfa34 Suggestion on when you have to set the 'http_proxy' variable
For example, on Windows:
set http_proxy=http://user:pwd@proxyserver:port
2013-06-05 16:14:08 +03:00
Jean Niklas L'orange
e92e4a92d3 Merge pull request #1208 from robermann/patch-1
CLASSPATH space-tolerant
2013-06-05 04:43:34 -07:00
Roberto Mannai
bd20685fa4 CLASSPATH space-tolerant
The remaining path after the first space was considered as being a class name.
2013-06-05 14:09:23 +03:00
Phil Hagelberg
fa83ea7ae8 Merge pull request #1206 from fredericksgary/issue-1205
Crash on :aot [does.not.exist]; also regression test; Fixes #1205
2013-06-04 15:51:44 -07:00
Gary Fredericks
61091d44c3 Crash on :aot [does.not.exist]; also regression test; Fixes #1205
We want missing namespaces in :aot to not be silently ignored.
Implemented by removing the file-existence check from the function
that determines which namespaces need to be compiled.

This means we won't get the error if you compile an existing namespace
and subsequently delete the *.clj file. Oh well.
2013-06-04 16:39:58 -05:00