Skip to content

Commit 4a62158

Browse files
committed
use java flags instead of plain explanation
1 parent 0f97702 commit 4a62158

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -825,38 +825,38 @@ public String describe( String id )
825825
}
826826
if ( !StringUtils.isEmpty( getReleaseVersion() ) )
827827
{
828-
params.add( "release " + getReleaseVersion() );
828+
params.add( "--release " + getReleaseVersion() );
829829
}
830830
else if ( !StringUtils.isEmpty( getTargetVersion() ) )
831831
{
832-
params.add( "target " + getTargetVersion() );
832+
params.add( "-target " + getTargetVersion() );
833833
}
834834
if ( getModulepathEntries() != null && !getModulepathEntries().isEmpty() )
835835
{
836-
params.add( "module-path" );
836+
params.add( "--module-path ..." );
837837
}
838838
if ( isDebug() )
839839
{
840840
if ( StringUtils.isNotEmpty( getDebugLevel() ) )
841841
{
842-
params.add( "debug:" + getDebugLevel() );
842+
params.add( "-g:" + getDebugLevel() );
843843
}
844844
else
845845
{
846-
params.add( "debug" );
846+
params.add( "-g" );
847847
}
848848
}
849849
if ( isOptimize() )
850850
{
851-
params.add( "optimize" );
851+
params.add( "-O" );
852852
}
853853
if ( isVerbose() )
854854
{
855-
params.add( "verbose" );
855+
params.add( "-verbose" );
856856
}
857857
if ( isShowDeprecation() )
858858
{
859-
params.add( "deprecation" );
859+
params.add( "-deprecation" );
860860
}
861861
return String.join( " ", params );
862862
}

0 commit comments

Comments
 (0)