LUCENE-4335: checkout Moman under build dir

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1381701 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-09-06 18:06:04 +00:00
parent 29793bc97f
commit bcef091d82
2 changed files with 10 additions and 8 deletions

View File

@ -96,18 +96,19 @@
</target>
<target name="createLevAutomata" depends="check-moman,clone-moman,pull-moman">
<createLevAutomaton n="1"/>
<createLevAutomaton n="2"/>
<createLevAutomaton n="1"/>
<createLevAutomaton n="2"/>
</target>
<target name="check-moman">
<condition property="moman.cloned">
<available file="src/java/org/apache/lucene/util/automaton/moman"/>
</condition>
<available file="${build.dir}/moman"/>
</condition>
</target>
<target name="clone-moman" unless="moman.cloned">
<exec dir="src/java/org/apache/lucene/util/automaton"
<mkdir dir="${build.dir}"/>
<exec dir="${build.dir}"
executable="${hg.exe}" failonerror="true">
<arg value="clone"/>
<arg value="-r"/>
@ -118,7 +119,7 @@
</target>
<target name="pull-moman" if="moman.cloned">
<exec dir="src/java/org/apache/lucene/util/automaton/moman"
<exec dir="${build.dir}/moman"
executable="${hg.exe}" failonerror="true">
<arg value="pull"/>
<arg value="-f"/>

View File

@ -21,7 +21,8 @@
import math
import os
import sys
sys.path.insert(0, 'moman/finenight/python')
#sys.path.insert(0, 'moman/finenight/python')
sys.path.insert(0, '../../../../../../../../build/core/moman/finenight/python')
try:
from possibleStates import genTransitions
except ImportError: