Skip to content

Commit d40d5db

Browse files
committed
#464 Using an absolute file path when generating project files
Ensures this works on Java 12
1 parent 0de250e commit d40d5db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/groovy/com/marklogic/gradle/task/NewProjectTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class NewProjectTask extends MarkLogicTask {
7878
} else {
7979
appConfig.setNoRestServer(true)
8080
}
81-
new ScaffoldGenerator().generateScaffold(".", appConfig)
81+
new ScaffoldGenerator().generateScaffold(new File(".").getAbsolutePath(), appConfig)
8282
}
8383
}
8484

src/main/groovy/com/marklogic/gradle/task/scaffold/GenerateScaffoldTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) : "."
13+
def path = project.hasProperty(propName) ? project.property(propName) : new File(".").getAbsolutePath()
1414
println "Generating scaffold for path: " + path
1515
g.generateScaffold(path, getAppConfig())
1616
}

0 commit comments

Comments
 (0)