pmd/pmd-jedit/PMDPlugin/build.xml
Xavier Le Vourch 131932596b plugin compilation needs java 1.5
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6108 51baf565-9d33-0410-a72c-fc3788e3496d
2008-05-07 18:23:33 +00:00

86 lines
3.0 KiB
XML

<project name="PMDPlugin" default="jar" basedir=".">
<property file="build.properties"/>
<property file="../build.properties"/>
<property name="config" location="."/>
<property name="src" location="src/"/>
<property name="lib" location="${basedir}/lib"/>
<property name="build" location="build"/>
<property name="docs" location="doc"/>
<property name="pmdjar" value="pmd-4.1.jar"/>
<property name="pluginversion" value="2.7"/>
<property name="jedit.install.dir" location="../.."/>
<property name="jedit.jars.dir" location="${jedit.install.dir}/jars" />
<property name="install.dir" location="${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}"
source="1.5"
target="1.5"
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>
<fileset dir="." includes="doc/*.*"/>
</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>