2003-02-24 17:45:07 +00:00
|
|
|
<project name="pmd-jdeveloper" default="compile" basedir="../">
|
|
|
|
|
|
|
|
<property name="config" value="config/"/>
|
|
|
|
<property name="src" value="src/"/>
|
|
|
|
<property name="lib" value="lib/"/>
|
|
|
|
<property name="etc" value="etc/"/>
|
|
|
|
<property name="build" value="build/"/>
|
|
|
|
<property name="pmdjar" value="pmd-1.03.jar"/>
|
|
|
|
<property name="pluginversion" value="0.1"/>
|
|
|
|
<property name="jdeveloper.install.dir" value="C:\downloads\jdev9031\jdev\lib\ext\${ant.project.name}-${pluginversion}"/>
|
|
|
|
|
|
|
|
<path id="project.class.path">
|
|
|
|
<pathelement location="${lib}/${pmdjar}"/>
|
|
|
|
<pathelement location="${lib}/jdeveloper.jar"/>
|
|
|
|
<pathelement location="${build}"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="delete">
|
|
|
|
<delete file="${lib}/${ant.project.name}.jar"/>
|
|
|
|
<delete file="${jdeveloper.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" manifest="${etc}\manifest.mf">
|
|
|
|
<fileset dir="${build}"/>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="dist" depends="compile,jar">
|
|
|
|
<mkdir dir="${jdeveloper.install.dir}/lib"/>
|
|
|
|
<copy file="${lib}/${ant.project.name}-${pluginversion}.jar" todir="${jdeveloper.install.dir}/lib"/>
|
|
|
|
<copy file="${lib}/${pmdjar}" todir="${jdeveloper.install.dir}/lib"/>
|
|
|
|
</target>
|
|
|
|
|
2003-02-25 14:48:38 +00:00
|
|
|
<target name="release" depends="clean,jar">
|
|
|
|
<mkdir dir="tmp/${ant.project.name}-${pluginversion}/lib"/>
|
|
|
|
<copy file="${lib}/${ant.project.name}-${pluginversion}.jar" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
|
|
|
|
<copy file="${lib}/${pmdjar}" todir="tmp/${ant.project.name}-${pluginversion}/lib/"/>
|
2003-02-24 17:45:07 +00:00
|
|
|
<zip zipfile="pmd-jdeveloper-bin-${pluginversion}.zip" basedir="tmp"/>
|
|
|
|
<move file="pmd-jdeveloper-bin-${pluginversion}.zip" todir="c:\tmp"/>
|
|
|
|
<delete dir="tmp"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean" depends="delete,compile">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|