a08ec714df
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4481 51baf565-9d33-0410-a72c-fc3788e3496d
85 lines
2.5 KiB
XML
85 lines
2.5 KiB
XML
<project name="pmd-jbuilder" default="compile" basedir="../">
|
|
|
|
<property name="dir.lib" value="lib\"/>
|
|
<property name="dir.src" value="src\"/>
|
|
<property name="dir.build" value="build\"/>
|
|
<property name="dir.rulesets" value="rulesets\"/>
|
|
<property name="dir.regress" value="regress\"/>
|
|
<property name="version" value="1.6"/>
|
|
<property name="pmd.version" value="3.7"/>
|
|
|
|
<path id="dependencies.path">
|
|
<pathelement location="${dir.build}"/>
|
|
<fileset dir="${dir.lib}">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
</path>
|
|
|
|
<target name="delete" description="Deletes the build directory and the OpenTool jar file.">
|
|
<delete dir="${dir.build}"/>
|
|
<delete file="${dir.lib}\PMDOpenTool.jar"/>
|
|
<mkdir dir="${dir.build}"/>
|
|
</target>
|
|
|
|
<target name="compile" description="Compiles the code">
|
|
<mkdir dir="${dir.build}"/>
|
|
<javac deprecation="false"
|
|
debug="true"
|
|
optimize="false"
|
|
srcdir="${dir.src}"
|
|
destdir="${dir.build}">
|
|
<classpath>
|
|
|
|
<path refid="dependencies.path"/>
|
|
</classpath>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="jar" depends="compile" description="Jars up the classes and rulesets">
|
|
<mkdir dir="build/html"/>
|
|
<copy todir="build/html">
|
|
<fileset dir="src/html">
|
|
<include name="*.html"/>
|
|
</fileset>
|
|
</copy>
|
|
<mkdir dir="build/images"/>
|
|
<copy todir="build/images">
|
|
<fileset dir="src/images">
|
|
<include name="*.gif"/>
|
|
</fileset>
|
|
</copy>
|
|
<jar
|
|
jarfile="${dir.lib}\PMDOpenTool.jar"
|
|
includes="net/sourceforge/pmd/**/**/*.class,html/,images/"
|
|
basedir="${dir.build}">
|
|
<manifest>
|
|
<attribute name="Manifest-Version" value="1.0"/>
|
|
<attribute name="OpenTools-UI" value="net.sourceforge.pmd.jbuilder.PMDOpenTool"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="jarsrc" depends="compile" description="Jars up the source directory">
|
|
<jar jarfile="${dir.lib}\pmd-jbuilder-src-${version}.jar" basedir="${dir.src}"/>
|
|
</target>
|
|
|
|
<target name="clean" depends="delete,compile" description="Does a complete recompile"/>
|
|
|
|
<target name="dist" depends="clean,jar" description="Recompiles and jars"/>
|
|
|
|
<target name="deploy" depends="clean,jar" description="Deploys new jar file to my JBuilder install">
|
|
<copy todir="c:\jbuilder2005\lib\ext\">
|
|
<fileset dir="${dir.lib}">
|
|
<include name="PMDOpenTool.jar"/>
|
|
<include name="pmd-${pmd.version}.jar"/>
|
|
<include name="jaxen-1.1-beta-7.jar"/>
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
</project>
|
|
|
|
|
|
|
|
|