Permalink
Browse files

plugin src's added to compileGwtClasses

  • Loading branch information...
1 parent 9c94fa4 commit fc94d272585709c341ed201e8d1c402fb44dd418 @johnrellis johnrellis committed May 22, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 scripts/_Events.groovy
View
@@ -85,7 +85,16 @@ void compileGwtClasses(forceCompile = false) {
// http://code.google.com/p/google-gin/issues/detail?id=36
//
ant.mkdir(dir: gwtClassesDir)
- gwtJavac(srcdir: "src/gwt", destDir: gwtClassesDir, includes: "**/*.java") {
+ gwtJavac( destDir: gwtClassesDir, includes: "**/*.java") {
+ src(path: 'src/gwt')
+ //include any sources from any included plugins
+ buildConfig?.gwt?.plugins?.each {pluginName ->
+ def pluginDir = binding.variables["${pluginName}PluginDir"]
+ if (pluginDir) {
+ src(path: "${pluginDir}/src/gwt")
+ src(path: "${pluginDir}/src/java")
+ }
+ }
ant.classpath {
gwtResolvedDependencies.each { File f ->

0 comments on commit fc94d27

Please sign in to comment.