*
* @param project the project.
* @return the default parameter values.
*/
private List<ParameterValue> getDefaultParametersValues(AbstractProject project) {
ParametersDefinitionProperty paramDefProp =
(ParametersDefinitionProperty)project.getProperty(ParametersDefinitionProperty.class);
List<ParameterValue> defValues = new ArrayList<ParameterValue>();
/*
* This check is made ONLY if someone calls this method even if isParametrized() is false.
*/
if (paramDefProp == null) {
return defValues;
}
/* Scan for all parameters with an associated default value */
for (ParameterDefinition paramDefinition : paramDefProp.getParameterDefinitions()) {
ParameterValue defaultValue = paramDefinition.getDefaultParameterValue();
if (defaultValue != null) {
defValues.add(defaultValue);
}