Skip to content

Commit

Permalink
Added directory creation stubs to appengine-new.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcv committed Jul 8, 2010
1 parent 7cb7023 commit 1de6cb3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
12 changes: 0 additions & 12 deletions src/appengine_magic/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,3 @@
;;; syntax for keyword arguments.
(defmacro stop [{:keys [server] :or {server '*server*}}]
`(stop* @~server))


;;; TODO: Implement this. Leiningen plugin?
(defn compile-to-servlet [appengine-app servlet-class-name])


;;; TODO: Implement this. Leiningen plugin?
(defn deploy [])


;;; TODO: Implement this. Leiningen plugin?
(defn rollback [])
22 changes: 18 additions & 4 deletions src/leiningen/appengine_new.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
(ns leiningen.appengine-new
"Create the skeleton of a Google App Engine application.")
"Create the skeleton of a Google App Engine application."
(:import java.io.File))


(defn appengine-new [project]
(println "making new project")
;; TODO: Fill this in.
)
(let [resources-dir (File. (:resources-path project))
war-dir (File. resources-dir "war")
WEB-INF-dir (File. war-dir "WEB-INF")]
(println "making new App Engine project")
;; set up the required paths
(when-not (.exists resources-dir)
(.mkdir resources-dir)
(println "created resources directory" (.getPath resources-dir)))
(when-not (.exists war-dir)
(.mkdir war-dir)
(println "created war directory" (.getPath war-dir)))
(when-not (.exists WEB-INF-dir)
(.mkdir WEB-INF-dir)
(println "created WEB-INF directory" (.getPath WEB-INF-dir)))
;; add required configuration files
))

0 comments on commit 1de6cb3

Please sign in to comment.