pmd/pmd-jedit/PMDPlugin/build.xml
Alan Ezust 31e6a04d9d Updated to PMD-4.1
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5668 51baf565-9d33-0410-a72c-fc3788e3496d
2007-11-21 01:44:43 +00:00

82 lines
2.5 KiB
XML

<project name="PMDPlugin" default="jar" basedir=".">
<property file="build.properties"/>
<property file="../build.properties"/>
<property name="config" value="."/>
<property name="src" value="src/"/>
<property name="lib" value="${basedir}/lib"/>
<property name="build" value="build"/>
<property name="pmdjar" value="pmd-4.1.jar"/>
<property name="pluginversion" value="2.7"/>
<property name="jedit.install.dir" value="../.."/>
<property name="jedit.jars.dir" value="${jedit.install.dir}/jars" />
<property name="install.dir" value="${jedit.jars.dir}"/>
<path id="project.class.path">
<pathelement location="${jedit.install.dir}/jedit.jar"/>
<pathelement location="${jedit.jars.dir}/ErrorList.jar"/>
<pathelement location="${build}"/>
<fileset casesensitive="false" id="pmd.libs" dir="${lib}">
<include name="${pmdjar}"/>
<include name="asm-3.1.jar"/>
<include name="jaxen-1.1.1.jar"/>
<include name="junit-4.4.jar"/>
<include name="pmd-swingui-0.1.jar"/>
<include name="jakarta-oro-2.0.8.jar"/>
</fileset>
</path>
<target name="delete">
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<target name="compile">
<mkdir dir="${build}"/>
<javac
srcdir="${src}"
destdir="${build}"
debug="on"
deprecation="on">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${jedit.jars.dir}/${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">
<antcall target="jar"/>
<copy todir="${jedit.jars.dir}" verbose="true">
<fileset refid="pmd.libs" />
</copy>
</target>
<target name="release">
<antcall target="clean"/>
<antcall target="jar"/>
<mkdir dir="tmp/jars"/>
<copy file="${install.dir}/${ant.project.name}.jar" todir="tmp/jars"/>
<copy file="${install.dir}/${pmdjar}" todir="tmp/jars"/>
<copy file="${lib}/asm-3.0.jar" todir="tmp/jars"/>
<copy file="${lib}/jaxen-1.1.1.jar" todir="tmp/jars"/>
<copy file="${lib}/junit-4.1.jar" todir="tmp/jars"/>
<copy file="${lib}/pmd-swingui-0.1.jar" todir="tmp/jars"/>
<zip zipfile="pmd-jedit-bin-${pluginversion}.zip" basedir="tmp"/>
<move file="pmd-jedit-bin-${pluginversion}.zip" todir="${install.dir}"/>
<delete dir="tmp"/>
</target>
<target name="clean" depends="delete" />
</project>