Skip to content

Commit

Permalink
Create missing resource directories when intializing a project. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Aug 15, 2017
1 parent e034b16 commit 81e7bbe
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
Expand Up @@ -77,3 +77,5 @@ renameFile(new File(binSources, 'run-app.bat'), binSources.absolutePath + '/' +
renameFile(file, artifactSourcesPath.absolutePath + '/' + props.project_capitalized_name + file.name)
}
}

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -86,3 +86,5 @@ File fxml = new File(projectDir, "griffon-app/resources/app.fxml")
File fxmlPath = new File(projectDir, "griffon-app/resources/$packagePath")
fxmlPath.mkdirs()
renameFile(fxml, fxmlPath.absolutePath + '/' + props.project_property_name + '.fxml')

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -78,3 +78,5 @@ File fxml = new File(projectDir, "griffon-app/resources/app.fxml")
File fxmlPath = new File(projectDir, "griffon-app/resources/$packagePath")
fxmlPath.mkdirs()
renameFile(fxml, fxmlPath.absolutePath + '/' + props.project_property_name + '.fxml')

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -69,3 +69,5 @@ renameFile(new File(binSources, 'run-app.bat'), binSources.absolutePath + '/' +
renameFile(file, artifactSourcesPath.absolutePath + '/' + props.project_capitalized_name + file.name)
}
}

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -72,3 +72,5 @@ renameFile(new File(binSources, 'run-app.bat'), binSources.absolutePath + '/' +
renameFile(file, artifactSourcesPath.absolutePath + '/' + props.project_capitalized_name + file.name)
}
}

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -70,3 +70,5 @@ renameFile(new File(binSources, 'run-app.bat'), binSources.absolutePath + '/' +
renameFile(file, artifactSourcesPath.absolutePath + '/' + props.project_capitalized_name + file.name)
}
}

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -73,3 +73,5 @@ renameFile(new File(binSources, 'run-app.bat'), binSources.absolutePath + '/' +
renameFile(file, artifactSourcesPath.absolutePath + '/' + props.project_capitalized_name + file.name)
}
}

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -70,3 +70,5 @@ renameFile(new File(binSources, 'run-app.bat'), binSources.absolutePath + '/' +
renameFile(file, artifactSourcesPath.absolutePath + '/' + props.project_capitalized_name + file.name)
}
}

new File(projectDir, 'src/main/resources').mkdirs()
Expand Up @@ -73,3 +73,5 @@ renameFile(new File(binSources, 'run-app.bat'), binSources.absolutePath + '/' +
renameFile(file, artifactSourcesPath.absolutePath + '/' + props.project_capitalized_name + file.name)
}
}

new File(projectDir, 'src/main/resources').mkdirs()

0 comments on commit 81e7bbe

Please sign in to comment.