pmd/pmd-jedit/etc/build.xml
Tom Copeland 4e1bc237af Updating to latest PMD version
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1594 51baf565-9d33-0410-a72c-fc3788e3496d
2003-03-24 17:44:30 +00:00

73 lines
2.2 KiB
XML

<project name="PMDJEditPlugin" default="compile" basedir="../">
<property name="config" value="config/"/>
<property name="src" value="src/"/>
<property name="lib" value="lib/"/>
<property name="build" value="build/"/>
<property name="pmdjar" value="pmd-1.04.jar"/>
<property name="pluginversion" value="1.4"/>
<property name="jedit.install.dir" value="/home/tom/jedit/4.1/jars"/>
<path id="project.class.path">
<pathelement location="${lib}/${pmdjar}"/>
<pathelement location="${lib}/jedit.jar"/>
<pathelement location="${lib}/ErrorList.jar"/>
<pathelement location="${lib}/jaxen-core-1.0-fcs.jar"/>
<pathelement location="${lib}/saxpath-1.0-fcs.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}-${pluginversion}.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}-${pluginversion}.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}-${pluginversion}.jar" todir="tmp/jars"/>
<copy file="${lib}/${pmdjar}" todir="tmp/jars"/>
<copy file="${lib}/jaxen-core-1.0-fcs.jar" todir="tmp/jars"/>
<copy file="${lib}/saxpath-1.0-fcs.jar" todir="tmp/jars"/>
<zip zipfile="pmd-jedit-bin-${pluginversion}.zip" basedir="tmp"/>
<move file="pmd-jedit-bin-${pluginversion}.zip" todir="c:\tmp"/>
<delete dir="tmp"/>
</target>
<target name="clean" depends="delete,compile">
</target>
</project>