Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsutherla2013-08-14 10:41:59 -0400
committerjsutherla2013-08-14 10:41:59 -0400
commitfaa9ac65043218687f7978c83e17a25f3a0fbea9 (patch)
tree1dbc5a3349b4a8923faddbdcf48c6bbe66cbe2f5 /serialization/build.xml
parent7fb2f29e049d8781e79c067faba2b9124d580376 (diff)
downloadperformance-faa9ac65043218687f7978c83e17a25f3a0fbea9.tar.gz
performance-faa9ac65043218687f7978c83e17a25f3a0fbea9.tar.xz
performance-faa9ac65043218687f7978c83e17a25f3a0fbea9.zip
Adding serialization example
Diffstat (limited to 'serialization/build.xml')
-rw-r--r--serialization/build.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/serialization/build.xml b/serialization/build.xml
new file mode 100644
index 0000000..47149dd
--- /dev/null
+++ b/serialization/build.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." default="build" name="org.eclipse.persistence.example.serialization">
+ <property environment="env"/>
+ <property name="JDBC_LIB" value="./h2.jar"/>
+ <property name="JPA_LIB" value="./persistence.jar"/>
+ <property name="KRYO_LIB" value="./kryo-all.jar"/>
+ <property name="COHERENCE_LIB" value="./coherence.jar"/>
+ <property name="ECLIPSELINK_LIB" value="./eclipselink.jar"/>
+ <property name="AGENT" value="-javaagent:${ECLIPSELINK_LIB}"/>
+ <property name="debuglevel" value="source,lines,vars"/>
+ <path id="example.classpath">
+ <pathelement location="classes"/>
+ <pathelement location="${JDBC_LIB}"/>
+ <pathelement location="${JPA_LIB}"/>
+ <pathelement location="${KRYO_LIB}"/>
+ <pathelement location="${COHERENCE_LIB}"/>
+ <pathelement location="${ECLIPSELINK_LIB}"/>
+ </path>
+ <target name="init" depends="clean">
+ <mkdir dir="classes"/>
+ </target>
+ <target name="clean">
+ <delete dir="classes"/>
+ </target>
+
+ <target depends="init" name="build">
+ <echo message="${ant.project.name}: ${ant.file}"/>
+ <javac debug="true" debuglevel="${debuglevel}" destdir="classes">
+ <src path="src"/>
+ <exclude name="**/.svn/**"/>
+ <exclude name="**/POFSerializer.java"/>
+ <classpath refid="example.classpath"/>
+ </javac>
+ <copy file="src/META-INF/persistence.xml" todir="classes/META-INF"/>
+ <copy file="src/META-INF/order-orm.xml" todir="classes/META-INF"/>
+ <copy file="src/model/jaxb.properties" todir="classes/model/"/>
+ </target>
+
+ <target name="test">
+ <java classname="example.Test"
+ maxmemory="512m"
+ fork="true">
+ <!--jvmarg value="${AGENT}"/-->
+ <classpath refid="example.classpath"/>
+ </java>
+ </target>
+</project>

Back to the top