Apache Lucene open-source search software
Added apply-patch target
Grant Ingersolla30a6e44d805
diff --git a/CHANGES.txt b/CHANGES.txtindex bfd13ac194e..e572a2f35d2 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -141,6 +141,11 @@ Build2. LUCENE-935: Various improvements for the maven artifacts. Now theartifacts 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 Casesdiff --git a/build.xml b/build.xmlindex 414a4d21165..5649c906da9 100644--- a/build.xml+++ b/build.xml@@ -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>