-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added directory creation stubs to appengine-new.
- Loading branch information
Showing
2 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
)) |