mirror of https://github.com/apache/maven.git
o the required field was not being written out correctly. now it is and an exception is thrown when a required parameter is null.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163174 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f4113bb5b
commit
4072630050
|
@ -256,7 +256,7 @@ public abstract class AbstractGenerator
|
|||
|
||||
pd.setType( parameter.getNamedParameter( "type" ) );
|
||||
|
||||
pd.setRequired( Boolean.getBoolean( parameter.getNamedParameter( "required" ) ) );
|
||||
pd.setRequired( parameter.getNamedParameter( "required" ).equals( "true" ) ? true : false );
|
||||
|
||||
pd.setValidator( parameter.getNamedParameter( "validator" ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue