Skip to content

Commit

Permalink
Remove **/*.java filter on added "sources as resources"
Browse files Browse the repository at this point in the history
This better aligns with source:jar-no-fork behavior, and gwt:devmode
and gwt:codeserver behavior, and gwt:compile in gwt-app projects, that
directly put the source roots in the classpath (i.e. without filter).
  • Loading branch information
tbroyer committed Sep 27, 2015
1 parent 0ad58d8 commit a15aa99
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;

import java.util.Collections;
import java.util.List;

public abstract class AbstractSourcesAsResourcesMojo extends AbstractMojo {
private static final List<String> JAVA_SOURCES = Collections.singletonList("**/*.java");

@Parameter(defaultValue = "${project}", required = true, readonly = true)
protected MavenProject project;
Expand All @@ -36,7 +34,6 @@ protected boolean checkResource(String sourceRoot) {
protected Resource createResource(String resourceDirectory) {
Resource resource = new Resource();
resource.setDirectory(resourceDirectory);
resource.setIncludes(JAVA_SOURCES);
return resource;
}

Expand Down

0 comments on commit a15aa99

Please sign in to comment.