You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/07/29 23:00:07 UTC

[jira] Closed: (MPSCM-20) Make it easier to allow users to send/create patches for maven

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPSCM-20

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPSCM-20
    Summary: Make it easier to allow users to send/create patches for maven
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: 2 weeks
 Time Spent: Unknown
  Remaining: 2 weeks

    Project: maven-scm-plugin
   Fix Fors:
             1.4.1

   Assignee: dion gillard
   Reporter: dion gillard

    Created: Tue, 3 Jun 2003 7:20 PM
    Updated: Thu, 29 Jul 2004 3:53 AM

Description:
Add something similar to maven.xml:

<goal name="maven:patch">
    <property name="patch.package" value="patch.tar.gz"/>
    <property name="patch.file" value="patch.txt"/>

    <condition property="cvs.found">
      <or>
        <available file="cvs"     filepath="${env.PATH}"/>
        <available file="cvs.exe" filepath="${env.PATH}"/>
        <available file="cvs.exe" filepath="${env.Path}"/>
      </or>
    </condition>

    <target name="createpatch" if="cvs.found">
        <cvs command="-q diff -u" output="${patch.file}"/>
    </target>

    <target name="newfiles" depends="createpatch">
        <delete file="${patch.package}"/>
        <cvs command="-q diff -N" output="${patch.file}.tmp"/>
        <replace file="${patch.file}.tmp" token="? " value=""/>
    </target>

    <target name="patchpackage" depends="newfiles">
        <tar basedir="${basedir}"
            tarfile="${patch.package}"
            compression="gzip"
            includesfile="${patch.file}.tmp"
            excludes="${patch.file}.tmp"/>
        <delete file="${patch.file}.tmp"/>
    </target>
</goal>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org