pmd/pmd-jedit/etc/build.xml
Tom Copeland 88ba168c32 prepping for 0.3
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@329 51baf565-9d33-0410-a72c-fc3788e3496d
2002-07-12 16:59:42 +00:00

66 lines
1.8 KiB
XML

<project name="PMDJEditPlugin" default="clean" basedir="../">
<property name="config" value="config/"/>
<property name="src" value="src/"/>
<property name="lib" value="lib/"/>
<property name="build" value="build/"/>
<property name="jedit.install.dir" value="c:\jedit\jars"/>
<path id="project.class.path">
<pathelement location="${lib}/pmd.jar"/>
<pathelement location="${lib}/jedit.jar"/>
<pathelement location="${build}"/>
</path>
<target name="delete">
<delete file="${lib}/${ant.project.name}.jar"/>
<delete file="${jedit.install.dir}/${ant.project.name}.jar"/>
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<target name="compile">
<javac
srcdir="${src}"
destdir="${build}"
debug="on"
deprecation="on">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="jar">
<jar jarfile="${lib}/${ant.project.name}.jar">
<fileset dir="${build}"/>
<fileset dir="${config}">
<include name="*.props"/>
<include name="*.xml"/>
<include name="*.html"/>
</fileset>
</jar>
</target>
<target name="dist" depends="clean">
<antcall target="jar"/>
<copy file="${lib}/${ant.project.name}.jar" todir="${jedit.install.dir}"/>
</target>
<target name="release">
<antcall target="clean"/>
<antcall target="jar"/>
<mkdir dir="tmp/jars"/>
<copy file="${lib}/${ant.project.name}.jar" todir="tmp/jars"/>
<move file="tmp/jars/${ant.project.name}.jar" tofile="tmp/jars/${ant.project.name}-0.3.jar"/>
<copy file="${lib}/pmd-0.4.jar" todir="tmp/jars"/>
<zip zipfile="pmd-jedit-bin-0.3.zip" basedir="tmp"/>
<delete dir="tmp"/>
</target>
<target name="clean" depends="delete,compile">
</target>
</project>