Skip to content

Commit 8bb4456

Browse files
authored
fix handling of LongModulePathArgument and LongClassPathArgument (#172)
1 parent 61e024b commit 8bb4456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/codehaus/mojo/exec/ExecMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ else if ( argument instanceof Modulepath )
672672
Modulepath specifiedModulepath = (Modulepath) argument;
673673
commandArguments.add( computeClasspathString( specifiedModulepath ) );
674674
}
675-
else if ( isLongModulePathArgument( specialArg ) || isLongClassPathArgument( specialArg ) )
675+
else if ( (argument instanceof String) && (isLongModulePathArgument( (String) argument ) || isLongClassPathArgument( (String) argument )) )
676676
{
677677
specialArg = (String) argument;
678678
}

0 commit comments

Comments
 (0)