forked from phoedos/pmd
6f7b80a722
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@981 51baf565-9d33-0410-a72c-fc3788e3496d
73 lines
2.6 KiB
XML
73 lines
2.6 KiB
XML
<project name="pmd-dcpd" default="compile" basedir="../">
|
|
|
|
<property name="lib" value="lib\"/>
|
|
<property name="compiletimelibsdir" value="${lib}/compiletimeonly"/>
|
|
<property name="src" value="src\"/>
|
|
<property name="build" value="build\"/>
|
|
<property name="jar" value="dcpd.jar"/>
|
|
<property name="workerzipfile" value="worker.zip"/>
|
|
<property name="build.compiler" value="jikes"/>
|
|
<property name="httpserver" value="mordor"/>
|
|
|
|
<target name="delete">
|
|
<delete dir="${build}"/>
|
|
<delete file="${lib}\${jar}"/>
|
|
<mkdir dir="${build}"/>
|
|
</target>
|
|
|
|
<target name="compile">
|
|
<javac deprecation="true" debug="true" optimize="false" srcdir="${src}" destdir="${build}">
|
|
<classpath>
|
|
<pathelement location="${compiletimelibsdir}/jini-core.jar"/>
|
|
<pathelement location="${compiletimelibsdir}/jini-ext.jar"/>
|
|
<pathelement location="${lib}/pmd-1.0rc2.jar"/>
|
|
</classpath>
|
|
</javac>
|
|
<copy file="${src}net/sourceforge/pmd/dcpd/dcpd.properties" todir="${build}net/sourceforge/pmd/dcpd"/>
|
|
|
|
</target>
|
|
|
|
<target name="rmic">
|
|
<rmic base="${build}" debug="true" classname="net.sourceforge.pmd.dcpd.JobAddedListener" >
|
|
<classpath>
|
|
<pathelement location="${compiletimelibsdir}/jini-core.jar"/>
|
|
<pathelement location="${compiletimelibsdir}/jini-ext.jar"/>
|
|
</classpath>
|
|
</rmic>
|
|
</target>
|
|
|
|
<target name="jar">
|
|
<jar jarfile="${lib}/${jar}" basedir="${build}" excludes="test/**/*.class"/>
|
|
</target>
|
|
|
|
<target name="clean" depends="delete,compile,rmic"/>
|
|
|
|
<target name="copytoserver" depends="clean,jar">
|
|
<exec executable="pscp.exe" os="Windows 2000">
|
|
<arg line=" ${lib}\${jar} tom@${httpserver}:/home/tom/projects/jini/sdk/lib/"/>
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="buildworker" depends="clean,jar">
|
|
<delete dir="${workerzipfile}"/>
|
|
<mkdir dir="staging"/>
|
|
<copy file="${lib}/dcpd.jar" toDir="staging"/>
|
|
<copy file="${lib}/pmd-1.0rc2.jar" toDir="staging"/>
|
|
<copy file="${lib}/runtimeonly/outrigger-dl.jar" toDir="staging"/>
|
|
<copy file="${lib}/runtimeonly/reggie.jar" toDir="staging"/>
|
|
<copy file="etc/policy.all" toDir="staging"/>
|
|
<copy file="etc/linuxclient_go.sh" toDir="staging"/>
|
|
<copy file="etc/client_go.bat" toDir="staging"/>
|
|
<zip zipfile="${workerzipfile}" basedir="staging"/>
|
|
<exec executable="pscp.exe" os="Windows 2000">
|
|
<arg line=" ${workerzipfile} tom@${httpserver}:/home/tom/"/>
|
|
</exec>
|
|
<exec executable="pscp.exe" os="Windows 2000">
|
|
<arg line=" ${workerzipfile} tom@shire:/home/tom/"/>
|
|
</exec>
|
|
<delete dir="staging"/>
|
|
</target>
|
|
|
|
</project>
|
|
|