forked from phoedos/pmd
84064bbdcb
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3704 51baf565-9d33-0410-a72c-fc3788e3496d
65 lines
2.3 KiB
XML
65 lines
2.3 KiB
XML
<project basedir="." default="nbm" name="PMD netbeans module">
|
|
|
|
<import file="nbproject/build-impl.xml"/>
|
|
|
|
<property name="pmd.jar" value="pmd-3.2.jar"/>
|
|
<property name="VERSION" value="1.2"/>
|
|
|
|
<property file="build.ant.properties"/>
|
|
|
|
<property name="keystore" value="${user.home}/.pmdkeystore"/>
|
|
|
|
<target name="nblib" depends="init">
|
|
<mkdir dir="build/libclasses"/>
|
|
<javac srcdir="libsrc" destdir="build/libclasses" source="1.4" debug="${build.compiler.debug}" deprecation="${build.compiler.deprecation}">
|
|
<classpath>
|
|
<pathelement location="lib/${pmd.jar}"/>
|
|
</classpath>
|
|
</javac>
|
|
<copy todir="build/libclasses">
|
|
<fileset dir="libsrc" includes="**/*.xml"/>
|
|
</copy>
|
|
<mkdir dir="${cluster}/modules/ext"/>
|
|
<jar jarfile="${cluster}/modules/ext/nbpmdrules.jar" compress="false">
|
|
<fileset dir="build/libclasses"/>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="netbeans-extra" depends="init,nblib">
|
|
<mkdir dir="${cluster}/modules/ext"/>
|
|
<copy todir="${cluster}/modules/ext">
|
|
<fileset dir="lib">
|
|
<include name="${pmd.jar}"/>
|
|
<include name="saxpath-1.0-fcs.jar"/>
|
|
<include name="jakarta-oro-2.0.jar"/>
|
|
<include name="jaxen-core-1.0-fcs.jar"/>
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
<target depends="clean, nbm" description="Builds the distribution" name="distribution">
|
|
<fail unless="VERSION" message="Must define VERSION property with the version number for this distribution!"/>
|
|
<zip compress="true" destfile="build/pmd-netbeans40-${VERSION}-src.zip">
|
|
<zipfileset dir=".">
|
|
<include name="*.txt"/>
|
|
<include name="manifest.mf"/>
|
|
<include name="build.xml"/>
|
|
<include name="nbproject/*.*"/>
|
|
<include name="src/**/*"/>
|
|
<include name="lib/${pmd.jar}"/>
|
|
<include name="lib/saxpath-1.0-fcs.jar"/>
|
|
<include name="lib/jaxen-core-1.0-fcs.jar"/>
|
|
<include name="lib/jakarta-oro-2.0.jar"/>
|
|
</zipfileset>
|
|
<zipfileset dir="." fullpath="pmd.nbm" includes="build/pmd.nbm"/>
|
|
</zip>
|
|
<zip compress="true" destfile="build/pmd-netbeans40-${VERSION}-bin.zip">
|
|
<zipfileset dir=".">
|
|
<include name="*.txt"/>
|
|
</zipfileset>
|
|
<zipfileset dir="." fullpath="pmd.nbm" includes="build/pmd.nbm"/>
|
|
</zip>
|
|
</target>
|
|
|
|
</project>
|