commit | 0b26a2bcfa4ed434364dded7eb69729ec8b55716 | [log] [tgz] |
---|---|---|
author | Stefan Seifert <sseifert@apache.org> | Fri Sep 30 14:35:14 2016 +0000 |
committer | Stefan Seifert <sseifert@apache.org> | Fri Sep 30 14:35:14 2016 +0000 |
tree | 878f588a702e74782f8329334114b690b44653d9 | |
parent | 47cd3bec77071c127e2f0f4e0333e340634cdc3b [diff] |
SLING-6083 htl-maven-plugin should not fail when source directory not found git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1762917 13f79535-47bb-0310-9956-ffa450edef68
The Apache Sling HTL Maven Plugin, M2Eclipse compatible, provides support for validating HTML Template Language scripts from projects during build time.
htl:validate
- validate the scripts from the build directory (${project.build.sourceDirectory}
)<build> <plugins> <plugin> <groupId>org.apache.sling</groupId> <artifactId>htl-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <id>validate-scripts</id> <goals> <goal>validate</goal> </goals> <phase>compile</phase> </execution> </executions> </plugin> </plugins> </build>
htl:validate
Full name: org.apache.sling:htl-maven-plugin:1.0.0:validate
Description: Validates HTL scripts syntax during the build process.
Name | Type | Since | Description |
---|---|---|---|
sourceDirectory | String | 1.0.0 | Defines the root folder where this goal expects to find Sightly scripts to validate. |
includes | String[] | 1.0.0 | List of files to include, specified as fileset patterns which are relative to sourceDirectory . |
excludes | String[] | 1.0.0 | List of files to exclude, specified as fileset patterns which are relative to sourceDirectory . |
failOnWarnings | boolean | 1.0.0 | If set to true it will fail the build on compiler warnings. |
sourceDirectory:
Defines the root folder where this goal expects to find Sightly scripts to validate.
java.lang.String
sourceDirectory
${project.build.sourceDirectory}
includes:
List of files to include, specified as fileset patterns which are relative to sourceDirectory
.
java.lang.String[]
includes
**/*.html
excludes:
List of files to exclude, specified as fileset patterns which are relative to sourceDirectory
.
java.lang.String[]
excludes
failOnWarnings:
If set to true
it will fail the build on compiler warnings.
boolean
failOnWarnings
false