Added apply-patch target

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@568965 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2007-08-23 13:17:49 +00:00
parent 9c2a036db3
commit a30a6e44d8
2 changed files with 18 additions and 0 deletions

View File

@ -141,6 +141,11 @@ Build
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

View File

@ -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>