Use file.separator in pom path relativization.

Fixes #944 I think.
This commit is contained in:
Phil Hagelberg 2013-03-28 12:39:13 -07:00
parent f8f568bf96
commit 952076e822
2 changed files with 2 additions and 1 deletions

View file

@ -189,6 +189,7 @@ export JVM_OPTS="${JVM_OPTS:-"$JAVA_OPTS"}"
# you need to remove the self-install and upgrade functionality or see lein-pkg.
if [ "$1" = "self-install" ]; then
if [ -r "$BIN_DIR/../src/leiningen/version.clj" ]; then
echo "Running self-install from a checkout is not supported."
echo "See CONTRIBUTING.md for SNAPSHOT-specific build instructions."
exit 1
elif [ -r "$LEIN_JAR" ]; then

View file

@ -7,7 +7,7 @@
[clojure.data.xml :as xml]))
(defn- relativize [project]
(let [root (str (:root project) "/")]
(let [root (str (:root project) (System/getProperty "file.separator"))]
(reduce #(update-in %1 [%2]
(fn [xs]
(if (seq? xs)