summaryrefslogtreecommitdiff
path: root/check.xml
diff options
context:
space:
mode:
authorJan Matèrne <jhm@apache.org>2019-03-09 14:37:26 +0100
committerJan Matèrne <jhm@apache.org>2019-03-09 14:37:26 +0100
commit1c97966dae313dcb822ca7763eda8fa9f7a8ca0f (patch)
treed9d1a951523184d662cd4cf27551dac99ebbc660 /check.xml
parent99bb33d67b1df68adaa1e6d31dde7ce3e722c3f9 (diff)
downloadant-1c97966dae313dcb822ca7763eda8fa9f7a8ca0f.tar.gz
htmlcheck: generate report file, consistent property names, meaningful target name
Diffstat (limited to 'check.xml')
-rw-r--r--check.xml20
1 files changed, 16 insertions, 4 deletions
diff --git a/check.xml b/check.xml
index 495cf4b95..c0bcd9d75 100644
--- a/check.xml
+++ b/check.xml
@@ -41,6 +41,9 @@
plain text files." It is available at https://www.harukizaemon.com/simian/
and is for free use in open source projects.
+ Nu HTML Validator by Mozilla Foundation checks html files against HTML5
+ specs and recommendations.
+
See external task page and homepages for more information.
</description>
@@ -129,9 +132,16 @@
description="Where to store the OWASP Dependency Check reports"/>
<!-- Nu HTML Validator -->
- <property name="vnu.version"
+ <property name="htmlcheck.nu.version"
value="18.11.5"
description="Which version of Nu HTML Validator to use"/>
+ <property name="htmlcheck.report.dir"
+ value="${build.dir}/html-check"
+ description="Directory where to store the HTML-Check report"/>
+ <property name="htmlcheck.report.file"
+ value="${htmlcheck.report.dir}/report.txt"
+ description="Report file of the HTML-Check"/>
+
<target name="init-ivy">
<property name="ivy.version" value="2.4.0"/>
@@ -317,8 +327,8 @@
</owasp:dependency-check>
</target>
- <target name="vnu" description="--> Runs the Nu HTML Validator" depends="init-ivy">
- <ivy:cachepath organisation="nu.validator" module="validator" revision="${vnu.version}"
+ <target name="html-check" description="--> Runs the Nu HTML Validator" depends="init-ivy">
+ <ivy:cachepath organisation="nu.validator" module="validator" revision="${htmlcheck.nu.version}"
inline="true" conf="default" pathid="nu.classpath"/>
<fileset dir="." id="html.files">
<include name="${src.dir}/**/*.html"/>
@@ -326,10 +336,12 @@
<exclude name="${manual.dir}/index.html"/>
</fileset>
<pathconvert pathsep=" " property="html.list" refid="html.files"/>
+ <mkdir dir="${htmlcheck.report.dir}"/>
<java classname="nu.validator.client.SimpleCommandLineValidator" classpathref="nu.classpath"
- failonerror="true" taskname="vnu">
+ taskname="html-check" output="${htmlcheck.report.file}">
<arg line="--html --format text"/>
<arg line="${html.list}"/>
</java>
+ <concat><file name="${htmlcheck.report.file}"/></concat>
</target>
</project>