Skip to content

Commit 4057eb2

Browse files
authored
Merge pull request #20 from severinstrobl/filter_wsdl_location
Ignore WSDL files in output directory.
2 parents ce5fb2d + ba7e49f commit 4057eb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/de/codecentric/cxf/BootCxfMojo.java

+5
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ protected File findWsdl(File buildDirectory) throws MojoExecutionException {
190190
String[] extension = {"wsdl"};
191191
Collection<File> wsdls = FileUtils.listFiles(buildDirectory, extension, true);
192192

193+
if(mavenProject != null) {
194+
String targetDirectory = mavenProject.getBuild().getOutputDirectory().replaceAll("classes$", "");
195+
wsdls.removeIf(f -> f.getAbsolutePath().startsWith(targetDirectory));
196+
}
197+
193198
Optional<File> wsdl = wsdls.stream().findFirst();
194199

195200
if(wsdl.isPresent()) {

0 commit comments

Comments
 (0)