mirror of https://github.com/apache/lucene.git
LUCENE-4612: tell python not to write bytecode to the filesystem
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1437007 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
13d1d21951
commit
75f15cbb84
|
@ -287,6 +287,8 @@
|
|||
<makeurl file="${fakeRelease}" validate="false" property="fakeRelease.uri"/>
|
||||
<exec executable="${python32.exe}" failonerror="true">
|
||||
<arg value="-u"/>
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg file="dev-tools/scripts/smokeTestRelease.py"/>
|
||||
<arg value="${fakeRelease.uri}"/>
|
||||
<arg value="${fakeReleaseVersion}"/>
|
||||
|
|
|
@ -59,6 +59,8 @@
|
|||
<exec dir="src/java/org/apache/lucene/analysis/charfilter"
|
||||
output="src/java/org/apache/lucene/analysis/charfilter/HTMLCharacterEntities.jflex"
|
||||
executable="${python.exe}" failonerror="true" logerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="htmlentity.py"/>
|
||||
</exec>
|
||||
<fixcrlf file="src/java/org/apache/lucene/analysis/charfilter/HTMLCharacterEntities.jflex" encoding="UTF-8"/>
|
||||
|
|
|
@ -1959,6 +1959,8 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
|
|||
<attribute name="dir"/>
|
||||
<sequential>
|
||||
<exec dir="." executable="${python32.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="${dev-tools.dir}/scripts/checkJavadocLinks.py"/>
|
||||
<arg value="@{dir}"/>
|
||||
</exec>
|
||||
|
@ -1970,6 +1972,8 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
|
|||
<attribute name="level" default="class"/>
|
||||
<sequential>
|
||||
<exec dir="." executable="${python32.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="${dev-tools.dir}/scripts/checkJavaDocs.py"/>
|
||||
<arg value="@{dir}"/>
|
||||
<arg value="@{level}"/>
|
||||
|
|
|
@ -63,12 +63,16 @@
|
|||
<sequential>
|
||||
<exec dir="src/java/org/apache/lucene/util/automaton"
|
||||
executable="${python.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="createLevAutomata.py"/>
|
||||
<arg value="@{n}"/>
|
||||
<arg value="True"/>
|
||||
</exec>
|
||||
<exec dir="src/java/org/apache/lucene/util/automaton"
|
||||
executable="${python.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="createLevAutomata.py"/>
|
||||
<arg value="@{n}"/>
|
||||
<arg value="False"/>
|
||||
|
@ -80,18 +84,26 @@
|
|||
<target name="createPackedIntSources">
|
||||
<exec dir="src/java/org/apache/lucene/util/packed"
|
||||
executable="${python.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="gen_BulkOperation.py"/>
|
||||
</exec>
|
||||
<exec dir="src/java/org/apache/lucene/util/packed"
|
||||
executable="${python.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="gen_Direct.py"/>
|
||||
</exec>
|
||||
<exec dir="src/java/org/apache/lucene/util/packed"
|
||||
executable="${python.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="gen_Packed64SingleBlock.py"/>
|
||||
</exec>
|
||||
<exec dir="src/java/org/apache/lucene/util/packed"
|
||||
executable="${python.exe}" failonerror="true">
|
||||
<!-- Tell Python not to write any bytecode cache into the filesystem: -->
|
||||
<arg value="-B"/>
|
||||
<arg value="gen_PackedThreeBlocks.py"/>
|
||||
</exec>
|
||||
<fixcrlf srcdir="src/java/org/apache/lucene/util/packed" includes="BulkOperation*.java,Direct*.java,Packed64SingleBlock.java,Packed*ThreeBlocks.py" encoding="UTF-8"/>
|
||||
|
|
Loading…
Reference in New Issue