summaryrefslogtreecommitdiff
path: root/java/common.xml
diff options
context:
space:
mode:
Diffstat (limited to 'java/common.xml')
-rw-r--r--java/common.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/java/common.xml b/java/common.xml
index 4ba43503d4..9ca87b97ab 100644
--- a/java/common.xml
+++ b/java/common.xml
@@ -39,7 +39,7 @@
<property name="build.data" location="${build}/data"/>
<property name="build.plugins" location="${build}/lib/plugins"/>
<property name="build.coveragereport" location="${build}/coverage"/>
-
+
<property name="java.target" value="1.5"/>
<property name="java.source" value="1.5"/>
@@ -52,6 +52,7 @@
<property name="javac.compiler.args" value=""/>
<property name="cobertura.dir" value="${project.root}/lib/cobertura" />
+ <property name="mllib.dir" value="${project.root}/../python" />
<path id="cobertura.classpath">
<fileset dir="${cobertura.dir}">
@@ -61,7 +62,7 @@
</path>
<taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
-
+
<macrodef name="indirect">
<attribute name="name"/>
<attribute name="variable"/>
@@ -89,6 +90,21 @@
</sequential>
</macrodef>
+ <macrodef name="jython">
+ <attribute name="path"/>
+ <element name="args"/>
+ <sequential>
+ <java classname="org.python.util.jython" fork="true" failonerror="true">
+ <arg value="-Dpython.cachedir.skip=true"/>
+ <arg value="-Dpython.path=${project.root}/lib/jython-lib.jar/Lib${path.separator}@{path}"/>
+ <args/>
+ <classpath>
+ <pathelement location="${project.root}/lib/jython-2.2-rc2.jar"/>
+ </classpath>
+ </java>
+ </sequential>
+ </macrodef>
+
<mkdir dir="${tasks.classes}"/>
<javac source="${java.source}" target="${java.target}" srcdir="${tasks.src}" destdir="${tasks.classes}" classpath="${java.class.path}">
<compilerarg line="${javac.compiler.args}"/>