Browse Source

Add HTML validation check, fix head in package.html

master
twogee 6 years ago
parent
commit
99bb33d67b
4 changed files with 30 additions and 1 deletions
  1. +21
    -1
      check.xml
  2. +3
    -0
      src/main/org/apache/tools/ant/property/package.html
  3. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html
  4. +3
    -0
      src/main/org/apache/tools/ant/types/resolver/package.html

+ 21
- 1
check.xml View File

@@ -109,7 +109,7 @@
<!-- Simian --> <!-- Simian -->
<property name="simian.version" <property name="simian.version"
value="2.5.10" value="2.5.10"
description="Which Version of Simian to use"/>
description="Which version of Simian to use"/>
<property name="simian.uri" <property name="simian.uri"
value="http://www.harukizaemon.com/simian/simian-${simian.version}.tar.gz" value="http://www.harukizaemon.com/simian/simian-${simian.version}.tar.gz"
description="Where to get Simian"/> description="Where to get Simian"/>
@@ -128,6 +128,11 @@
value="${build.dir}/reports/owasp-dc" value="${build.dir}/reports/owasp-dc"
description="Where to store the OWASP Dependency Check reports"/> 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"> <target name="init-ivy">
<property name="ivy.version" value="2.4.0"/> <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"/> <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> </owasp:dependency-check>
</target> </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> </project>

+ 3
- 0
src/main/org/apache/tools/ant/property/package.html View File

@@ -16,6 +16,9 @@
limitations under the License. limitations under the License.
--> -->
<html lang="en"> <html lang="en">
<head>
<title>Helper classes for Ant properties</title>
</head>
<body> <body>
Contains helper classes for Ant properties. Contains helper classes for Ant properties.
</body> </body>


+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/optional/sos/package.html View File

@@ -16,6 +16,9 @@
limitations under the License. limitations under the License.
--> -->
<html lang="en"> <html lang="en">
<head>
<title>SourceOffSite SCM tasks</title>
</head>
<body> <body>
<p> <p>
Ant tasks for working with a SourceOffSite source control system. Ant tasks for working with a SourceOffSite source control system.


+ 3
- 0
src/main/org/apache/tools/ant/types/resolver/package.html View File

@@ -16,6 +16,9 @@
limitations under the License. limitations under the License.
--> -->
<html lang="en"> <html lang="en">
<head>
<title>Integration with xml-commons resolver</title>
</head>
<body> <body>
Ant integration with xml-commons resolver. Ant integration with xml-commons resolver.




Loading…
Cancel
Save