summaryrefslogtreecommitdiff
path: root/check.xml
diff options
context:
space:
mode:
authortwogee <g.grigelionis@gmail.com>2018-12-21 11:01:24 +0100
committertwogee <g.grigelionis@gmail.com>2019-03-06 18:12:04 +0100
commit99bb33d67b1df68adaa1e6d31dde7ce3e722c3f9 (patch)
treeb3ff4ba95b3abed328e403d9a894ba875c659270 /check.xml
parentd01d88a19d59ac76753952c8cab4a444b2eb3f86 (diff)
downloadant-99bb33d67b1df68adaa1e6d31dde7ce3e722c3f9.tar.gz
Add HTML validation check, fix head in package.html
Diffstat (limited to 'check.xml')
-rw-r--r--check.xml22
1 files changed, 21 insertions, 1 deletions
diff --git a/check.xml b/check.xml
index 90655ed4f..495cf4b95 100644
--- a/check.xml
+++ b/check.xml
@@ -109,7 +109,7 @@
<!-- Simian -->
<property name="simian.version"
value="2.5.10"
- description="Which Version of Simian to use"/>
+ description="Which version of Simian to use"/>
<property name="simian.uri"
value="http://www.harukizaemon.com/simian/simian-${simian.version}.tar.gz"
description="Where to get Simian"/>
@@ -128,6 +128,11 @@
value="${build.dir}/reports/owasp-dc"
description="Where to store the OWASP Dependency Check reports"/>
+ <!-- Nu HTML Validator -->
+ <property name="vnu.version"
+ value="18.11.5"
+ description="Which version of Nu HTML Validator to use"/>
+
<target name="init-ivy">
<property name="ivy.version" value="2.4.0"/>
<property name="ivy.jar.url" value="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar"/>
@@ -312,4 +317,19 @@
</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}"
+ inline="true" conf="default" pathid="nu.classpath"/>
+ <fileset dir="." id="html.files">
+ <include name="${src.dir}/**/*.html"/>
+ <include name="${manual.dir}/**/*.html"/>
+ <exclude name="${manual.dir}/index.html"/>
+ </fileset>
+ <pathconvert pathsep=" " property="html.list" refid="html.files"/>
+ <java classname="nu.validator.client.SimpleCommandLineValidator" classpathref="nu.classpath"
+ failonerror="true" taskname="vnu">
+ <arg line="--html --format text"/>
+ <arg line="${html.list}"/>
+ </java>
+ </target>
</project>