File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/java/org/apache/maven/plugins/jlink Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ private String getJLinkExecutable() {
114
114
getLog ().error ("Either JDK9+ or a toolchain "
115
115
+ "pointing to a JDK9+ containing a jlink binary is required." );
116
116
getLog ().info ("See https://maven.apache.org/guides/mini/guide-using-toolchains.html "
117
- + "for more information." );
117
+ + "for mor information." );
118
118
throw new IllegalStateException ("Running on JDK8 and no toolchain found." );
119
119
}
120
120
@@ -162,7 +162,9 @@ private int executeCommand(Commandline cmd) throws MojoExecutionException {
162
162
163
163
if (exitCode != 0 ) {
164
164
165
- if (output != null ) {
165
+ if (output != null && !output .isEmpty ()) {
166
+ // Reconsider to use WARN / ERROR ?
167
+ // getLog().error( output );
166
168
for (String outputLine : output .split ("\n " )) {
167
169
getLog ().error (outputLine );
168
170
}
@@ -179,7 +181,8 @@ private int executeCommand(Commandline cmd) throws MojoExecutionException {
179
181
throw new MojoExecutionException (msg .toString ());
180
182
}
181
183
182
- if (output != null ) {
184
+ if (output != null && !output .isEmpty ()) {
185
+ // getLog().info( output );
183
186
for (String outputLine : output .split ("\n " )) {
184
187
getLog ().info (outputLine );
185
188
}
You can’t perform that action at this time.
0 commit comments