replaces '.' with '/' in package name when creating dir

This commit is contained in:
Hubert Iwaniuk 2009-12-30 23:40:43 +01:00
parent af77ef61ed
commit 711b3acfec

View file

@ -22,7 +22,8 @@ Neither group-id nor artifact-id may contain slashes."
['org.clojure/clojure-contrib
"1.0-SNAPSHOT"]])))
(let [project-ns (.replace (str project-name) "/" ".")
project-clj (str (.replace (str project-name) "-" "_") ".clj")]
project-clj (str (apply str (replace {\- \_, \. \/} project-ns))
".clj")]
(.mkdirs (file project-dir "test"))
(.mkdirs (.getParentFile (file project-dir "src" project-clj)))
(spit (file project-dir "src" project-clj)