summaryrefslogtreecommitdiff
path: root/qpid/java/common.xml
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-12-03 19:34:40 +0000
committerRafael H. Schloming <rhs@apache.org>2008-12-03 19:34:40 +0000
commit59b696abbd5da5e5c2f44b127599a127cb8d13e3 (patch)
tree88a3545f6202ce311742221500ab37bcec82b8c5 /qpid/java/common.xml
parentceb2e4419fe081d096bacda9966adc705bf3dc73 (diff)
downloadqpid-python-59b696abbd5da5e5c2f44b127599a127cb8d13e3.tar.gz
made ant build generate perftest scripts
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@723029 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common.xml')
-rw-r--r--qpid/java/common.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/qpid/java/common.xml b/qpid/java/common.xml
index 4ba43503d4..9ca87b97ab 100644
--- a/qpid/java/common.xml
+++ b/qpid/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}"/>