pmd/pmd-jedit/etc/build.xml
2003-05-19 06:05:10 +00:00

76 lines
2.4 KiB
XML

<project name="PMDJEditPlugin" default="jar" 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.05.jar"/>
<property name="pluginversion" value="2.1"/>
<property name="jedit.home" value="c:\Program Files\jEdit 4.1pre9"/>
<property name="jedit.jars.dir" value="${jedit.home}\jars"/>
<property name="jedit.install.dir" value="${jedit.jars.dir}"/>
<path id="project.class.path">
<pathelement location="${jedit.jars.dir}/${pmdjar}"/>
<pathelement location="${jedit.home}/jedit.jar"/>
<pathelement location="${jedit.jars.dir}/ErrorList.jar"/>
<pathelement location="${jedit.jars.dir}/CommonControls.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 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" depends="compile">
<jar jarfile="${lib}/${ant.project.name}.jar">
<fileset dir="${build}"/>
<fileset dir="${config}">
<include name="*.props"/>
<include name="*.xml"/>
<include name="*.html"/>
</fileset>
</jar>
<copy file="${lib}/${ant.project.name}.jar" todir="${jedit.jars.dir}"></copy>
</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"/>
<copy file="${jedit.jars.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"/>
<zip zipfile="pmd-jedit-bin-${pluginversion}.zip" basedir="tmp"/>
<move file="pmd-jedit-bin-${pluginversion}.zip" todir="/home/tom/tmp"/>
<delete dir="tmp"/>
</target>
<target name="clean" depends="delete,compile">
</target>
</project>