pmd/pmd-jedit/PMDPlugin/build.xml
Jiger Patel 73d638b45d Removed getNode usage
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4431 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-21 07:24:48 +00:00

79 lines
2.5 KiB
XML

<project name="PMDPlugin" default="jar" basedir=".">
<property file="build.properties"></property>
<property name="config" value="."/>
<property name="src" value="src/"/>
<property name="lib" value="lib"/>
<property name="build" value="build"/>
<property name="pmdjar" value="pmd-3.7.jar"/>
<property name="pluginversion" value="2.6"/>
<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 id="pmd.libs" dir="${lib}">
<include name="${pmdjar}"/>
<include name="jaxen-core-1.0-fcs.jar"/>
<include name="pmd-swingui-0.1.jar"/>
<include name="saxpath-1.0-fcs.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="${install.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="${install.dir}" verbose="true">
<fileset casesensitive="false" refid="pmd.libs"></fileset>
<!-- <fileset casesensitive="false" dir="${lib}" includes="*.jar"></fileset> -->
</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}/jaxen-core-1.0-fcs.jar" todir="tmp/jars"/>
<copy file="${lib}/saxpath-1.0-fcs.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,compile" />
</project>