Skip to content

Commit

Permalink
Merge pull request #11 from maffoo/master
Browse files Browse the repository at this point in the history
added classDirectory to classpath for gwtCompile command
  • Loading branch information
cdietze committed Feb 28, 2012
2 parents 92a1d6b + 0736c04 commit 1d73fa8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/scala/GwtPlugin.scala
Expand Up @@ -77,10 +77,13 @@ object GwtPlugin extends Plugin {
}
},

gwtCompile <<= (dependencyClasspath in Gwt, thisProject in Gwt, state in Gwt, javaSource in Compile, javaOptions in Gwt,
gwtCompile <<= (classDirectory in Compile, dependencyClasspath in Gwt, thisProject in Gwt, state in Gwt, javaSource in Compile, javaOptions in Gwt,
gwtModules, gwtTemporaryPath, streams) map {
(dependencyClasspath, thisProject, pstate, javaSource, javaOpts, gwtModules, warPath, s) => {
val cp = (dependencyClasspath.map(_.data.absolutePath) :+ javaSource.absolutePath) ++ getDepSources(thisProject.dependencies, pstate)
(classDirectory, dependencyClasspath, thisProject, pstate, javaSource, javaOpts, gwtModules, warPath, s) => {
val cp = Seq(classDirectory.absolutePath) ++
dependencyClasspath.map(_.data.absolutePath) ++
Seq(javaSource.absolutePath) ++
getDepSources(thisProject.dependencies, pstate)
val command = mkGwtCommand(
cp, javaOpts, "com.google.gwt.dev.Compiler", warPath, Nil, gwtModules.mkString(" "))
s.log.info("Compiling GWT modules: " + gwtModules.mkString(","))
Expand Down

0 comments on commit 1d73fa8

Please sign in to comment.