Skip to content

doInit() function does not factor in environment specific settings #30

@softwarepsychology

Description

@softwarepsychology

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[])
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions