MPPLUGIN-3 : Resolve project.xml inheritance when installing plugin.

The project.xml is updated with the POM with all variables resolved.
Problem : All paths are resolved. It's not really clean but these ones aren't used at runtime. Thus it's not blocking.
I can't replace the basedir to keep the compability with maven 1.0.2 (jelly taglib util:replace doesn't support String replacement) and with jdk 1.3 (String.replaceAll() doesn't exist).

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@293035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier 2005-10-01 22:28:34 +00:00
parent 905afc2ce4
commit 518f4fbddb
2 changed files with 8 additions and 0 deletions

View File

@ -222,6 +222,13 @@ Try: maven plugin:download -DgroupId=maven -DartifactId=${pluginToTest} -Dversio
<goal name="plugin:plugin" description="Build a plugin jar"> <goal name="plugin:plugin" description="Build a plugin jar">
<!-- For some reason a prereq on this causes an internal error... --> <!-- For some reason a prereq on this causes an internal error... -->
<attainGoal name="jar:jar" /> <attainGoal name="jar:jar" />
<j:file name="${maven.build.dir}/project.xml" escapeText="false" outputMode="xml">${pom.projectAsString}</j:file>
<ant:jar
jarfile="${maven.build.dir}/${maven.jar.final.name}"
basedir="${maven.build.dir}"
update="true">
<ant:setProperty name="includes" value="project.xml" />
</ant:jar>
</goal> </goal>
<goal name="plugin:install" prereqs="plugin:plugin" <goal name="plugin:install" prereqs="plugin:plugin"

View File

@ -27,6 +27,7 @@
<action dev="ltheussl" type="add" issue="MPPLUGIN-33">Allow plugin-test directory to be changed.</action> <action dev="ltheussl" type="add" issue="MPPLUGIN-33">Allow plugin-test directory to be changed.</action>
<action dev="ltheussl" type="fix" issue="MPPLUGIN-25" due-to="Jamie McCrindle, Barrie Treloar">NTLM Proxy Problem.</action> <action dev="ltheussl" type="fix" issue="MPPLUGIN-25" due-to="Jamie McCrindle, Barrie Treloar">NTLM Proxy Problem.</action>
<action dev="carlos" type="fix" issue="MPPLUGIN-26">plugin:download didn't redownload SNAPSHOT plugins.</action> <action dev="carlos" type="fix" issue="MPPLUGIN-26">plugin:download didn't redownload SNAPSHOT plugins.</action>
<action dev="aheritier" type="add" issue="MPPLUGIN-3">Resolve project.xml inheritance when installing plugin.</action>
<action dev="ltheussl" type="add">new plugin:validate-xml tag to validate xml documents against a schema.</action> <action dev="ltheussl" type="add">new plugin:validate-xml tag to validate xml documents against a schema.</action>
<action dev="aheritier" type="add">new assert:assertPluginAvailable tag to check if a minimal release of a plugin is present.</action> <action dev="aheritier" type="add">new assert:assertPluginAvailable tag to check if a minimal release of a plugin is present.</action>
</release> </release>