2002-10-28 22:36:20 +00:00
|
|
|
<project basedir="." default="nbm" name="PMD netbeans module">
|
2003-04-18 01:16:05 +00:00
|
|
|
|
2004-12-21 21:43:51 +00:00
|
|
|
<property name="pmd.jar" value="pmd-2.1.jar"/>
|
|
|
|
<property name="VERSION" value="1.0"/>
|
2004-05-26 10:04:37 +00:00
|
|
|
|
2004-12-21 21:43:51 +00:00
|
|
|
<property file="build.ant.properties"/>
|
2003-04-18 01:16:05 +00:00
|
|
|
|
2004-12-21 21:43:51 +00:00
|
|
|
<property name="nbm.homepage" value="http://pmd.sourceforge.net/"/>
|
|
|
|
<property name="dist.base" value="www.netbeans.org/example"/> <!-- XXX what should be here? -->
|
|
|
|
<property name="nbm.module.author" value="Ole-Martin Mørk and Gunnlaugur Þór Briem"/>
|
|
|
|
<property name="license.file" value="LICENSE.txt"/>
|
|
|
|
<property name="keystore" value="${user.home}/.pmdkeystore"/>
|
|
|
|
|
|
|
|
<import file="../nbbuild/module-scripts/projectized.xml"/>
|
2004-05-27 01:06:50 +00:00
|
|
|
|
2004-12-21 21:43:51 +00:00
|
|
|
<target name="files-init" depends="basic-init">
|
|
|
|
<patternset id="module.files">
|
|
|
|
<include name="${module.jar}"/>
|
|
|
|
<include name="${javahelp.jar}" if="has.javahelp"/>
|
|
|
|
<include name="${nb.system.dir}/Modules/${code.name.base.dashes}.xml"/>
|
2004-05-27 01:06:50 +00:00
|
|
|
|
2004-12-21 21:43:51 +00:00
|
|
|
<include name="${nb.modules.dir}/ext/${pmd.jar}"/>
|
|
|
|
<include name="${nb.modules.dir}/ext/saxpath-1.0-fcs.jar"/>
|
|
|
|
<include name="${nb.modules.dir}/ext/jakarta-oro-2.0.jar"/>
|
|
|
|
<include name="${nb.modules.dir}/ext/jaxen-core-1.0-fcs.jar"/>
|
|
|
|
</patternset>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="netbeans-extra" depends="init">
|
|
|
|
<mkdir dir="${netbeans.dest.dir}/${cluster.dir}/${nb.modules.dir}/ext"/>
|
|
|
|
<copy todir="${netbeans.dest.dir}/${cluster.dir}/${nb.modules.dir}/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>
|
2004-05-27 01:06:50 +00:00
|
|
|
|
2003-02-15 19:06:50 +00:00
|
|
|
<target depends="clean, nbm" description="Builds the distribution" name="distribution">
|
2004-05-27 01:06:50 +00:00
|
|
|
<fail unless="VERSION" message="Must define VERSION property with the version number for this distribution!"/>
|
2004-12-21 21:43:51 +00:00
|
|
|
<zip compress="true" destfile="build/pmd-netbeans40-${VERSION}-src.zip">
|
2003-02-15 19:06:50 +00:00
|
|
|
<zipfileset dir=".">
|
|
|
|
<include name="*.txt"/>
|
|
|
|
<include name="build.xml"/>
|
|
|
|
<include name="src/**/*"/>
|
2003-08-12 23:23:42 +00:00
|
|
|
<include name="lib/${pmd.jar}"/>
|
2003-03-24 22:28:38 +00:00
|
|
|
<include name="lib/saxpath-1.0-fcs.jar"/>
|
|
|
|
<include name="lib/jaxen-core-1.0-fcs.jar"/>
|
2003-03-31 21:57:17 +00:00
|
|
|
<include name="lib/jakarta-oro-2.0.jar"/>
|
2003-02-15 19:06:50 +00:00
|
|
|
<exclude name="**/.nbattrs"/>
|
|
|
|
</zipfileset>
|
2003-04-11 01:16:12 +00:00
|
|
|
<zipfileset dir="." fullpath="pmd.nbm" includes="build/pmd.nbm"/>
|
2003-02-15 19:06:50 +00:00
|
|
|
</zip>
|
2004-12-21 21:43:51 +00:00
|
|
|
<zip compress="true" destfile="build/pmd-netbeans40-${VERSION}-bin.zip">
|
2003-02-15 19:06:50 +00:00
|
|
|
<zipfileset dir=".">
|
|
|
|
<include name="*.txt"/>
|
|
|
|
</zipfileset>
|
2003-04-11 01:16:12 +00:00
|
|
|
<zipfileset dir="." fullpath="pmd.nbm" includes="build/pmd.nbm"/>
|
2003-02-15 19:06:50 +00:00
|
|
|
</zip>
|
2002-11-03 14:22:41 +00:00
|
|
|
</target>
|
2004-05-27 01:06:50 +00:00
|
|
|
|
2002-10-28 22:36:20 +00:00
|
|
|
</project>
|