File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/groovy/com/marklogic/gradle/task Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,14 @@ class NewProjectTask extends MarkLogicTask {
7878 } else {
7979 appConfig. setNoRestServer(true )
8080 }
81- new ScaffoldGenerator (). generateScaffold(new File ( " . " ). getAbsolutePath(), appConfig)
81+ new ScaffoldGenerator (). generateScaffold(getProject() . getProjectDir( ). getAbsolutePath(), appConfig)
8282 }
8383 }
8484
8585 void makeDirectory (String path ) {
86- println " Making directory: " + path
87- new File (path). mkdirs()
86+ File f = new File (getProject(). getProjectDir(), path);
87+ f. mkdirs()
88+ println " Making directory: " + f. getAbsolutePath()
8889 }
8990
9091 void writeFile (String filename , String text ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class GenerateScaffoldTask extends MarkLogicTask {
1010 void generateScaffold () {
1111 ScaffoldGenerator g = new ScaffoldGenerator ()
1212 def propName = " scaffoldPath"
13- def path = project. hasProperty(propName) ? project. property(propName) : new File ( " . " ). getAbsolutePath()
13+ def path = project. hasProperty(propName) ? project. property(propName) : getProject() . getProjectDir( ). getAbsolutePath()
1414 println " Generating scaffold for path: " + path
1515 g. generateScaffold(path, getAppConfig())
1616 }
You can’t perform that action at this time.
0 commit comments