Skip to content

Commit

Permalink
Adding ability to build external GWT modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
tHerrmann committed Sep 20, 2013
1 parent 03cb39d commit 28db2d1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ allModuleNames.split(',').each{ moduleName ->
}

if (gwtModule != null){
sourceSets.create(moduleName+'_gwt')
sourceSets[moduleName+'_gwt'].java.srcDirs=files("$srcGwtDir")
sourceSets[moduleName+'_gwt'].resources.srcDirs=files("$srcGwtDir")
task "gwt_$moduleName" (dependsOn: gwtClasses, type: JavaExec) {
ext.buildDir = project.buildDir.toString() +"/gwt/$moduleName"
ext.extraDir = project.buildDir.toString() + "/extra/$moduleName"
Expand Down Expand Up @@ -349,9 +352,13 @@ allModuleNames.split(',').each{ moduleName ->
sourceSets.gwt.java.srcDirs, // Java source
sourceSets.gwt.output.resourcesDir, // Generated resources
sourceSets.gwt.output.classesDir, // Generated classes
sourceSets.gwt.compileClasspath, // Deps
sourceSets.gwt.compileClasspath, // Deps
sourceSets[moduleName+'_gwt'].java.srcDirs,
sourceSets[moduleName+'_gwt'].output.resourcesDir,
sourceSets[moduleName+'_gwt'].output.classesDir
]
}


args =
[
Expand Down

0 comments on commit 28db2d1

Please sign in to comment.