mirror of
https://github.com/apache/lucene.git
synced 2025-02-21 09:36:46 +00:00
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:
parent
29793bc97f
commit
bcef091d82
@ -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"/>
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user