bwalding 2003/08/28 18:55:48
Added: src/plugins-build/findbugs plugin.jelly maven.xml
project.properties project.xml plugin.properties
Log:
First cut of a findbugs plugin. For the time being
* Won't create a report
* Will generate text output in your maven run
* Will require a monolithic (automatic) download of findbugs distribution
* We need to look at licensing (it's LGPL, but I repackaged the findbugs dist
will only be a minor issue at most). I have posted to findbugs list to
try and find out what versions of bcel / dom4j they use - then we can start to
disassemble the big dist into dependencies.
Revision Changes Path
1.1 maven/src/plugins-build/findbugs/plugin.jelly
Index: plugin.jelly
===================================================================
<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
xmlns:define="jelly:define"
xmlns:doc="doc">
<goal name="create-findbugs-home">
<unzip src="${maven.repo.local}/findbugs/zips/findbugs-plugin-0.6.5.zip"
dest="${maven.build.dir}/findbugshome"/>
<!-- This keeps the findbugs-plugin-ver.zip fairly light -->
<!--copy file="${plugin.getDependencyPath('findbugs')}"
tofile="${maven.build.dir}/findbugshome/lib/findbugs.jar"/>
<copy file="${plugin.getDependencyPath('bcel')}"
tofile="${maven.build.dir}/findbugshome/lib/bcel.jar"/>
<copy file="${plugin.getDependencyPath('dom4j')}"
tofile="${maven.build.dir}/findbugshome/lib/dom4j-full.jar"/-->
</goal>
<goal name="maven-findbugs-plugin:report"
prereqs="create-findbugs-home,java:compile">
<ant:taskdef name="findbugs"
classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/>
<findbugs home="${maven.build.dir}/findbugshome"
output="text"
debug="false"><!--
outputFile="${maven.build.dir}/findbugs.xml"-->
<sourcePath path="${maven.compile.src.set}" />
<class location="${maven.build.dest}" />
<j:forEach var="lib" items="${pom.artifacts}">
<auxClasspath path="${maven.repo.local}/${lib.urlPath}"/>
</j:forEach>
</findbugs>
</goal>
</project>
1.1 maven/src/plugins-build/findbugs/maven.xml
Index: maven.xml
===================================================================
<project default="plugin:install">
</project>
1.1 maven/src/plugins-build/findbugs/project.properties
Index: project.properties
===================================================================
# -------------------------------------------------------------------
# P R O J E C T P R O P E R T I E S
# -------------------------------------------------------------------
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}
1.1 maven/src/plugins-build/findbugs/project.xml
Index: project.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<project>
<extend>${basedir}/../project.xml</extend>
<pomVersion>3</pomVersion>
<id>maven-findbugs-plugin</id>
<name>Maven FindBugs Plug-in</name>
<currentVersion>1.0-SNAPSHOT</currentVersion>
<description/>
<shortDescription>FindBugs report plugin</shortDescription>
<url>http://maven.apache.org/reference/plugins/findbugs/</url>
<siteDirectory>/www/maven.apache.org/reference/plugins/findbugs/</siteDirectory>
<repository>
<connection>scm:cvs:pserver:[EMAIL
PROTECTED]:/home/cvspublic:maven/src/plugins-build/findbugs/</connection>
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/findbugs/</url>
</repository>
<developers/>
<dependencies>
<dependency>
<id>findbugs:findbugs-plugin</id>
<version>0.6.5</version>
<type>zip</type>
</dependency>
<dependency>
<id>findbugs:findbugs-ant</id>
<version>0.6.5</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
</dependencies>
</project>
1.1 maven/src/plugins-build/findbugs/plugin.properties
Index: plugin.properties
===================================================================
# -------------------------------------------------------------------
# P L U G I N P R O P E R I E S
# -------------------------------------------------------------------
# LinkCheck report plugin.
# -------------------------------------------------------------------
maven.build.dir = ${basedir}/target
maven.docs.dest = ${maven.build.dir}/docs
maven.docs.outputencoding = ISO-8859-1
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]