mirror of https://github.com/apache/maven.git
make sure paths are processed after plugin configuration is merged
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
10b55add40
commit
49552c8688
|
@ -459,13 +459,9 @@ public class DefaultPluginManager
|
|||
public Map createParameters( MojoDescriptor goal, MavenSession session )
|
||||
throws PluginConfigurationException
|
||||
{
|
||||
Map map = null;
|
||||
|
||||
List parameters = goal.getParameters();
|
||||
|
||||
if ( parameters != null )
|
||||
{
|
||||
map = new HashMap();
|
||||
Map map = new HashMap();
|
||||
|
||||
for ( int i = 0; i < parameters.size(); i++ )
|
||||
{
|
||||
|
@ -487,14 +483,6 @@ public class DefaultPluginManager
|
|||
}
|
||||
}
|
||||
|
||||
String type = parameter.getType();
|
||||
|
||||
if ( type != null && ( type.equals( "File" ) || type.equals( "java.io.File" ) ) )
|
||||
{
|
||||
value = pathTranslator.alignToBaseDirectory( (String) value,
|
||||
session.getProject().getFile().getParentFile() );
|
||||
}
|
||||
|
||||
map.put( key, value );
|
||||
}
|
||||
|
||||
|
@ -502,7 +490,6 @@ public class DefaultPluginManager
|
|||
{
|
||||
map = mergeProjectDefinedPluginConfiguration( session.getProject(), goal.getId(), map );
|
||||
}
|
||||
}
|
||||
|
||||
for ( int i = 0; i < parameters.size(); i++ )
|
||||
{
|
||||
|
@ -525,6 +512,15 @@ public class DefaultPluginManager
|
|||
{
|
||||
throw new PluginConfigurationException( createPluginParameterRequiredMessage( goal, parameter ) );
|
||||
}
|
||||
|
||||
String type = parameter.getType();
|
||||
|
||||
if ( type != null && ( type.equals( "File" ) || type.equals( "java.io.File" ) ) )
|
||||
{
|
||||
value = pathTranslator.alignToBaseDirectory( (String) value,
|
||||
session.getProject().getFile().getParentFile() );
|
||||
map.put( key, value );
|
||||
}
|
||||
}
|
||||
|
||||
return map;
|
||||
|
|
Loading…
Reference in New Issue