File tree Expand file tree Collapse file tree 1 file changed +3
-20
lines changed
native-maven-plugin/src/main/java/org/graalvm/buildtools/maven Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -243,29 +243,12 @@ protected List<String> getBuildArgs() throws MojoExecutionException {
243243
244244 if (buildArgs != null && !buildArgs .isEmpty ()) {
245245 for (String buildArg : buildArgs ) {
246- if ( buildArg . startsWith ( " \\ Q" ) ||
247- buildArg .startsWith ("-H:ConfigurationFileDirectories " )) {
246+ System . out . println ( buildArg );
247+ if ( buildArg . startsWith ( " \\ Q" ) || buildArg .startsWith ("-H" )) {
248248 cliArgs .add (buildArg );
249249 continue ;
250250 }
251- String [] args = buildArg .split ("\\ s+" );
252- int i =0 ;
253- while (i < args .length ) {
254- String a =args [i ];
255- if (a .charAt (0 ) == System .getProperty ("user.home" ).charAt (0 )) {
256- StringBuilder path = new StringBuilder (a );
257- i ++;
258- while ( i < args .length && args [i ].toLowerCase ().charAt (0 ) <= 'z' &&
259- args [i ].toLowerCase ().charAt (0 ) >= 'a' ) {
260- path .append (" " ).append (args [i ]);
261- i ++;
262- }
263- cliArgs .add (path .toString ());
264- } else {
265- cliArgs .add (a );
266- i ++;
267- }
268- }
251+ cliArgs .addAll (Arrays .asList (buildArg .split ("\\ s+" , 2 )));
269252 }
270253 }
271254
You can’t perform that action at this time.
0 commit comments