pmd/pmd-dcpd/etc/build.xml

51 lines
1.5 KiB
XML
Raw Normal View History

<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="build.compiler" value="jikes"/>
<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-0.9.jar"/>
</classpath>
</javac>
</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="copytomordor" depends="clean,jar">
<exec executable="pscp.exe" os="Windows 2000">
<arg line=" ${lib}\${jar} tom@mordor:/home/tom/projects/jini/sdk/lib/"/>
</exec>
</target>
</project>