Author: nbubna
Date: Mon Aug 6 13:59:00 2007
New Revision: 563277
URL: http://svn.apache.org/viewvc?view=rev&rev=563277
Log:
add optional FindBugs task
Modified:
velocity/tools/branches/2.x/build.properties
velocity/tools/branches/2.x/build.xml
Modified: velocity/tools/branches/2.x/build.properties
URL:
http://svn.apache.org/viewvc/velocity/tools/branches/2.x/build.properties?view=diff&rev=563277&r1=563276&r2=563277
==============================================================================
--- velocity/tools/branches/2.x/build.properties (original)
+++ velocity/tools/branches/2.x/build.properties Mon Aug 6 13:59:00 2007
@@ -88,6 +88,9 @@
test.rst.dir=${test.build.dir}/rst
test.log.dir=${test.build.dir}/log
+# Needs to be configured with system location of findbugs for findbugs task
+findbugs.home=*unset*
+
#test switches
test.haltonerror=true
test.haltonfailure=true
Modified: velocity/tools/branches/2.x/build.xml
URL:
http://svn.apache.org/viewvc/velocity/tools/branches/2.x/build.xml?view=diff&rev=563277&r1=563276&r2=563277
==============================================================================
--- velocity/tools/branches/2.x/build.xml (original)
+++ velocity/tools/branches/2.x/build.xml Mon Aug 6 13:59:00 2007
@@ -106,9 +106,9 @@
<!-- construct classpath of all jars in lib repository -->
<path id="compile.classpath">
- <fileset dir="${lib.dir}">
+ <fileset dir="${lib.dir}">
<include name="**/*.jar"/>
- </fileset>
+ </fileset>
</path>
</target>
@@ -122,9 +122,9 @@
<!-- construct classpath of all jars needed to build docs -->
<path id="docs.classpath">
- <fileset dir="${lib.dir}">
+ <fileset dir="${lib.dir}">
<include name="**/*.jar"/>
- </fileset>
+ </fileset>
</path>
</target>
@@ -330,7 +330,7 @@
<!-- Build Velocity-Tools documentation -->
<target name="docs" depends="prepare.docs"
description="Generate documentation into ${docs.dir}">
- <taskdef name="dvsl" classname="org.apache.tools.dvsl.DVSLTask">
+ <taskdef name="dvsl" classname="org.apache.dvsl.DVSLTask">
<classpath refid="docs.classpath"/>
</taskdef>
@@ -597,6 +597,10 @@
<!-- Main test target -->
<target name="test" description="Test VelocityTools"
depends="test.generic,test.view">
+ </target>
+
+ <target name="findbugs" description="Run FindBugs" depends="jar">
+ <ant antfile="${basedir}/test.xml" target="findbugs" />
</target>
<!-- Generic tests -->