pmd/pmd-gel/etc/build.xml
Tom Copeland fad1648880 Rls preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2312 51baf565-9d33-0410-a72c-fc3788e3496d
2003-10-15 14:25:11 +00:00

56 lines
1.5 KiB
XML

<project name="pmd-gel" default="compile" basedir="../">
<property name="lib" value="lib\"/>
<property name="src" value="src\"/>
<property name="classes" value="classes\"/>
<property name="build" value="classes\"/>
<property name="version" value="0.5"/>
<path id="classpath.path">
<pathelement location="${build}"/>
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<target name="delete">
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<target name="compile">
<mkdir dir="${build}"/>
<javac deprecation="false"
debug="true"
optimize="false"
srcdir="${src}"
destdir="${build}">
<classpath>
<path refid="classpath.path"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${lib}\pmd-gel-${version}.jar" basedir="${build}" manifest="etc/MANIFEST.MF"/>
</target>
<target name="clean" depends="delete,compile"/>
<target name="dist" depends="clean,jar">
<copy file="${lib}/pmd-gel-${version}.jar" toDir="c:\gel\plugin"/>
</target>
<target name="release" depends="clean, jar, dist">
<mkdir dir="tmp"/>
<copy file="${lib}/pmd-gel-${version}.jar" toDir="tmp/"/>
<copy file="${lib}/jaxen-core-1.0-fcs.jar" toDir="tmp/"/>
<copy file="${lib}/saxpath-1.0-fcs.jar" toDir="tmp/"/>
<copy file="${lib}/pmd-1.2.2.jar" toDir="tmp/"/>
<copy file="${lib}/xercesImpl-2.0.2.jar" toDir="tmp/"/>
<copy file="${lib}/xmlParserAPIs-2.0.2.jar" toDir="tmp/"/>
<zip basedir="tmp/" zipfile="pmd-gel-${version}.zip"/>
<delete dir="tmp"/>
</target>
</project>