1.1 --- a/tasklist.pmd/build.xml Mon Jan 03 17:43:01 2005 +0000
1.2 +++ b/tasklist.pmd/build.xml Mon Jan 03 17:47:41 2005 +0000
1.3 @@ -8,115 +8,47 @@
1.4 http://www.sun.com/
1.5
1.6 The Original Code is NetBeans. The Initial Developer of the Original
1.7 -Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
1.8 +Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
1.9 Microsystems, Inc. All Rights Reserved.
1.10 -->
1.11
1.12 <project name="tasklist/pmd" default="netbeans" basedir=".">
1.13 -
1.14 - <import file="../../nbbuild/default.xml"/>
1.15 -
1.16 - <property name="nb_all" value="../.."/>
1.17 + <property file="../version.properties"/>
1.18 + <property name="manifest.mf" location="manifest-subst.mf"/>
1.19 + <import file="../../nbbuild/templates/projectized.xml"/>
1.20
1.21 - <property file="../version.properties"/>
1.22 -
1.23 - <!-- TODO Remove this when the module is part of the full tasklist build -->
1.24 - <property name="build.compiler.debug" value="on"/>
1.25 -
1.26 - <target name="init" depends="default.init">
1.27 - <property name="nb-pmd" location="${nb_all}/contrib/pmd-nb-wrapper"/>
1.28 - <ant dir="${nb-pmd}" target="netbeans"/>
1.29 - <path id="pmd.cp">
1.30 - <pathelement location="${nb-pmd}/netbeans/modules/pmd.jar"/>
1.31 - <fileset dir="${nb-pmd}/netbeans/modules/ext">
1.32 - <include name="pmd-*.jar"/>
1.33 - </fileset>
1.34 - </path>
1.35 -
1.36 - <patternset id="tasklist/pmd.files">
1.37 - <include name="${nb.modules/eager.dir}/tasklist-pmd.jar"/>
1.38 - </patternset>
1.39 -
1.40 - <path id="cp">
1.41 - <pathelement location="${openide.dir}/${nb.lib.dir}/openide.jar"/>
1.42 - <pathelement location="${openide/loaders.dir}/${nb.lib.dir}/openide-loaders.jar"/>
1.43 - <pathelement path="${tasklist/api.dir}/${nb.modules/autoload.dir}/tasklist-api.jar"/>
1.44 - <pathelement path="${tasklist/core.dir}/${nb.modules/autoload.dir}/tasklist-core.jar"/>
1.45 - </path>
1.46 -
1.47 - </target>
1.48 -
1.49 - <target name="compile" depends="init">
1.50 - <javac srcdir="src" destdir="src" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}" source="1.4">
1.51 - <classpath>
1.52 - <path refid="cp"/>
1.53 - <!-- java src model -->
1.54 - <pathelement path="../../java/srcmodel/netbeans/modules/org-openide-src.jar"/>
1.55 - <!-- pmd -->
1.56 - <path refid="pmd.cp"/>
1.57 - </classpath>
1.58 - </javac>
1.59 - </target>
1.60 -
1.61 - <target name="jars" depends="compile">
1.62 - <mkdir dir="${netbeans.dest.dir}/${cluster.dir}/${nb.modules/eager.dir}"/>
1.63 + <target name="jar-prep" depends="projectized.jar-prep">
1.64 <filter token="BUILD_NUMBER_SUBST" value="${buildnumber}"/>
1.65 <filter filtersfile="../version.properties"/>
1.66 <filter token="tl.pmd.spec" value="${tl.pmd.spec}"/>
1.67 <copy file="manifest.mf" tofile="manifest-subst.mf" filtering="on"/>
1.68 - <jar jarfile="${netbeans.dest.dir}/${cluster.dir}/${nb.modules/eager.dir}/tasklist-pmd.jar"
1.69 - manifest="manifest-subst.mf"
1.70 - basedir="src"
1.71 - excludesfile="${nb_all}/nbbuild/standard-jar-excludes.txt"
1.72 - compress="false">
1.73 - </jar>
1.74 - </target>
1.75 -
1.76 - <target name="netbeans" depends="jars">
1.77 - <genlist outputfiledir="${netbeans.dest.dir}/${cluster.dir}" module="${nb.modules/eager.dir}/tasklist-pmd.jar">
1.78 - <fileset dir="${netbeans.dest.dir}/${cluster.dir}">
1.79 - <patternset refID="tasklist/pmd.files"/>
1.80 - </fileset>
1.81 - </genlist>
1.82 - </target>
1.83 -
1.84 - <target name="nbm" depends="netbeans">
1.85 - <makenbm file="tasklist-pmd.nbm"
1.86 - module="${nb.modules/eager.dir}/tasklist-pmd.jar"
1.87 - productdir="${netbeans.dest.dir}/${cluster.dir}"
1.88 - homepage="http://tasklist.${homepage.base}/updates/tasklist-pmd.html"
1.89 - distribution="http://${dist.base}/tasklist-pmd.nbm"
1.90 - needsrestart="false">
1.91 - <license file="${license.file}"/>
1.92 - <signature keystore="${keystore}" storepass="${storepass}" alias="${nbm_alias}"/>
1.93 - </makenbm>
1.94 - </target>
1.95 -
1.96 - <target name="changelog">
1.97 - <style in="module-updates.xml" out="../www/updates/tasklist-pmd.html" style="../www/updates/updates.xsl"/>
1.98 </target>
1.99
1.100 -
1.101 - <target name="release"/>
1.102 - <target name="javahelp"/>
1.103 -
1.104 - <target name="clean" depends="init">
1.105 - <delete>
1.106 + <target name="changelog">
1.107 + <style in="module-updates.xml" out="../www/updates/tasklist-pmd.html"
1.108 + style="../www/updates/updates.xsl"/>
1.109 + </target>
1.110 +
1.111 + <target name="clean" depends="projectized.clean">
1.112 + <delete file="manifest-subst.mf"/>
1.113 + </target>
1.114 +
1.115 + <target name="pmd-check">
1.116 + <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask">
1.117 + <classpath>
1.118 + <fileset dir="C:\Programme\pmd-2.0\lib\">
1.119 + <include name="*.jar"></include>
1.120 + </fileset>
1.121 + </classpath>
1.122 + </taskdef>
1.123 + <pmd printtoconsole="true" shortfilenames="true"
1.124 + rulesetfiles="rulesets/imports.xml,
1.125 + rulesets/unusedcode.xml,
1.126 + rulesets/basic.xml">
1.127 + <formatter linkprefix="src/" type="html" tofile="pmd-report.html"/>
1.128 <fileset dir="src">
1.129 - <include name="**/*.class"/>
1.130 + <include name="**/*.java"/>
1.131 </fileset>
1.132 - <fileset dir="${netbeans.dest.dir}/${cluster.dir}">
1.133 - <patternset refID="tasklist/pmd.files"/>
1.134 - </fileset>
1.135 - </delete>
1.136 - <delete file="manifest-subst.mf"/>
1.137 - <delete file="tasklist-pmd.nbm"/>
1.138 - <delete dir="netbeans"/>
1.139 - <delete dir="Info"/>
1.140 - </target>
1.141 -
1.142 - <!-- This target will only work *inside* the IDE! -->
1.143 - <target name= "test" depends="jars" description="Test the module inside the running IDE." >
1.144 - <nbinstaller action="reinstall" module="netbeans/modules/eager/tasklist-pmd.jar"/>
1.145 + </pmd>
1.146 </target>
1.147 </project>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/tasklist.pmd/nbproject/project.properties Mon Jan 03 17:47:41 2005 +0000
2.3 @@ -0,0 +1,15 @@
2.4 +# Sun Public License Notice
2.5 +#
2.6 +# The contents of this file are subject to the Sun Public License
2.7 +# Version 1.0 (the "License"). You may not use this file except in
2.8 +# compliance with the License. A copy of the License is available at
2.9 +# http://www.sun.com/
2.10 +#
2.11 +# The Original Code is NetBeans. The Initial Developer of the Original
2.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
2.13 +# Microsystems, Inc. All Rights Reserved.
2.14 +
2.15 +cp.extra=${tasklist/core.dir}/${nb.modules.dir}/org-netbeans-modules-tasklist-core.jar:\
2.16 + ${tasklist/api.dir}/${nb.modules.dir}/org-netbeans-modules-tasklist-api.jar:\
2.17 + ../../libs/external/pmd-1.3.jar
2.18 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/tasklist.pmd/nbproject/project.xml Mon Jan 03 17:47:41 2005 +0000
3.3 @@ -0,0 +1,63 @@
3.4 +<?xml version="1.0" encoding="UTF-8"?>
3.5 +<!--
3.6 + Sun Public License Notice
3.7 +
3.8 +The contents of this file are subject to the Sun Public License
3.9 +Version 1.0 (the "License"). You may not use this file except in
3.10 +compliance with the License. A copy of the License is available at
3.11 +http://www.sun.com/
3.12 +
3.13 +The Original Code is NetBeans. The Initial Developer of the Original
3.14 +Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
3.15 +Microsystems, Inc. All Rights Reserved.
3.16 +-->
3.17 +<project xmlns="http://www.netbeans.org/ns/project/1">
3.18 + <type>org.netbeans.modules.apisupport.project</type>
3.19 + <configuration>
3.20 + <data xmlns="http://www.netbeans.org/ns/nb-module-project/1">
3.21 + <code-name-base>org.netbeans.modules.tasklist.html</code-name-base>
3.22 + <path>tasklist/html</path>
3.23 + <module-dependencies>
3.24 + <dependency>
3.25 + <code-name-base>org.openide</code-name-base>
3.26 + <build-prerequisite/>
3.27 + <compile-dependency/>
3.28 + <run-dependency>
3.29 + <release-version>1</release-version>
3.30 + <specification-version>4.47</specification-version>
3.31 + </run-dependency>
3.32 + </dependency>
3.33 + <dependency>
3.34 + <code-name-base>org.openide.loaders</code-name-base>
3.35 + <build-prerequisite/>
3.36 + <compile-dependency/>
3.37 + <run-dependency/>
3.38 + </dependency>
3.39 + <dependency>
3.40 + <code-name-base>org.openide.src</code-name-base>
3.41 + <build-prerequisite/>
3.42 + <compile-dependency/>
3.43 + <run-dependency>
3.44 + </run-dependency>
3.45 + </dependency>
3.46 + <dependency>
3.47 + <code-name-base>org.netbeans.modules.tasklist.core</code-name-base>
3.48 + <build-prerequisite/>
3.49 + <compile-dependency/>
3.50 + <run-dependency>
3.51 + <release-version>2</release-version>
3.52 + </run-dependency>
3.53 + </dependency>
3.54 + <dependency>
3.55 + <code-name-base>org.netbeans.tasklistapi</code-name-base>
3.56 + <build-prerequisite/>
3.57 + <compile-dependency/>
3.58 + <run-dependency>
3.59 + <release-version>1</release-version>
3.60 + </run-dependency>
3.61 + </dependency>
3.62 + </module-dependencies>
3.63 + <public-packages/>
3.64 + </data>
3.65 + </configuration>
3.66 +</project>