dion 2004/07/29 00:51:19 Modified: scm plugin.jelly plugin.properties scm/xdocs changes.xml goals.xml properties.xml Log: MPSCM-20. Add scm:cvs-create-patch goal Revision Changes Path 1.13 +15 -0 maven-plugins/scm/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /home/cvs/maven-plugins/scm/plugin.jelly,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- plugin.jelly 4 Jun 2004 19:10:33 -0000 1.12 +++ plugin.jelly 29 Jul 2004 07:51:18 -0000 1.13 @@ -348,5 +348,20 @@ failonerror="true" /> </goal> + + <!--==================================================================--> + <!-- Patch - CVS --> + <!--==================================================================--> + <goal name="scm:cvs-create-patch"> + <ant:delete dir="${maven.scm.cvs.patch.dir}"/> + <ant:mkdir dir="${maven.scm.cvs.patch.dir}"/> + <cvs command="diff -u -N -R" output="${maven.scm.cvs.patch.dir}/${maven.scm.cvs.patch.file}" + quiet="${maven.scm.cvs.quiet}" + cvsRsh="${maven.scm.cvs.rsh}" + cvsRoot="${maven.scm.cvs.root}" + failonerror="false"/> + <ant:echo>Patch created in ${maven.scm.cvs.patch.dir}/${maven.scm.cvs.patch.file}</ant:echo> + </goal> + </project> 1.7 +4 -1 maven-plugins/scm/plugin.properties Index: plugin.properties =================================================================== RCS file: /home/cvs/maven-plugins/scm/plugin.properties,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- plugin.properties 29 Jun 2004 09:03:37 -0000 1.6 +++ plugin.properties 29 Jul 2004 07:51:18 -0000 1.7 @@ -49,4 +49,7 @@ maven.scm.cvs.sticky.tag= # Whether to use quiet mode maven.scm.cvs.quiet=true - +# The file name for the patch +maven.scm.cvs.patch.file=patch.txt +# The working directory for patching +maven.scm.cvs.patch.dir=${maven.build.dir}/scm/patch 1.16 +1 -0 maven-plugins/scm/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/maven-plugins/scm/xdocs/changes.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- changes.xml 29 Jun 2004 09:03:37 -0000 1.15 +++ changes.xml 29 Jul 2004 07:51:19 -0000 1.16 @@ -25,6 +25,7 @@ </properties> <body> <release version="1.4.1-SNAPSHOT" date="in CVS"> + <action dev="dion" type="add" issue="MPSCM-20">Add scm:cvs-create-patch goal to help in creating patches</action> <action dev="carlos" type="fix" issue="MPSCM-13">Set default <code>maven.scm.method</code> to cvs</action> </release> <release version="1.4" date="2004-06-18"> 1.3 +7 -0 maven-plugins/scm/xdocs/goals.xml Index: goals.xml =================================================================== RCS file: /home/cvs/maven-plugins/scm/xdocs/goals.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- goals.xml 4 Mar 2004 18:38:45 -0000 1.2 +++ goals.xml 29 Jul 2004 07:51:19 -0000 1.3 @@ -55,6 +55,13 @@ that are not provided you will be prompted for them. </description> </goal> + <goal> + <name>scm:cvs-create-patch</name> + <description> + Creates a patch in ${maven.scm.cvs.patch.dir}/${maven.scm.cvs.patch.file} + of the changes made to the current project + </description> + </goal> </goals> </body> </document> 1.5 +19 -0 maven-plugins/scm/xdocs/properties.xml Index: properties.xml =================================================================== RCS file: /home/cvs/maven-plugins/scm/xdocs/properties.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- properties.xml 26 May 2004 23:53:13 -0000 1.4 +++ properties.xml 29 Jul 2004 07:51:19 -0000 1.5 @@ -145,6 +145,25 @@ <p>Used as the tag for the <code>cvs-tag-project</code> goal.</p> </td> </tr> + <tr> + <td>maven.scm.cvs.patch.dir</td> + <td>Yes</td> + <td> + <p>Working directory for creating a patch file. Used by the <code>cvs-create-patch</code> goal.</p> + <p>Defaults to <code>${maven.build.dir}/scm/patch</code></p> + </td> + </tr> + <tr> + <td>maven.scm.cvs.patch.file</td> + <td>Yes</td> + <td> + <p> + The name of the patch file created y the <code>cvs-create-patch</code> goal. + in the <code>${maven.scm.cvs.patch.dir}</code> directory + </p> + <p>Defaults to <code>patch.txt</code></p> + </td> + </tr> </table> </subsection> </section>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]