Skip to content

Commit 5dcbbed

Browse files
project creation in wrong directory fix
1 parent bd7b8f3 commit 5dcbbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/haulmont/cuba/cli/cubaplugin/project/ProjectInitCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class ProjectInitCommand : GeneratorCommand<ProjectInitModel>(), NonInteractiveI
181181
override fun createModel(answers: Answers): ProjectInitModel = ProjectInitModel(answers)
182182

183183
override fun generate(bindings: Map<String, Any>) {
184-
workingDirectoryManager.workingDirectory = Paths.get(model.projectName)
184+
workingDirectoryManager.workingDirectory = workingDirectoryManager.workingDirectory.resolve(model.projectName)
185185
val cwd = workingDirectoryManager.workingDirectory
186186

187187
Files.createDirectories(cwd)

0 commit comments

Comments
 (0)