<project name="TableSync" default="dist">
<target name="dist" description="Builds TableSync">
<echo>Creating distribution of TableSync for ${config.set}</echo>
<delete dir="deployment" />
<mkdir dir="deployment" />
<jar destfile="deployment/tablesync.jar"
basedir="bin"
includes="**/*">
</jar>
<!-- deps -->
<copy todir="deployment/lib">
<fileset dir="lib" includes="log4j.jar"/>
<fileset dir="lib" includes="jdom.jar"/>
<fileset dir="lib" includes="jtds-1.2.2.jar"/>
<fileset dir="lib" includes="mysql-connector-java-5.1.5-bin.jar"/>
<fileset dir="lib" includes="oracle-10.2.0.2-jdbc-jdk-1.5.jar"/>
<fileset dir="lib" includes="postgresql-8.2-507.jdbc4.jar"/>
</copy>
<copy todir="deployment">
<fileset dir="" includes="sync_server.sh"/>
<fileset dir="" includes="sync_server.conf"/>
<fileset dir="" includes="tablesync.xml"/>
<fileset dir="" includes="README.txt"/>
</copy>
</target>
<target name="run" description="launches TableSync">
<echo>TableSync launched</echo>
<java classname="org.deltasql.tablesync.TableSync"
fork="yes" >
<classpath>
<pathelement path="bin;lib/jdom.jar;lib/log4j.jar;lib/oracle-10.2.0.2-jdbc-jdk-1.5.jar;lib/mysql-connector-java-5.1.5-bin.jar;lib/postgresql-8.2-507.jdbc4.jar;lib/jtds-1.2.2.jar" />
</classpath>
<sysproperty key="DEBUG" value="true"/>
<arg value="test-tablesync.xml"/>
<jvmarg value="-Xrunhprof:cpu=samples,file=log.txt,depth=3"/>
</java>
</target>
</project>