mirror of
https://github.com/apache/maven.git
synced 2025-02-23 19:05:45 +00:00
Resolving: MNG-1164...added the ability to use a null key in addArg...(), and used this to avoid passing in the key -additionalparam.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
02c020ad64
commit
02eba11c6f
@ -769,8 +769,7 @@ protected void executeReport( Locale locale )
|
||||
addArgIf( arguments, quiet, "-quiet", 1.4f );
|
||||
addArgIfNotEmpty( arguments, "-source", quotedArgument( source ), 1.4f );
|
||||
addArgIf( arguments, verbose, "-verbose" );
|
||||
addArgIfNotEmpty( arguments, "-additionalparam", quotedArgument( additionalparam ) );
|
||||
|
||||
addArgIfNotEmpty( arguments, null, quotedArgument( additionalparam ) );
|
||||
addArgIfNotEmpty( arguments, "-sourcePath", quotedPathArgument( sourcePath.toString() ) );
|
||||
|
||||
// javadoc arguments for default doclet
|
||||
@ -980,7 +979,10 @@ private void addArgIfNotEmpty( List arguments, String key, String value, boolean
|
||||
{
|
||||
if ( !StringUtils.isEmpty( value ) )
|
||||
{
|
||||
arguments.add( key );
|
||||
if ( !StringUtils.isEmpty( key ) )
|
||||
{
|
||||
arguments.add( key );
|
||||
}
|
||||
|
||||
StringTokenizer token = new StringTokenizer( value, "," );
|
||||
while ( token.hasMoreTokens() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user