You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:13:20 UTC
[sling-htl-maven-plugin] annotated tag htl-maven-plugin-1.0.2
created (now dcd30c8)
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a change to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git.
at dcd30c8 (tag)
tagging e3e598d58dc70ae7570df324a4db68b953e59c24 (commit)
by Radu Cotescu
on Mon Oct 31 14:26:34 2016 +0000
- Log -----------------------------------------------------------------
htl-maven-plugin-1.0.2
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new 84657d3 SLING-6028 - Replace Sightly references with HTL in both code and documentation
new c26853e releng: updated dependencies
new f831fbc [maven-release-plugin] prepare release no
new df2650a [maven-release-plugin] prepare for next development iteration
new ea2ee46 [maven-release-plugin] prepare release htl-maven-plugin-1.0.0
new b4295b0 [maven-release-plugin] prepare for next development iteration
new d48c8cd releng: updated dependencies
new 9ff35d3 trivial: added README for the htl-maven-plugin
new 1853b99 trivial: added README for the htl-maven-plugin
new aa679fb SLING-6083 htl-maven-plugin should not fail when source directory not found
new 09ba49f compile phase is the default phase, no need to define it explicitly
new 00bc556 SLING-6084 htl-maven-plugin should provide skip parameter
new 14d21c8 SLING-6084 htl-maven-plugin should provide skip parameter
new 5ec0a06 SLING-6084 - htl-maven-plugin should provide skip parameter
new db39aaa [maven-release-plugin] prepare release htl-maven-plugin-1.0.2
new e3e598d [maven-release-plugin] copy for tag htl-maven-plugin-1.0.2
The 16 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].
[sling-htl-maven-plugin] 05/11: SLING-6083 htl-maven-plugin should
not fail when source directory not found
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit aa679fb88d45ac5290869cee84c789bd96309643
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Sep 30 14:35:14 2016 +0000
SLING-6083 htl-maven-plugin should not fail when source directory not found
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1762917 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/maven/htl/ValidateMojo.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
index 826b2a4..cdea4ad 100644
--- a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
+++ b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
@@ -104,8 +104,8 @@ public class ValidateMojo extends AbstractMojo {
sourceDirectory = new File(project.getBasedir(), sourceDirectory.getPath());
}
if (!sourceDirectory.exists()) {
- throw new MojoExecutionException(
- String.format("Configured sourceDirectory={%s} does not exist.", sourceDirectory.getAbsolutePath()));
+ getLog().info("Source directory does not exist, skipping.");
+ return;
}
if (!sourceDirectory.isDirectory()) {
throw new MojoExecutionException(
@@ -113,7 +113,7 @@ public class ValidateMojo extends AbstractMojo {
}
if ( !buildContext.hasDelta(sourceDirectory )) {
- getLog().info("No files found to validate, skipping");
+ getLog().info("No files found to validate, skipping.");
return;
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 11/11: [maven-release-plugin] copy for tag
htl-maven-plugin-1.0.2
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit e3e598d58dc70ae7570df324a4db68b953e59c24
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Mon Oct 31 14:26:34 2016 +0000
[maven-release-plugin] copy for tag htl-maven-plugin-1.0.2
git-svn-id: https://svn.apache.org/repos/asf/sling/tags/htl-maven-plugin-1.0.2@1767289 13f79535-47bb-0310-9956-ffa450edef68
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 01/11: [maven-release-plugin] prepare for
next development iteration
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit b4295b0e25e9671a2b6fab3b244a2d01bfe59ddb
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Mon Sep 5 15:42:30 2016 +0000
[maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1759316 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7fa8fa1..e48c382 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,16 +25,16 @@
</parent>
<artifactId>htl-maven-plugin</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Apache Sling HTL Maven Plugin</name>
<description>The Apache Sling HTL Maven Plugin provides support for validating HTML Template Language scripts from projects.</description>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/htl-maven-plugin-1.0.0</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/htl-maven-plugin-1.0.0</developerConnection>
- <url>http://svn.apache.org/viewvc/sling/tags/htl-maven-plugin-1.0.0</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin</developerConnection>
+ <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/htl-maven-plugin</url>
</scm>
<properties>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 04/11: trivial: added README for the
htl-maven-plugin
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit 1853b99afc16cdc02d06ce15c231095950f9090a
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Sep 6 10:42:14 2016 +0000
trivial: added README for the htl-maven-plugin
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1759407 13f79535-47bb-0310-9956-ffa450edef68
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 51cbae4..15d7ac4 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,7 @@ List of files to exclude, specified as fileset patterns which are relative to `s
* **Required:** No
* **User Property:** `excludes`
-<a name="param-failOnWarning"><code>failOnWarnings</code></a>:
+<a name="param-failOnWarnings"><code>failOnWarnings</code></a>:
If set to `true` it will fail the build on compiler warnings.
* **Type:** `boolean`
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 06/11: compile phase is the default phase,
no need to define it explicitly
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit 09ba49f8d990efa21904146dc21d4f2a4224a884
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Sep 30 14:41:47 2016 +0000
compile phase is the default phase, no need to define it explicitly
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1762921 13f79535-47bb-0310-9956-ffa450edef68
---
README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/README.md b/README.md
index 15d7ac4..4ded387 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,6 @@ The Apache Sling HTL Maven Plugin, M2Eclipse compatible, provides support for va
<goals>
<goal>validate</goal>
</goals>
- <phase>compile</phase>
</execution>
</executions>
</plugin>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 07/11: SLING-6084 htl-maven-plugin should
provide skip parameter
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit 00bc556d0982d97826a77fc53d5847af9ce0c18f
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Sep 30 14:49:54 2016 +0000
SLING-6084 htl-maven-plugin should provide skip parameter
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1762922 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/maven/htl/ValidateMojo.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
index cdea4ad..2a105a4 100644
--- a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
+++ b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
@@ -88,6 +88,12 @@ public class ValidateMojo extends AbstractMojo {
@Parameter(property = "failOnWarnings", defaultValue = "false")
private boolean failOnWarnings;
+ /**
+ * If set to "true" the validation will be skipped.
+ */
+ @Parameter
+ private boolean skip;
+
private boolean hasWarnings = false;
private boolean hasErrors = false;
private String processedIncludes = null;
@@ -97,6 +103,10 @@ public class ValidateMojo extends AbstractMojo {
private int sourceDirectoryLength = 0;
public void execute() throws MojoExecutionException, MojoFailureException {
+ if (skip) {
+ getLog().info("Skipping validation.");
+ return;
+ }
long start = System.currentTimeMillis();
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 09/11: SLING-6084 - htl-maven-plugin
should provide skip parameter
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit 5ec0a06913ae439594f1db50c4cda88950ae0ab0
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Mon Oct 31 14:18:15 2016 +0000
SLING-6084 - htl-maven-plugin should provide skip parameter
* allow the skip property to be set via command line (-Dhtl.skip=true)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1767285 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/maven/htl/ValidateMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
index 2a105a4..4155473 100644
--- a/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
+++ b/src/main/java/org/apache/sling/maven/htl/ValidateMojo.java
@@ -91,7 +91,7 @@ public class ValidateMojo extends AbstractMojo {
/**
* If set to "true" the validation will be skipped.
*/
- @Parameter
+ @Parameter(property = "htl.skip", defaultValue = "false")
private boolean skip;
private boolean hasWarnings = false;
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 03/11: trivial: added README for the
htl-maven-plugin
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit 9ff35d36be0bc95cba4de49fca2ee76b0b9d8d29
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Sep 6 10:40:23 2016 +0000
trivial: added README for the htl-maven-plugin
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1759406 13f79535-47bb-0310-9956-ffa450edef68
---
README.md | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..51cbae4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,78 @@
+Apache Sling HTL Maven Plugin
+====
+The Apache Sling HTL Maven Plugin, M2Eclipse compatible, provides support for validating HTML Template Language scripts from projects during build time.
+
+## Goals overview
+
+* [`htl:validate`](#htlvalidate) - validate the scripts from the build directory (`${project.build.sourceDirectory}`)
+
+## Usage
+```xml
+<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.
+
+### Optional Parameters
+
+|Name |Type |Since |Description |
+|---------------------------------------------|------------|---------|--------------------------------------------------------------------------------------------------|
+| [`sourceDirectory`](#param-sourceDirectory) | `String` | `1.0.0` | Defines the root folder where this goal expects to find Sightly scripts to validate. |
+| [`includes`](#param-includes) | `String[]` | `1.0.0` | List of files to include, specified as fileset patterns which are relative to `sourceDirectory`. |
+| [`excludes`](#param-excludes) | `String[]` | `1.0.0` | List of files to exclude, specified as fileset patterns which are relative to `sourceDirectory`. |
+| [`failOnWarnings`](#param-failOnWarnings) | `boolean` | `1.0.0` | If set to `true` it will fail the build on compiler warnings. |
+
+### Parameter Details
+
+<a name="param-sourceDirectory"><code>sourceDirectory</code></a>:
+
+Defines the root folder where this goal expects to find Sightly scripts to validate.
+* **Type:** `java.lang.String`
+* **Required:** No
+* **User Property:** `sourceDirectory`
+* **Default:** `${project.build.sourceDirectory}`
+
+<a name="param-includes"><code>includes</code></a>:
+
+List of files to include, specified as fileset patterns which are relative to `sourceDirectory`.
+* **Type:** `java.lang.String[]`
+* **Required:** No
+* **User Property:** `includes`
+* **Default:** `**/*.html`
+
+<a name="param-excludes"><code>excludes</code></a>:
+
+List of files to exclude, specified as fileset patterns which are relative to `sourceDirectory`.
+* **Type:** `java.lang.String[]`
+* **Required:** No
+* **User Property:** `excludes`
+
+<a name="param-failOnWarning"><code>failOnWarnings</code></a>:
+
+If set to `true` it will fail the build on compiler warnings.
+* **Type:** `boolean`
+* **Required:** No
+* **User Property:** `failOnWarnings`
+* **Default:** `false`
+
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 08/11: SLING-6084 htl-maven-plugin should
provide skip parameter
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit 14d21c8929d1666bbf527a6a728f551f654d5ce0
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Sep 30 15:02:42 2016 +0000
SLING-6084 htl-maven-plugin should provide skip parameter
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1762923 13f79535-47bb-0310-9956-ffa450edef68
---
README.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/README.md b/README.md
index 4ded387..4a745f3 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,7 @@ Validates HTL scripts syntax during the build process.
| [`includes`](#param-includes) | `String[]` | `1.0.0` | List of files to include, specified as fileset patterns which are relative to `sourceDirectory`. |
| [`excludes`](#param-excludes) | `String[]` | `1.0.0` | List of files to exclude, specified as fileset patterns which are relative to `sourceDirectory`. |
| [`failOnWarnings`](#param-failOnWarnings) | `boolean` | `1.0.0` | If set to `true` it will fail the build on compiler warnings. |
+| [`skip`](#param-skip) | `boolean` | `1.0.2` | If set to `true` the validation will be skipped. |
### Parameter Details
@@ -75,3 +76,10 @@ If set to `true` it will fail the build on compiler warnings.
* **User Property:** `failOnWarnings`
* **Default:** `false`
+<a name="param-skip"><code>skip</code></a>:
+
+If set to `true` the validation will be skipped.
+* **Type:** `boolean`
+* **Required:** No
+* **Default:** `false`
+
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 02/11: releng: updated dependencies
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit d48c8cdabcee1e48a070ce7f2c044ec3ff076eeb
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Mon Sep 5 15:57:11 2016 +0000
releng: updated dependencies
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1759318 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e48c382..349963e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,7 +46,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.scripting.sightly.compiler</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-htl-maven-plugin] 10/11: [maven-release-plugin] prepare
release htl-maven-plugin-1.0.2
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag htl-maven-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-htl-maven-plugin.git
commit db39aaa0c99b44b0356b94c7c17f6b3c58f086b2
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Mon Oct 31 14:26:20 2016 +0000
[maven-release-plugin] prepare release htl-maven-plugin-1.0.2
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin@1767288 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 349963e..01a977a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,16 +25,16 @@
</parent>
<artifactId>htl-maven-plugin</artifactId>
- <version>1.0.1-SNAPSHOT</version>
+ <version>1.0.2</version>
<packaging>maven-plugin</packaging>
<name>Apache Sling HTL Maven Plugin</name>
<description>The Apache Sling HTL Maven Plugin provides support for validating HTML Template Language scripts from projects.</description>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/htl-maven-plugin</developerConnection>
- <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/htl-maven-plugin</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/htl-maven-plugin-1.0.2</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/htl-maven-plugin-1.0.2</developerConnection>
+ <url>http://svn.apache.org/viewvc/sling/tags/htl-maven-plugin-1.0.2</url>
</scm>
<properties>
@@ -46,7 +46,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.scripting.sightly.compiler</artifactId>
- <version>1.0.1-SNAPSHOT</version>
+ <version>1.0.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.