Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2668 Integrate OWASP dependency checks as ant target - relax ant build if the OWASP dependency check tool is not installed

Sebastian Nagela965cd21fbc2
diff --git a/build.xml b/build.xml
index 2ca57d62e..65e8f3fce 100644
--- a/build.xml
+++ b/build.xml
@@ -620,11 +620,11 @@
<property name="dependency-check.home" value="${ivy.dir}/dependency-check-ant/"/>
<path id="dependency-check.path">
<pathelement location="${dependency-check.home}/dependency-check-ant.jar"/>
- <fileset dir="${dependency-check.home}/lib">
+ <fileset dir="${dependency-check.home}/lib" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
</path>
- <taskdef resource="dependency-check-taskdefs.properties">
+ <taskdef resource="dependency-check-taskdefs.properties" onerror="ignore">
<classpath refid="dependency-check.path" />
</taskdef>
<target name="report-vulnerabilities" description="--> check dependencies for security vulnerabilities">