Skip to content

Commit 2e321a6

Browse files
Martin Goldhahnhauner
authored andcommitted
Used the wrong separator in targetDir
(cherry picked from commit 8e040da)
1 parent 77ce192 commit 2e321a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/openapiprocessor/maven/ProcessMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void execute () throws MojoExecutionException {
5454
String relativeSource = stripBaseDir (source.getAbsolutePath ());
5555
getLog().info(String.format ("%10s - ${project.basedir}%s%s", "apiPath", File.pathSeparator, relativeSource));
5656

57-
String targetDir = (String) properties.computeIfAbsent (TARGET_DIR, k -> project.getBuild().getDirectory() + File.pathSeparator + "generated-sources" + File.pathSeparator + id);
57+
String targetDir = (String) properties.computeIfAbsent (TARGET_DIR, k -> project.getBuild().getDirectory() + File.separator + "generated-sources" + File.separator + id);
5858

5959
if (addSourceRoot) {
6060
project.addCompileSourceRoot(targetDir);

0 commit comments

Comments
 (0)