mirror of
https://github.com/apache/lucene.git
synced 2025-02-12 21:15:19 +00:00
LUCENE-4335: Make moman not use HG anymore. Just download as ZIP from bitbucket and unzip
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1506533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f9bb96db81
commit
bd1627fa3c
@ -230,9 +230,6 @@
|
|||||||
<property name="svn.exe" value="svn" />
|
<property name="svn.exe" value="svn" />
|
||||||
<property name="perl.exe" value="perl" />
|
<property name="perl.exe" value="perl" />
|
||||||
|
|
||||||
<property name="hg.exe" value="hg" />
|
|
||||||
<property name="moman.url" value="https://bitbucket.org/jpbarrette/moman" />
|
|
||||||
<property name="moman.rev" value="120" />
|
|
||||||
<property name="python.exe" value="python" />
|
<property name="python.exe" value="python" />
|
||||||
<property name="python32.exe" value="python3.2" />
|
<property name="python32.exe" value="python3.2" />
|
||||||
|
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
|
|
||||||
<import file="../common-build.xml"/>
|
<import file="../common-build.xml"/>
|
||||||
|
|
||||||
|
<property name="moman.commit-hash" value="5c5c2a1e4dea" />
|
||||||
|
<property name="moman.url" value="https://bitbucket.org/jpbarrette/moman/get/${moman.commit-hash}.zip" />
|
||||||
|
|
||||||
<path id="classpath"/>
|
<path id="classpath"/>
|
||||||
|
|
||||||
<path id="test.classpath">
|
<path id="test.classpath">
|
||||||
@ -109,37 +112,22 @@
|
|||||||
<fixcrlf srcdir="src/java/org/apache/lucene/util/packed" includes="BulkOperation*.java,Direct*.java,Packed64SingleBlock.java,Packed*ThreeBlocks.py" encoding="UTF-8"/>
|
<fixcrlf srcdir="src/java/org/apache/lucene/util/packed" includes="BulkOperation*.java,Direct*.java,Packed64SingleBlock.java,Packed*ThreeBlocks.py" encoding="UTF-8"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="createLevAutomata" depends="check-moman,clone-moman,pull-moman">
|
<target name="createLevAutomata" depends="check-moman,download-moman">
|
||||||
<createLevAutomaton n="1"/>
|
<createLevAutomaton n="1"/>
|
||||||
<createLevAutomaton n="2"/>
|
<createLevAutomaton n="2"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="check-moman">
|
<target name="check-moman">
|
||||||
<condition property="moman.cloned">
|
<available file="${build.dir}/moman" property="moman.downloaded"/>
|
||||||
<available file="${build.dir}/moman"/>
|
|
||||||
</condition>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clone-moman" unless="moman.cloned">
|
<target name="download-moman" unless="moman.downloaded">
|
||||||
<mkdir dir="${build.dir}"/>
|
<mkdir dir="${build.dir}/moman"/>
|
||||||
<exec dir="${build.dir}"
|
<get src="${moman.url}" dest="${build.dir}/moman.zip"/>
|
||||||
executable="${hg.exe}" failonerror="true">
|
<unzip dest="${build.dir}/moman" src="${build.dir}/moman.zip">
|
||||||
<arg value="clone"/>
|
<cutdirsmapper dirs="1"/>
|
||||||
<arg value="-r"/>
|
</unzip>
|
||||||
<arg value="${moman.rev}"/>
|
<delete file="${build.dir}/moman.zip"/>
|
||||||
<arg value="${moman.url}"/>
|
|
||||||
<arg value="moman"/>
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="pull-moman" if="moman.cloned">
|
|
||||||
<exec dir="${build.dir}/moman"
|
|
||||||
executable="${hg.exe}" failonerror="true">
|
|
||||||
<arg value="pull"/>
|
|
||||||
<arg value="-f"/>
|
|
||||||
<arg value="-r"/>
|
|
||||||
<arg value="${moman.rev}"/>
|
|
||||||
</exec>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="regenerate" depends="createLevAutomata,createPackedIntSources"/>
|
<target name="regenerate" depends="createLevAutomata,createPackedIntSources"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user