summaryrefslogtreecommitdiff
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
parentd01d88a19d59ac76753952c8cab4a444b2eb3f86 (diff)
downloadant-99bb33d67b1df68adaa1e6d31dde7ce3e722c3f9.tar.gz
Add HTML validation check, fix head in package.html
-rw-r--r--check.xml22
-rw-r--r--src/main/org/apache/tools/ant/property/package.html3
-rw-r--r--src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html3
-rw-r--r--src/main/org/apache/tools/ant/types/resolver/package.html3
4 files changed, 30 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>
diff --git a/src/main/org/apache/tools/ant/property/package.html b/src/main/org/apache/tools/ant/property/package.html
index 456849994..871aa122e 100644
--- a/src/main/org/apache/tools/ant/property/package.html
+++ b/src/main/org/apache/tools/ant/property/package.html
@@ -16,6 +16,9 @@
limitations under the License.
-->
<html lang="en">
+<head>
+ <title>Helper classes for Ant properties</title>
+</head>
<body>
Contains helper classes for Ant properties.
</body>
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html b/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html
index 9f0251884..ddb3dd314 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html
@@ -16,6 +16,9 @@
limitations under the License.
-->
<html lang="en">
+<head>
+ <title>SourceOffSite SCM tasks</title>
+</head>
<body>
<p>
Ant tasks for working with a SourceOffSite source control system.
diff --git a/src/main/org/apache/tools/ant/types/resolver/package.html b/src/main/org/apache/tools/ant/types/resolver/package.html
index ab75c0e82..39217967c 100644
--- a/src/main/org/apache/tools/ant/types/resolver/package.html
+++ b/src/main/org/apache/tools/ant/types/resolver/package.html
@@ -16,6 +16,9 @@
limitations under the License.
-->
<html lang="en">
+<head>
+ <title>Integration with xml-commons resolver</title>
+</head>
<body>
Ant integration with xml-commons resolver.