Skip to content

Commit

Permalink
Make sure extra source roots are used in gwt:devmode and gwt:codeserver
Browse files Browse the repository at this point in the history
Such extra source roots aren't uncommon when using annotation processing,
or any other code generator.

Because the lifecycle is forked by those goals, they have to use the
forked "execution projects" rather than ones from the "initial" reactor.

Fixes #27
  • Loading branch information
tbroyer committed Jul 9, 2015
1 parent 6c9ccea commit 0068d0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/net/ltgt/gwt/maven/AbstractDevModeMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {

LinkedHashSet<String> sources = new LinkedHashSet<>();
for (MavenProject p : projectList) {
if (p.getExecutionProject() != null) {
p = p.getExecutionProject();
}
addSources(p, sources);
}

Expand Down

0 comments on commit 0068d0c

Please sign in to comment.