Skip to content

Commit b6a4774

Browse files
committed
yamcs#955 Fix bug when sources reside in path with space symbol
1 parent ad74599 commit b6a4774

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>org.yamcs</groupId>
55
<artifactId>yamcs-maven-plugin</artifactId>
6-
<version>1.3.3</version>
6+
<version>1.3.4-SNAPSHOT</version>
77
<packaging>maven-plugin</packaging>
88

99
<name>Yamcs Maven Plugin</name>

src/main/java/org/yamcs/maven/ProtocMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private void buildUnixPlugin(Path javaFile, List<File> jarFiles, File targetFile
454454
.map(j -> "\"" + j.getAbsolutePath() + "\"")
455455
.collect(Collectors.joining(":")));
456456
out.println();
457-
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp $CP " + javaFile);
457+
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp $CP \"" + javaFile + "\"");
458458
} catch (IOException e) {
459459
throw new MojoInitializationException("Could not write plugin script file: " + targetFile, e);
460460
}
@@ -472,7 +472,7 @@ private void buildWindowsPlugin(Path javaFile, List<File> jarFiles, File targetF
472472
.map(j -> "\"" + j.getAbsolutePath() + "\"")
473473
.collect(Collectors.joining(";")));
474474
out.println();
475-
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp %CP% " + javaFile);
475+
out.println("\"" + javaLocation.getAbsolutePath() + "\" -cp %CP% \"" + javaFile + "\"");
476476
} catch (IOException e) {
477477
throw new MojoInitializationException("Could not write plugin script file: " + targetFile, e);
478478
}

0 commit comments

Comments
 (0)