Skip to content

Commit 551b790

Browse files
committed
fix(cli): Patch generated Windows shell script for JAVACMD installs with spaces
Workaround for mojohaus/appassembler#114 which seems to be unmaintained and stuck upstream. Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
1 parent f99a590 commit 551b790

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

cli/pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,34 @@ Copyright (c) 2012 - Jeremy Long. All Rights Reserved.
9696
<executions>
9797
<execution>
9898
<id>assemble</id>
99+
<phase>package</phase>
99100
<goals>
100101
<goal>assemble</goal>
101102
</goals>
102103
</execution>
103104
</executions>
104105
</plugin>
106+
<plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-antrun-plugin</artifactId>
109+
<executions>
110+
<execution>
111+
<id>fix-windows-shell-script</id>
112+
<phase>package</phase>
113+
<goals>
114+
<goal>run</goal>
115+
</goals>
116+
<configuration>
117+
<!-- Hack/workaround for https://github.com/mojohaus/appassembler/issues/114 -->
118+
<target>
119+
<replace file="${project.build.directory}/release/bin/dependency-check.bat"
120+
token="%JAVACMD% %JAVA_OPTS%"
121+
value="&quot;%JAVACMD%&quot; %JAVA_OPTS%" />
122+
</target>
123+
</configuration>
124+
</execution>
125+
</executions>
126+
</plugin>
105127
<plugin>
106128
<groupId>org.apache.maven.plugins</groupId>
107129
<artifactId>maven-assembly-plugin</artifactId>

0 commit comments

Comments
 (0)