Skip to content

Commit

Permalink
yamcs#955 Fix bug when sources reside in path with space symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
fqqb committed Oct 10, 2024
1 parent ad74599 commit b6a4774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.yamcs</groupId>
<artifactId>yamcs-maven-plugin</artifactId>
<version>1.3.3</version>
<version>1.3.4-SNAPSHOT</version>
<packaging>maven-plugin</packaging>

<name>Yamcs Maven Plugin</name>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/yamcs/maven/ProtocMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ private void buildUnixPlugin(Path javaFile, List<File> jarFiles, File targetFile
.map(j -> "\"" + j.getAbsolutePath() + "\"")
.collect(Collectors.joining(":")));
out.println();
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp $CP " + javaFile);
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp $CP \"" + javaFile + "\"");
} catch (IOException e) {
throw new MojoInitializationException("Could not write plugin script file: " + targetFile, e);
}
Expand All @@ -472,7 +472,7 @@ private void buildWindowsPlugin(Path javaFile, List<File> jarFiles, File targetF
.map(j -> "\"" + j.getAbsolutePath() + "\"")
.collect(Collectors.joining(";")));
out.println();
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp %CP% " + javaFile);
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp %CP% \"" + javaFile + "\"");
} catch (IOException e) {
throw new MojoInitializationException("Could not write plugin script file: " + targetFile, e);
}
Expand Down

0 comments on commit b6a4774

Please sign in to comment.