This is an automated email from the ASF dual-hosted git repository. jhm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ant.git
commit 99bb33d67b1df68adaa1e6d31dde7ce3e722c3f9 Author: twogee <g.grigelio...@gmail.com> AuthorDate: Fri Dec 21 11:01:24 2018 +0100 Add HTML validation check, fix head in package.html --- check.xml | 22 +++++++++++++++++++++- .../org/apache/tools/ant/property/package.html | 3 +++ .../tools/ant/taskdefs/optional/sos/package.html | 3 +++ .../apache/tools/ant/types/resolver/package.html | 3 +++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/check.xml b/check.xml index 90655ed..495cf4b 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 4568499..871aa12 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 9f02518..ddb3dd3 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 ab75c0e..3921796 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.