Skip to content

Commit

Permalink
use java flags instead of plain explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Dec 9, 2022
1 parent 0f97702 commit 4a62158
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -825,38 +825,38 @@ public String describe( String id )
}
if ( !StringUtils.isEmpty( getReleaseVersion() ) )
{
params.add( "release " + getReleaseVersion() );
params.add( "--release " + getReleaseVersion() );
}
else if ( !StringUtils.isEmpty( getTargetVersion() ) )
{
params.add( "target " + getTargetVersion() );
params.add( "-target " + getTargetVersion() );
}
if ( getModulepathEntries() != null && !getModulepathEntries().isEmpty() )
{
params.add( "module-path" );
params.add( "--module-path ..." );
}
if ( isDebug() )
{
if ( StringUtils.isNotEmpty( getDebugLevel() ) )
{
params.add( "debug:" + getDebugLevel() );
params.add( "-g:" + getDebugLevel() );
}
else
{
params.add( "debug" );
params.add( "-g" );
}
}
if ( isOptimize() )
{
params.add( "optimize" );
params.add( "-O" );
}
if ( isVerbose() )
{
params.add( "verbose" );
params.add( "-verbose" );
}
if ( isShowDeprecation() )
{
params.add( "deprecation" );
params.add( "-deprecation" );
}
return String.join( " ", params );
}
Expand Down

0 comments on commit 4a62158

Please sign in to comment.