From: dion g. <dio...@us...> - 2004-08-01 12:22:26
|
diongillard 04/08/01 05:22:20 Modified: . maven.xml Log: Add magic to copy parent files so that scm:perform-release works Revision Changes Path 1.21 +13 -0 maven-plugins/maven.xml Index: maven.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/maven.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- maven.xml 25 Jun 2004 10:15:49 -0000 1.20 +++ maven.xml 1 Aug 2004 12:22:19 -0000 1.21 @@ -74,4 +74,17 @@ </goal> + + <!-- XXX: must be a nicer way - maybe SCM can read the POM and recursively checkout parent directories + project.xml, maven.xml, project.properties, but tag will not be set --> + <!-- perhaps copy extended project.xml into current directory, merge higher extends, commit & tag, replace extends + in main POM? --> + <postGoal name="scm:cvs-checkout-project"> + <maven:pluginVar plugin="maven-scm-plugin" property="maven.scm.checkout.dir" var="dir" /> + <ant:mkdir dir="${dir}/maven-plugins" /> + <ant:copy todir="${dir}/maven-plugins" file="${pom.parent.file}" /> + <ant:copy todir="${dir}/maven-plugins" file="${pom.parent.file.parent}/project.properties" /> + <ant:copy todir="${dir}/maven-plugins" file="${pom.parent.file.parent}/announcement.jsl" /> + <ant:copy todir="${dir}/maven-plugins" file="${pom.parent.file.parent}/LICENSE.txt" /> + </postGoal> </project> |