When running the ant task (version 1.2 and 1.1.4) I get this error:
dependency-check:
[dependencycheck] Apr 28, 2014 11:35:59 AM org.owasp.dependencycheck.Engine analyzeDependencies
[dependencycheck] SEVERE: No documents exist
[dependencycheck]
[dependencycheck] Unable to continue dependency-check analysis.
Looking through the code I'm thinking the database must be empty. So I ran the command-line version against the same test project (it just has a few jars that I know have some findings against them)
It works great, as expected. So I copy over the database from the CLI into the ant project into "dependency-check-data" and it gets farther but still doesn't show anything in the report.
So stepping through the code, I see lots of analysis phases but no analyzers, on line 337 of Engine.java.
Here is my build.xml:
<project name="MyProject" default="dependency-check" basedir=".">
<description>
simple example build file
</description>
<!--<taskdef file="taskdefs.properties" classpath="/home/cmorris/.gradle/caches/modules-2/files-2.1/org.owasp/dependency-check-ant/1.2.0/838ed22d9bbbf236ad2a252e60258c3a14a3836a/dependency-check-ant-1.2.0.jar" />-->
<taskdef file="taskdefs.properties" classpath="dependency-check-ant-1.2.0.jar" />
<target name="dependency-check" description="Dependency-Check Analysis">
<dependencycheck applicationname="test"
reportoutputdirectory="${basedir}/reports/"
autoupdate="true"
reportformat="ALL">
<fileset dir="test">
<include name="**/*.jar"/>
</fileset>
</dependencycheck>
</target>
</project>