Permalink
Browse files

ant logic changes under lucene/

  • Loading branch information...
rmuir committed Mar 8, 2012
1 parent 770b2ff commit 35927e491257d48463523073192cff45c5193e92
Showing with 24 additions and 3 deletions.
  1. +22 −2 lucene/common-build.xml
  2. +2 −1 lucene/tools/custom-tasks.xml
View
@@ -966,12 +966,32 @@
</target>
<property name="svn.export.dir" location="${build.dir}/svn-export"/>
- <macrodef name="svn-export-source"
+ <property name="tmp.sourcetree.dir" location="/tmp/sourcetree"/>
+
+ <macrodef name="svn-export-source">
+ <attribute name="source.dir"/>
+ <sequential>
+ <delete dir="${svn.export.dir}" includeemptydirs="true" failonerror="false"/>
+ <delete dir="${tmp.sourcetree.dir}" includeemptydirs="true" failonerror="false"/>
+ <mkdir dir="${tmp.sourcetree.dir}"/>
+ <copy todir="${tmp.sourcetree.dir}">
+ <fileset dir=".."/>
+ </copy>
+ <mkdir dir="${svn.export.dir}"/>
+ <copy todir="${svn.export.dir}">
+ <fileset dir="${tmp.sourcetree.dir}"/>
+ </copy>
+ <delete dir="${tmp.sourcetree.dir}"/>
+ </sequential>
+ </macrodef>
+
+
+ <macrodef name="svn-export-source-orig"
description="Runs 'svn export' with the same URL and revision as the current working copy.">
<attribute name="source.dir"/>
<sequential>
<delete dir="${svn.export.dir}" includeemptydirs="true" failonerror="false"/>
- <get-svn-info directory="@{source.dir}"/>
+ <get-svn-info directory="@{source.dir}"/>
<exec dir="@{source.dir}" executable="${svn.exe}" failonerror="true">
<arg value="export"/>
<arg value="--native-eol"/>
@@ -22,6 +22,7 @@
<licenses>
<fileset dir="@{dir}">
<include name="**/*.jar" />
+ <exclude name="**/lucid-codecs-*.jar"/>
<!-- Speed up scanning a bit. -->
<exclude name="**/.git/**" />
<exclude name="**/.svn/**" />
@@ -56,4 +57,4 @@
</licenses>
</sequential>
</macrodef>
-</project>
+</project>

0 comments on commit 35927e4

Please sign in to comment.