Skip to content

Commit

Permalink
fixed vertx_classpath.txt and runMod
Browse files Browse the repository at this point in the history
the classpath file was missing build/{classes,resources}/main. runMod
was lacking a 'classes' dependency. Fixed the deprecation warning for
the vertx runmod command call.
  • Loading branch information
Thomas Renoth committed Aug 25, 2014
1 parent 226953f commit 970be14
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gradle/vertx.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ task collectDeps(type: Copy) {
}
}

task runMod(description: 'Run the module', dependsOn: collectDeps) << {
task runMod(description: 'Run the module', dependsOn: [collectDeps, classes]) << {
setSysProps()
// We also init here - this means for single module builds the user doesn't have to explicitly init -
// they can just do runMod
doInit()
args = ['runmod', moduleName]
def args = ['runmod', moduleName]
def args2 = runModArgs.split("\\s+")
args.addAll(args2)
Starter.main(args as String[])
Expand All @@ -187,7 +187,9 @@ def doInit() {
"bin\r\n" +
"out/production/${project.name}\r\n" +
"out/test/${project.name}\r\n" +
"build/deps\r\n";
"build/deps\r\n" +
"build/classes/main\r\n" +
"build/resources/main\r\n";
cpFile << defaultCp;
}
def args = ['create-module-link', moduleName]
Expand Down

0 comments on commit 970be14

Please sign in to comment.