Skip to content

Commit

Permalink
fix handling of LongModulePathArgument and LongClassPathArgument (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-feindt authored May 2, 2021
1 parent 61e024b commit 8bb4456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/mojo/exec/ExecMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ else if ( argument instanceof Modulepath )
Modulepath specifiedModulepath = (Modulepath) argument;
commandArguments.add( computeClasspathString( specifiedModulepath ) );
}
else if ( isLongModulePathArgument( specialArg ) || isLongClassPathArgument( specialArg ) )
else if ( (argument instanceof String) && (isLongModulePathArgument( (String) argument ) || isLongClassPathArgument( (String) argument )) )
{
specialArg = (String) argument;
}
Expand Down

0 comments on commit 8bb4456

Please sign in to comment.