mirror of https://github.com/apache/lucene.git
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:
parent
9c2a036db3
commit
a30a6e44d8
|
@ -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
|
||||
|
||||
|
|
13
build.xml
13
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>
|
||||
|
|
Loading…
Reference in New Issue