Maven 1.x SCM Plugin
  1. Maven 1.x SCM Plugin
  2. MPSCM-20

Make it easier to allow users to send/create patches for maven

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1
    • Labels:
      None
    • Number of attachments :
      0

      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>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            dion gillard
            Reporter:
            dion gillard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2 weeks
              2w
              Remaining:
              Remaining Estimate - 2 weeks
              2w
              Logged:
              Time Spent - Not Specified
              Not Specified