vert-x/vertx-gradle-template

doInit() function does not factor in environment specific settings

Opened this issue · 0 comments

doInit() should factor in environment specific settings in order to create vertx_classpath.txt.

Suggestion: Change doInit() function to something along these lines....

def doInit() {
File cpFile = new File("$projectDir/vertx_classpath.txt")
if (!cpFile.exists()) {
cpFile.createNewFile();
//modified for intellij build outputs
String resourcesPaths = "";
sourceSets.main.getResources().getSrcDirs().each {
resourcesPaths += "${it.path}\r\n"
}
String defaultCp =
resourcesPaths+
"bin\r\n" +
sourceSets.main.output.classesDir+"\r\n" +
sourceSets.test.output.classesDir+"\r\n" +
"build/deps\r\n";
cpFile << defaultCp;
}
def args = ['create-module-link', moduleName]
Starter.main(args as String[])
}