You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by gs...@apache.org on 2007/08/23 15:17:49 UTC
svn commit: r568965 - in /lucene/java/trunk: CHANGES.txt build.xml
Author: gsingers
Date: Thu Aug 23 06:17:49 2007
New Revision: 568965
URL: http://svn.apache.org/viewvc?rev=568965&view=rev
Log:
Added apply-patch target
Modified:
lucene/java/trunk/CHANGES.txt
lucene/java/trunk/build.xml
Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=568965&r1=568964&r2=568965&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Thu Aug 23 06:17:49 2007
@@ -141,6 +141,11 @@
2. LUCENE-935: Various improvements for the maven artifacts. Now the
artifacts also include the sources as .jar files. (Michael Busch)
+ 3. Added apply-patch target to top-level build. Defaults to looking for a patch in ${basedir}/../patches with name
+ specified by -Dpatch.name. Can also specify any location by -Dpatch.file property on the command line. This
+ should be helpful for easy application of patches, but it is also a step towards integrating automatic patch
+ application with JIRA and Hudson, and is thus subject to change. (Grant Ingersoll)
+
Test Cases
Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=568965&r1=568964&r2=568965&view=diff
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Thu Aug 23 06:17:49 2007
@@ -623,4 +623,17 @@
</concat>
</sequential>
</macrodef>
+
+ <!--
+ Committer helpers
+ -->
+
+ <property name="patch.file" value="${basedir}/../patches/${patch.name}"/>
+ <!-- Apply a patch. Assumes patch can be applied in the basedir.
+ -Dpatch.name assumes the patch is located in ${basedir}/../patches/${patch.name}
+ -Dpatch.file means the patch can be located anywhere on the file system
+ -->
+ <target name="apply-patch" depends="clean" description="Apply a patch file. Set -Dpatch.file, or -Dpatch.name when the patch is in the directory ../patches/">
+ <patch patchfile="${patch.file}" strip="0"/>
+ </target>
</project>