antlets/pmd/src tasks.properties,NONE,1.1 xbuild.xml,NONE,1.1
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/antlets/pmd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2172/pmd/src
Added Files:
tasks.properties xbuild.xml
Log Message:
first try to integrate output from report generating antlets with forrest
--- NEW FILE: tasks.properties ---
#pmd tasks
pmd=net.sourceforge.pmd.ant.PMDTask
--- NEW FILE: xbuild.xml ---
<?xml version="1.0"?>
<!-- $Header: /cvsroot/metamorphosis/antlets/pmd/src/xbuild.xml,v 1.1 2004/02/16 21:05:39 homeijer Exp $ -->
<project default="pmd" name="pmd.antlet">
<dirname property="pmd.antlet.dir" file="${ant.file.pmd.antlet}"/>
<!-- Classpath for my jars -->
<path id="pmd.classpath">
<fileset dir="${pmd.antlet.dir}/lib/">
<include name="*.jar"/>
</fileset>
<!-- path refid="centipede.classpath"/ --> <!-- TODO: where to find this classpath -->
</path>
<taskdef file="${pmd.antlet.dir}/tasks.properties" classpathref="pmd.classpath"/>
<description>
Runs a set of static code analysis rules on some Java source code files
and generates a list of problems found.
</description>
<!-- Verbose output - names of files processed, rule counts, etc. -->
<property name="pmd.antlet.verbose" value="false"/>
<!-- A comma delimited list of ruleset files
('rulesets/basic.xml,rulesets/design.xml').
If you write your own ruleset files, you can put them on the
classpath and plug them in here. -->
<property name="pmd.antlet.rulesetfiles"
value="rulesets/basic.xml,rulesets/design.xml,rulesets/strings.xml,rulesets/unusedcode.xml"/>
<!-- Whether or not to fail the build if PMD finds any problems -->
<property name="pmd.antlet.failonerror" value="false"/>
<!-- Whether or not to print any problems found to the Ant log/console -->
<property name="pmd.antlet.printToConsole" value="false"/>
<property name="pmd.antlet.build.dir"
value="${project.build.dir}/pmd"/>
<mkdir dir="${pmd.antlet.build.dir}"/>
<!-- processes the input xml to add the dir info where there is a pmd tag -->
<target name="pmd"
description="Runs PMD and makes report.">
<echo message="Running PMD." />
<echo message="This may take a while, please wait..." />
<pmd reportFile="${pmd.antlet.build.dir}/pmd_raw.xml"
rulesetfiles="${pmd.antlet.rulesetfiles}"
format="xml"
failonerror="${pmd.antlet.failonerror}"
verbose="${pmd.antlet.verbose}"
printToConsole="${pmd.antlet.printToConsole}">
<fileset dir="${project.src.dir}">
<include name="**/*.java"/>
</fileset>
</pmd>
</target>
<target name="-pmd.antlet.init">
<property name="pmd.antlet.xdocs.dir" value="${forrest.antlet.generated.xdocs.dir}"/>
</target>
<target name="pmd-report" depends="pmd, -pmd.antlet.init"
description="Creates the xdoc pmd report.">
<!-- TODO: where to put the resulting xdoc so that forrest will pick it up. -->
<xslt in="${pmd.antlet.build.dir}/pmd_raw.xml"
out="${pmd.antlet.xdocs.dir}/pmd.xml"
style="${pmd.antlet.dir}/resources/stylesheets/pmd2docbook.xsl"/>
</target>
</project>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click