Changeset 4909


Ignore:
Timestamp:
Apr 29, 2009, 9:14:55 AM (13 years ago)
Author:
Nicklas Nordborg
Message:

Added 'svn.diff' target to build.xml that generates a patch with the current local changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r4889 r4909  
    15661566  </target>
    15671567 
     1568  <target
     1569    name="svn.diff"
     1570    depends="svn.revision"
     1571    description="Issues an 'svn diff' command to generate a patch with local changes"
     1572    >
     1573    <echo>NOTE! New files must be added to svn with 'svn add' or they will not be added to the patch.</echo>
     1574    <property name="patchfile" value="patch-${base.build}.diff" />
     1575    <pathconvert property="patchdir" dirsep="/" >
     1576      <path location="." />
     1577    </pathconvert>
     1578    <svn>
     1579      <diff oldpath="." outfile="${patchfile}"/>
     1580    </svn>
     1581    <replaceregexp file="${patchfile}" match="${patchdir}/" replace="" flags="g" />
     1582    <echo>Generated patch file: ${patchfile}</echo>
     1583  </target>
     1584   
    15681585</project>
Note: See TracChangeset for help on using the changeset viewer.