mirror of https://github.com/apache/maven.git
o use the new separated interpolator
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@726237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c94cdd6d88
commit
ca09b406af
|
@ -71,8 +71,8 @@ import org.apache.maven.project.MavenProjectBuilder;
|
||||||
import org.apache.maven.project.ProjectBuildingException;
|
import org.apache.maven.project.ProjectBuildingException;
|
||||||
import org.apache.maven.project.artifact.InvalidDependencyVersionException;
|
import org.apache.maven.project.artifact.InvalidDependencyVersionException;
|
||||||
import org.apache.maven.project.artifact.MavenMetadataSource;
|
import org.apache.maven.project.artifact.MavenMetadataSource;
|
||||||
|
import org.apache.maven.project.builder.Interpolator;
|
||||||
import org.apache.maven.project.builder.PomInterpolatorTag;
|
import org.apache.maven.project.builder.PomInterpolatorTag;
|
||||||
import org.apache.maven.project.builder.ProjectBuilder;
|
|
||||||
import org.apache.maven.project.path.PathTranslator;
|
import org.apache.maven.project.path.PathTranslator;
|
||||||
import org.apache.maven.realm.MavenRealmManager;
|
import org.apache.maven.realm.MavenRealmManager;
|
||||||
import org.apache.maven.realm.RealmManagementException;
|
import org.apache.maven.realm.RealmManagementException;
|
||||||
|
@ -568,7 +568,7 @@ public class DefaultPluginManager
|
||||||
interpolatorProperties.addAll( InterpolatorProperty.toInterpolatorProperties( session.getProjectBuilderConfiguration().getUserProperties(),
|
interpolatorProperties.addAll( InterpolatorProperty.toInterpolatorProperties( session.getProjectBuilderConfiguration().getUserProperties(),
|
||||||
PomInterpolatorTag.USER_PROPERTIES.name()));
|
PomInterpolatorTag.USER_PROPERTIES.name()));
|
||||||
String interpolatedDom =
|
String interpolatedDom =
|
||||||
ProjectBuilder.Interpolator.interpolateXmlString( String.valueOf( dom ), interpolatorProperties );
|
Interpolator.interpolateXmlString( String.valueOf( dom ), interpolatorProperties );
|
||||||
dom = Xpp3DomBuilder.build( new StringReader( interpolatedDom ) );
|
dom = Xpp3DomBuilder.build( new StringReader( interpolatedDom ) );
|
||||||
}
|
}
|
||||||
catch ( XmlPullParserException e )
|
catch ( XmlPullParserException e )
|
||||||
|
|
Loading…
Reference in New Issue