You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2018/04/09 17:25:11 UTC
[archiva-redback-components-expression-evaluator] branch master
created (now c7154c6)
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git.
at c7154c6 upgrade versions
This branch includes the following new commits:
new ae76ae6 remove plexus naming prefix
new 70ec6a1 fix pom due to name changed
new 6293c70 move expression evaluator to o.a.a package namespace
new 99d38a2 no more need of plexus stuff
new f8ab035 move expression evaluator as a bundle
new d127b32 remove @version $Id$
new 26fe453 [MRM-1651] Improve OSGi support in expression-evaluator
new 3af5356 [MRM-1651] Improve OSGi statements by defining version ranges
new ad84c8b use StringBuilder rather than StringBuffer
new 761cddc configure svnpub for redback-components site
new 97b326d fix site deployment
new 8626c0c use a staged released parent
new dc849af test with last plexus-utils version
new 1e61e26 add missing <version>
new 67208cc [maven-release-plugin] prepare release expression-evaluator-2.0
new e6a3913 [maven-release-plugin] prepare for next development iteration
new 7120036 log4j 2.0-beta1
new 30ee675 use staged released parent
new e21a020 back to parent snapshot
new d135918 fix various path for deployment
new 6fbfc85 use released parent pom
new 0121e00 upgrade to last spring version
new 41fe524 upgrade plexus-utils version
new c17b83c use a staged released parent
new 345a165 [maven-release-plugin] prepare release expression-evaluator-2.1
new 6f7b317 [maven-release-plugin] prepare for next development iteration
new c32ca09 1.7
new adde823 use diamond
new c7154c6 upgrade versions
The 29 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
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 27/29: 1.7
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit c32ca0957713786c45953551b6f94f86e9be15fc
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sat Apr 5 12:03:56 2014 +0000
1.7
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1585080 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6a32f2a..b5825bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.2</version>
+ <version>2.3-SNAPSHOT</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 25/29:
[maven-release-plugin] prepare release expression-evaluator-2.1
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 345a165cbf4c8da5db54471dc4cff528d925eeaa
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Thu Jan 16 01:39:27 2014 +0000
[maven-release-plugin] prepare release expression-evaluator-2.1
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1558657 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index a36b5b5..9344c2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
- <version>2.1-SNAPSHOT</version>
+ <version>2.1</version>
<artifactId>expression-evaluator</artifactId>
<packaging>bundle</packaging>
<name>Expression Evaluator Components</name>
@@ -43,9 +43,9 @@
</distributionManagement>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</developerConnection>
- <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/expression-evaluator</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.1</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.1</developerConnection>
+ <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/tags/expression-evaluator-2.1</url>
</scm>
<dependencies>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 20/29: fix
various path for deployment
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit d1359186d725e6ecb909ea4b25cf3389f87ba401
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sun May 5 10:53:13 2013 +0000
fix various path for deployment
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1479288 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8cc3935..01797ab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -38,7 +38,7 @@
<distributionManagement>
<site>
<id>apache.website</id>
- <url>file://${user.home}/redback-components-site-deploy/${project.artifactId}</url>
+ <url>scm:svn:https://svn.apache.org/repos/asf/archiva/site-content/redback/components/${project.artifactId}</url>
</site>
</distributionManagement>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 10/29: configure
svnpub for redback-components site
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 761cddc218fa6ef401015d3f63eef335e790e103
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Tue Aug 28 20:19:24 2012 +0000
configure svnpub for redback-components site
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1378297 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 7 -------
1 file changed, 7 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6b1c14e..26dbc48 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,13 +34,6 @@
<url>http://archiva.apache.org/redback/components/${project.artifactId}</url>
- <distributionManagement>
- <site>
- <id>apache.website</id>
- <url>scp://people.apache.org/www/archiva.apache.org/redback/components/${project.artifactId}</url>
- </site>
- </distributionManagement>
-
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</developerConnection>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 29/29: upgrade
versions
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit c7154c60f3cd81e887a626e7ff7ed046ed0fb176
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sun Jul 20 23:58:37 2014 +0000
upgrade versions
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1612174 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b5825bc..51fbcf7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.3-SNAPSHOT</version>
+ <version>2.3</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 02/29: fix pom
due to name changed
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 70ec6a1aea8054cb30146c20991fb34966aa6e3c
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Tue Apr 17 21:50:07 2012 +0000
fix pom due to name changed
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1327300 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 3d16462..9bd39be 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,9 +25,9 @@
<version>2.0-SNAPSHOT</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
- <artifactId>plexus-expression-evaluator</artifactId>
+ <artifactId>expression-evaluator</artifactId>
<version>2.0-SNAPSHOT</version>
- <name>Plexus Expression Evaluator Components</name>
+ <name>Expression Evaluator Components</name>
<packaging>jar</packaging>
<url>http://archiva.apache.org/redback/components/${project.artifactId}</url>
@@ -40,9 +40,9 @@
</distributionManagement>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/plexus-expression-evaluator</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/plexus-expression-evaluator</developerConnection>
- <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/plexus-expression-evaluator</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</developerConnection>
+ <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/expression-evaluator</url>
</scm>
<dependencies>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 07/29: [MRM-1651]
Improve OSGi support in expression-evaluator
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 26fe45386df78b906dd11f50dd286b80f405edd1
Author: Jean-Baptiste Onofre <jb...@apache.org>
AuthorDate: Wed Aug 1 20:30:13 2012 +0000
[MRM-1651] Improve OSGi support in expression-evaluator
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1368241 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/pom.xml b/pom.xml
index 398b0f9..57b0f86 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,17 +18,20 @@
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
<modelVersion>4.0.0</modelVersion>
+
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
<version>2.0-SNAPSHOT</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
+
<artifactId>expression-evaluator</artifactId>
+ <packaging>bundle</packaging>
<version>2.0-SNAPSHOT</version>
<name>Expression Evaluator Components</name>
- <packaging>bundle</packaging>
<url>http://archiva.apache.org/redback/components/${project.artifactId}</url>
@@ -58,19 +61,6 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>org.apache.archiva.common.plexusbridge</Bundle-SymbolicName>
- <Bundle-Version>${project.version}</Bundle-Version>
- <Export-Package>
- org.apache.archiva.redback.components.evaluator;;version=${project.version},
- org.apache.archiva.redback.components.evaluator.sources;version=${project.version}
- </Export-Package>
- <Import-Package>
- org.codehaus.plexus.util
- </Import-Package>
- </instructions>
- </configuration>
</plugin>
</plugins>
</build>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 11/29: fix site
deployment
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 97b326d19b883faf77737bf080cb547fbb921767
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Aug 31 10:17:55 2012 +0000
fix site deployment
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1379403 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pom.xml b/pom.xml
index 26dbc48..7c0d1f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,6 +34,13 @@
<url>http://archiva.apache.org/redback/components/${project.artifactId}</url>
+ <distributionManagement>
+ <site>
+ <id>apache.website</id>
+ <url>file://${user.home}/redback-components-site-deploy/${project.artifactId}</url>
+ </site>
+ </distributionManagement>
+
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</developerConnection>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 06/29: remove
@version $Id$
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit d127b32c7d6e947f99c08b79233026369883fd9a
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Thu Jul 5 20:51:15 2012 +0000
remove @version $Id$
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1357900 13f79535-47bb-0310-9956-ffa450edef68
---
.../redback/components/evaluator/DefaultExpressionEvaluator.java | 2 +-
.../apache/archiva/redback/components/evaluator/EvaluatorException.java | 2 +-
.../archiva/redback/components/evaluator/ExpressionEvaluator.java | 2 +-
.../apache/archiva/redback/components/evaluator/ExpressionSource.java | 2 +-
.../components/evaluator/sources/PropertiesExpressionSource.java | 2 +-
.../components/evaluator/sources/SystemPropertyExpressionSource.java | 2 +-
.../components/evaluator/sources/DefaultExpressionEvaluatorTest.java | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
index dcfc5c1..c2242bf 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
@@ -31,7 +31,7 @@ import java.util.regex.Pattern;
* DefaultExpressionEvaluator
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
+ *
*/
public class DefaultExpressionEvaluator
implements ExpressionEvaluator
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/EvaluatorException.java b/src/main/java/org/apache/archiva/redback/components/evaluator/EvaluatorException.java
index 834bc3e..df186b8 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/EvaluatorException.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/EvaluatorException.java
@@ -23,7 +23,7 @@ package org.apache.archiva.redback.components.evaluator;
* EvaluatorException
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
+ *
*/
public class EvaluatorException
extends Exception
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
index 23ef5c7..5a76ed0 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
@@ -25,7 +25,7 @@ import java.util.List;
* ExpressionEvaluator
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
+ *
*/
public interface ExpressionEvaluator
{
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
index e0a036e..514d6dd 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
@@ -23,7 +23,7 @@ package org.apache.archiva.redback.components.evaluator;
* ExpressionSource
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
+ *
*/
public interface ExpressionSource
{
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
index 38cc73d..c58f172 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
@@ -27,7 +27,7 @@ import java.util.Properties;
* PropertiesExpressionSource
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
+ *
*
*/
public class PropertiesExpressionSource
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
index 4dae6dd..fb9442c 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
@@ -25,7 +25,7 @@ import org.apache.archiva.redback.components.evaluator.ExpressionSource;
* SystemPropertyExpressionSource
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
+ *
*/
public class SystemPropertyExpressionSource
implements ExpressionSource
diff --git a/src/test/java/org/apache/archiva/redback/components/evaluator/sources/DefaultExpressionEvaluatorTest.java b/src/test/java/org/apache/archiva/redback/components/evaluator/sources/DefaultExpressionEvaluatorTest.java
index 5f2a7f1..845303c 100644
--- a/src/test/java/org/apache/archiva/redback/components/evaluator/sources/DefaultExpressionEvaluatorTest.java
+++ b/src/test/java/org/apache/archiva/redback/components/evaluator/sources/DefaultExpressionEvaluatorTest.java
@@ -32,7 +32,7 @@ import java.util.Properties;
* DefaultExpressionEvaluatorTest
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
+ *
*/
public class DefaultExpressionEvaluatorTest
extends TestCase
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 17/29: log4j
2.0-beta1
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 7120036f8195a5fddac952df04976babfc03ac5a
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sat Sep 22 16:04:11 2012 +0000
log4j 2.0-beta1
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1388823 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3879c7a..8cc3935 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.0</version>
+ <version>2.1-SNAPSHOT</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 01/29: remove
plexus naming prefix
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit ae76ae6c11bb8328c6803fb4eb7b7aed95a97d74
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Tue Apr 17 21:47:27 2012 +0000
remove plexus naming prefix
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1327299 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 56 ++++++
.../evaluator/DefaultExpressionEvaluator.java | 162 ++++++++++++++++
.../plexus/evaluator/EvaluatorException.java | 50 +++++
.../plexus/evaluator/ExpressionEvaluator.java | 65 +++++++
.../plexus/evaluator/ExpressionSource.java | 37 ++++
.../sources/PropertiesExpressionSource.java | 67 +++++++
.../sources/SystemPropertyExpressionSource.java | 47 +++++
.../sources/DefaultExpressionEvaluatorTest.java | 212 +++++++++++++++++++++
8 files changed, 696 insertions(+)
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..3d16462
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.archiva.redback.components</groupId>
+ <artifactId>redback-components</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../redback-components-parent/pom.xml</relativePath>
+ </parent>
+ <artifactId>plexus-expression-evaluator</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <name>Plexus Expression Evaluator Components</name>
+ <packaging>jar</packaging>
+
+ <url>http://archiva.apache.org/redback/components/${project.artifactId}</url>
+
+ <distributionManagement>
+ <site>
+ <id>apache.website</id>
+ <url>scp://people.apache.org/www/archiva.apache.org/redback/components/${project.artifactId}</url>
+ </site>
+ </distributionManagement>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/plexus-expression-evaluator</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/plexus-expression-evaluator</developerConnection>
+ <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/plexus-expression-evaluator</url>
+ </scm>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>1.5.6</version>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/src/main/java/org/codehaus/plexus/evaluator/DefaultExpressionEvaluator.java b/src/main/java/org/codehaus/plexus/evaluator/DefaultExpressionEvaluator.java
new file mode 100644
index 0000000..ad3a5e5
--- /dev/null
+++ b/src/main/java/org/codehaus/plexus/evaluator/DefaultExpressionEvaluator.java
@@ -0,0 +1,162 @@
+package org.codehaus.plexus.evaluator;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.codehaus.plexus.util.StringUtils;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+/**
+ * DefaultExpressionEvaluator
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ * @plexus.component role="org.codehaus.plexus.evaluator.ExpressionEvaluator"
+ * role-hint="default"
+ * instantiation-strategy="per-lookup"
+ */
+public class DefaultExpressionEvaluator
+ implements ExpressionEvaluator
+{
+ private List expressionSources;
+
+ public DefaultExpressionEvaluator()
+ {
+ expressionSources = new ArrayList();
+ }
+
+ public void addExpressionSource( ExpressionSource source )
+ {
+ expressionSources.add( source );
+ }
+
+ public String expand( String str )
+ throws EvaluatorException
+ {
+ return recursiveExpand( str, new ArrayList() );
+ }
+
+ private String recursiveExpand( String str, List seenExpressions )
+ throws EvaluatorException
+ {
+ if ( StringUtils.isEmpty( str ) )
+ {
+ // Empty string. Fail fast.
+ return str;
+ }
+
+ if ( str.indexOf( "${" ) < 0 )
+ {
+ // Contains no potential expressions. Fail fast.
+ return str;
+ }
+
+ if ( this.expressionSources.isEmpty() )
+ {
+ throw new EvaluatorException( "Unable to expand expressions with empty ExpressionSource list." );
+ }
+
+ Pattern pat = Pattern.compile( "(?<=[^$]|^)(\\$\\{[^}]*\\})" );
+ Matcher mat = pat.matcher( str );
+ int offset = 0;
+ String expression;
+ String value;
+ StringBuffer expanded = new StringBuffer();
+
+ while ( mat.find( offset ) )
+ {
+ expression = mat.group( 1 );
+
+ if ( seenExpressions.contains( expression ) )
+ {
+ throw new EvaluatorException( "A recursive cycle has been detected with expression " + expression + "." );
+ }
+
+ seenExpressions.add( expression );
+
+ expanded.append( str.substring( offset, mat.start( 1 ) ) );
+ value = findValue( expression );
+ if ( value != null )
+ {
+ String resolvedValue = recursiveExpand( value, seenExpressions );
+ expanded.append( resolvedValue );
+ }
+ else
+ {
+ expanded.append( expression );
+ }
+ offset = mat.end( 1 );
+ }
+
+ expanded.append( str.substring( offset ) );
+
+ if ( expanded.indexOf( "$$" ) >= 0 )
+ {
+ // Special case for escaped content.
+ return expanded.toString().replaceAll( "\\$\\$", "\\$" );
+ }
+ else
+ {
+ // return expanded
+ return expanded.toString();
+ }
+ }
+
+ private String findValue( String expression )
+ {
+ String newExpression = expression.trim();
+ if ( newExpression.startsWith( "${" ) && newExpression.endsWith( "}" ) )
+ {
+ newExpression = newExpression.substring( 2, newExpression.length() - 1 );
+ }
+
+ if ( StringUtils.isEmpty( newExpression ) )
+ {
+ return null;
+ }
+
+ String value = null;
+ Iterator it = this.expressionSources.iterator();
+ while ( it.hasNext() )
+ {
+ ExpressionSource source = (ExpressionSource) it.next();
+ value = source.getExpressionValue( newExpression );
+ if ( value != null )
+ {
+ return value;
+ }
+ }
+ return null;
+ }
+
+ public List getExpressionSourceList()
+ {
+ return this.expressionSources;
+ }
+
+ public boolean removeExpressionSource( ExpressionSource source )
+ {
+ return this.expressionSources.remove( source );
+ }
+}
diff --git a/src/main/java/org/codehaus/plexus/evaluator/EvaluatorException.java b/src/main/java/org/codehaus/plexus/evaluator/EvaluatorException.java
new file mode 100644
index 0000000..8cade66
--- /dev/null
+++ b/src/main/java/org/codehaus/plexus/evaluator/EvaluatorException.java
@@ -0,0 +1,50 @@
+package org.codehaus.plexus.evaluator;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * EvaluatorException
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ */
+public class EvaluatorException
+ extends Exception
+{
+ public EvaluatorException()
+ {
+ super();
+ }
+
+ public EvaluatorException( String message, Throwable cause )
+ {
+ super( message, cause );
+ }
+
+ public EvaluatorException( String message )
+ {
+ super( message );
+ }
+
+ public EvaluatorException( Throwable cause )
+ {
+ super( cause );
+ }
+}
diff --git a/src/main/java/org/codehaus/plexus/evaluator/ExpressionEvaluator.java b/src/main/java/org/codehaus/plexus/evaluator/ExpressionEvaluator.java
new file mode 100644
index 0000000..5b38f72
--- /dev/null
+++ b/src/main/java/org/codehaus/plexus/evaluator/ExpressionEvaluator.java
@@ -0,0 +1,65 @@
+package org.codehaus.plexus.evaluator;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.util.List;
+
+/**
+ * ExpressionEvaluator
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ */
+public interface ExpressionEvaluator
+{
+ String ROLE = ExpressionEvaluator.class.getName();
+
+ /**
+ * Add a source for expression resolution.
+ *
+ * @param source the source to add.
+ */
+ void addExpressionSource( ExpressionSource source );
+
+ /**
+ * Evaluate a string, and expand expressions as needed.
+ *
+ * @param str the expression
+ * @return the value of the expression
+ * @throws EvaluatorException if a problem occurs whilst evaluating
+ */
+ String expand( String str )
+ throws EvaluatorException;
+
+ /**
+ * Get the List of expression sources.
+ *
+ * @return the list of expression sources.
+ */
+ List getExpressionSourceList();
+
+ /**
+ * Remove a specific expression source.
+ *
+ * @param source the source to remove.
+ * @return true if expression source was removed.
+ */
+ boolean removeExpressionSource( ExpressionSource source );
+}
diff --git a/src/main/java/org/codehaus/plexus/evaluator/ExpressionSource.java b/src/main/java/org/codehaus/plexus/evaluator/ExpressionSource.java
new file mode 100644
index 0000000..55a538e
--- /dev/null
+++ b/src/main/java/org/codehaus/plexus/evaluator/ExpressionSource.java
@@ -0,0 +1,37 @@
+package org.codehaus.plexus.evaluator;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * ExpressionSource
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ */
+public interface ExpressionSource
+{
+ /**
+ * Gets a value for a provided Expression.
+ *
+ * @param expression the expression to attempt to get a value for.
+ * @return the value for the expression, or null if no value found.
+ */
+ String getExpressionValue( String expression );
+}
diff --git a/src/main/java/org/codehaus/plexus/evaluator/sources/PropertiesExpressionSource.java b/src/main/java/org/codehaus/plexus/evaluator/sources/PropertiesExpressionSource.java
new file mode 100644
index 0000000..9cd1387
--- /dev/null
+++ b/src/main/java/org/codehaus/plexus/evaluator/sources/PropertiesExpressionSource.java
@@ -0,0 +1,67 @@
+package org.codehaus.plexus.evaluator.sources;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.codehaus.plexus.evaluator.ExpressionSource;
+
+import java.util.Properties;
+
+/**
+ * PropertiesExpressionSource
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ *
+ * @plexus.component role="org.codehaus.plexus.evaluator.ExpressionSource"
+ * role-hint="properties"
+ */
+public class PropertiesExpressionSource
+ implements ExpressionSource
+{
+ private Properties properties;
+
+ public String getExpressionValue( String expression )
+ {
+ if ( properties == null )
+ {
+ throw new IllegalStateException( "Properties object has not been initialized." );
+ }
+
+ try
+ {
+ return properties.getProperty( expression );
+ }
+ catch ( Exception e )
+ {
+ return null;
+ }
+ }
+
+ public Properties getProperties()
+ {
+ return properties;
+ }
+
+ public void setProperties( Properties properties )
+ {
+ this.properties = properties;
+ }
+
+}
diff --git a/src/main/java/org/codehaus/plexus/evaluator/sources/SystemPropertyExpressionSource.java b/src/main/java/org/codehaus/plexus/evaluator/sources/SystemPropertyExpressionSource.java
new file mode 100644
index 0000000..ddbba84
--- /dev/null
+++ b/src/main/java/org/codehaus/plexus/evaluator/sources/SystemPropertyExpressionSource.java
@@ -0,0 +1,47 @@
+package org.codehaus.plexus.evaluator.sources;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.codehaus.plexus.evaluator.ExpressionSource;
+
+/**
+ * SystemPropertyExpressionSource
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ *
+ * @plexus.component role="org.codehaus.plexus.evaluator.ExpressionSource"
+ * role-hint="sysprops"
+ */
+public class SystemPropertyExpressionSource
+ implements ExpressionSource
+{
+ public String getExpressionValue( String expression )
+ {
+ try
+ {
+ return System.getProperty( expression );
+ }
+ catch ( Exception e )
+ {
+ return null;
+ }
+ }
+}
diff --git a/src/test/java/org/codehaus/plexus/evaluator/sources/DefaultExpressionEvaluatorTest.java b/src/test/java/org/codehaus/plexus/evaluator/sources/DefaultExpressionEvaluatorTest.java
new file mode 100644
index 0000000..c6d15e2
--- /dev/null
+++ b/src/test/java/org/codehaus/plexus/evaluator/sources/DefaultExpressionEvaluatorTest.java
@@ -0,0 +1,212 @@
+package org.codehaus.plexus.evaluator.sources;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import junit.framework.TestCase;
+import org.codehaus.plexus.evaluator.DefaultExpressionEvaluator;
+import org.codehaus.plexus.evaluator.EvaluatorException;
+import org.codehaus.plexus.evaluator.ExpressionEvaluator;
+
+import java.util.Properties;
+
+/**
+ * DefaultExpressionEvaluatorTest
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ */
+public class DefaultExpressionEvaluatorTest
+ extends TestCase
+{
+ private ExpressionEvaluator evaluator;
+
+ protected void setUp()
+ throws Exception
+ {
+ super.setUp();
+
+ evaluator = new DefaultExpressionEvaluator();
+ }
+
+ public void testSimple()
+ throws EvaluatorException
+ {
+ Properties props = new Properties();
+ props.setProperty( "fruit", "apple" );
+
+ PropertiesExpressionSource propsSource = new PropertiesExpressionSource();
+ propsSource.setProperties( props );
+ evaluator.addExpressionSource( propsSource );
+
+ String expression = "${fruit}";
+ String expected = "apple";
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ public void testSimpleStartOfLine()
+ throws EvaluatorException
+ {
+ Properties props = new Properties();
+ props.setProperty( "fruit", "apple" );
+
+ PropertiesExpressionSource propsSource = new PropertiesExpressionSource();
+ propsSource.setProperties( props );
+ evaluator.addExpressionSource( propsSource );
+
+ String expression = "${fruit} is good for you.";
+ String expected = "apple is good for you.";
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ public void testSimpleEndOfLine()
+ throws EvaluatorException
+ {
+ Properties props = new Properties();
+ props.setProperty( "fruit", "apple" );
+
+ PropertiesExpressionSource propsSource = new PropertiesExpressionSource();
+ propsSource.setProperties( props );
+ evaluator.addExpressionSource( propsSource );
+
+ String expression = "watch out for the worm in the ${fruit}";
+ String expected = "watch out for the worm in the apple";
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ public void testSimpleSystemProperty()
+ throws EvaluatorException
+ {
+ evaluator.addExpressionSource( new SystemPropertyExpressionSource() );
+
+ String userHome = System.getProperty( "user.home" );
+ String expression = "My HOME directory is ${user.home}";
+ String expected = "My HOME directory is " + userHome;
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ public void testMultiExpression()
+ throws EvaluatorException
+ {
+ evaluator.addExpressionSource( new SystemPropertyExpressionSource() );
+
+ String userName = System.getProperty( "user.name" );
+ String userHome = System.getProperty( "user.home" );
+ String expression = "${user.name}'s home directory is ${user.home}";
+ String expected = userName + "'s home directory is " + userHome;
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ /**
+ * This use case was discovered by a user of archiva.
+ * The last expression doesn't get evaluated properly.
+ * <p/>
+ * The result (with the bug) was "2.0.4${prj.ver.suf}"
+ */
+ public void testMultiExpressionVersionBug()
+ throws EvaluatorException
+ {
+ Properties props = new Properties();
+ props.setProperty( "prj.ver.maj", "2" );
+ props.setProperty( "prj.ver.min", "0" );
+ props.setProperty( "prj.ver.inc", "4" );
+ props.setProperty( "prj.ver.suf", "-SNAPSHOT" );
+
+ PropertiesExpressionSource propsSource = new PropertiesExpressionSource();
+ propsSource.setProperties( props );
+ evaluator.addExpressionSource( propsSource );
+
+ String expression = "${prj.ver.maj}.${prj.ver.min}.${prj.ver.inc}${prj.ver.suf}";
+ String expected = "2.0.4-SNAPSHOT";
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ public void testEscaping()
+ throws EvaluatorException
+ {
+ evaluator.addExpressionSource( new SystemPropertyExpressionSource() );
+
+ String userName = System.getProperty( "user.name" );
+ String userHome = System.getProperty( "user.home" );
+ String expression = "${user.name}'s home directory is ${user.home} (fetched via $${user.home} expression)";
+ String expected = userName + "'s home directory is " + userHome + " (fetched via ${user.home} expression)";
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ public void testRecursiveSimple()
+ throws EvaluatorException
+ {
+ PropertiesExpressionSource propsource = new PropertiesExpressionSource();
+ Properties props = new Properties();
+
+ // Create intentional recursive lookup.
+ props.setProperty( "main.dir", "${target.dir}/classes" );
+ props.setProperty( "target.dir", "./target" );
+
+ propsource.setProperties( props );
+
+ evaluator.addExpressionSource( propsource );
+ evaluator.addExpressionSource( new SystemPropertyExpressionSource() );
+
+ String expression = "My classes directory is ${main.dir}";
+ String expected = "My classes directory is ./target/classes";
+
+ String actual = evaluator.expand( expression );
+ assertEquals( expected, actual );
+ }
+
+ public void testRecursiveCycle()
+ {
+ PropertiesExpressionSource propsource = new PropertiesExpressionSource();
+ Properties props = new Properties();
+
+ // Create intentional recursive lookup.
+ props.setProperty( "main.dir", "${test.dir}/target/classes" );
+ props.setProperty( "test.dir", "${main.dir}/target/test-classes" );
+
+ propsource.setProperties( props );
+
+ evaluator.addExpressionSource( propsource );
+ evaluator.addExpressionSource( new SystemPropertyExpressionSource() );
+
+ try
+ {
+ evaluator.expand( "My main dir is ${main.dir}" );
+ fail( "Should have thrown an EvaluatorException due to recursive cycle." );
+ }
+ catch ( EvaluatorException e )
+ {
+ // Expected path.
+ }
+ }
+}
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 13/29: test with
last plexus-utils version
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit dc849af67146415344c5001e6bb4345d7c6194a2
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Sep 21 12:53:26 2012 +0000
test with last plexus-utils version
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1388462 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 357dfbc..b842aa7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,7 +51,7 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
- <version>1.5.6</version>
+ <version>3.0.7</version>
</dependency>
</dependencies>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 14/29: add
missing
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 1e61e267cc65ccdd9e038ad1950c258b05b4540a
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Sep 21 13:01:32 2012 +0000
add missing <version>
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1388463 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/pom.xml b/pom.xml
index b842aa7..ebb9425 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,6 +28,7 @@
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
+ <version>2.0-SNAPSHOT</version>
<artifactId>expression-evaluator</artifactId>
<packaging>bundle</packaging>
<name>Expression Evaluator Components</name>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 18/29: use staged
released parent
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 30ee6751023a280cac6ad72b8b1139741a8d38ff
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sat Apr 27 07:41:50 2013 +0000
use staged released parent
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1476518 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8cc3935..e11e6ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.1-SNAPSHOT</version>
+ <version>2.1</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 23/29: upgrade
plexus-utils version
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 41fe524b0933d103c22882c0eb95a81961aa3729
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Nov 22 03:46:34 2013 +0000
upgrade plexus-utils version
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1544408 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 1 -
1 file changed, 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3f7886f..12986f8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,7 +52,6 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
- <version>3.0.7</version>
</dependency>
</dependencies>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 08/29: [MRM-1651]
Improve OSGi statements by defining version ranges
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 3af535637c3581819c0381715840143d17bb3034
Author: Jean-Baptiste Onofre <jb...@apache.org>
AuthorDate: Fri Aug 3 07:45:35 2012 +0000
[MRM-1651] Improve OSGi statements by defining version ranges
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1368818 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 57b0f86..6b1c14e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,6 @@
<artifactId>expression-evaluator</artifactId>
<packaging>bundle</packaging>
- <version>2.0-SNAPSHOT</version>
<name>Expression Evaluator Components</name>
<url>http://archiva.apache.org/redback/components/${project.artifactId}</url>
@@ -61,6 +60,17 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Export-Package>
+ org.apache.archiva.redback.components.evaluator*;version=${project.version};-split-package:=merge-first
+ </Export-Package>
+ <Import-Package>
+ org.codehaus.plexus.util;version="[1.5,2)",
+ org.slf4j;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
</plugin>
</plugins>
</build>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 22/29: upgrade to
last spring version
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 0121e005c7e344a9151440ace7e7379059914d4a
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Nov 22 03:46:17 2013 +0000
upgrade to last spring version
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1544407 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 385afe4..3f7886f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 21/29: use
released parent pom
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 6fbfc85f4a87ab265ff0729e024a67df0bfe4948
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Thu May 9 12:13:43 2013 +0000
use released parent pom
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1480598 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 01797ab..385afe4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.1-SNAPSHOT</version>
+ <version>2.1</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 19/29: back to
parent snapshot
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit e21a020a2d81000d971e456987d8186aad7e65f7
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sun Apr 28 09:44:00 2013 +0000
back to parent snapshot
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1476744 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e11e6ba..8cc3935 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.1</version>
+ <version>2.1-SNAPSHOT</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 28/29: use diamond
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit adde823b659b44b5d2dc654e76b886475985554b
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sat Apr 5 12:44:37 2014 +0000
use diamond
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1585087 13f79535-47bb-0310-9956-ffa450edef68
---
.../redback/components/evaluator/DefaultExpressionEvaluator.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
index 4bf8ae2..ba52fda 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
@@ -36,11 +36,11 @@ import java.util.regex.Pattern;
public class DefaultExpressionEvaluator
implements ExpressionEvaluator
{
- private List expressionSources;
+ private List<ExpressionSource> expressionSources;
public DefaultExpressionEvaluator()
{
- expressionSources = new ArrayList();
+ expressionSources = new ArrayList<>();
}
public void addExpressionSource( ExpressionSource source )
@@ -51,10 +51,10 @@ public class DefaultExpressionEvaluator
public String expand( String str )
throws EvaluatorException
{
- return recursiveExpand( str, new ArrayList() );
+ return recursiveExpand( str, new ArrayList<String>() );
}
- private String recursiveExpand( String str, List seenExpressions )
+ private String recursiveExpand( String str, List<String> seenExpressions )
throws EvaluatorException
{
if ( StringUtils.isEmpty( str ) )
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 15/29:
[maven-release-plugin] prepare release expression-evaluator-2.0
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 67208ccacfeea22ee810c3441500e69b65ee9ba8
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Sep 21 13:01:58 2012 +0000
[maven-release-plugin] prepare release expression-evaluator-2.0
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1388464 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index ebb9425..76a45ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
- <version>2.0-SNAPSHOT</version>
+ <version>2.0</version>
<artifactId>expression-evaluator</artifactId>
<packaging>bundle</packaging>
<name>Expression Evaluator Components</name>
@@ -43,9 +43,9 @@
</distributionManagement>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</developerConnection>
- <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/expression-evaluator</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.0</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.0</developerConnection>
+ <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/tags/expression-evaluator-2.0</url>
</scm>
<dependencies>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 24/29: use a
staged released parent
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit c17b83c933ae11e6211b006e5df2f0ac3f2a5692
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Thu Jan 16 01:24:49 2014 +0000
use a staged released parent
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1558639 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 12986f8..a36b5b5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.2-SNAPSHOT</version>
+ <version>2.2</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 04/29: no more
need of plexus stuff
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 99d38a2db68dc71edc681c3b359cd86b5e845df6
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sat Apr 21 15:30:40 2012 +0000
no more need of plexus stuff
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1328693 13f79535-47bb-0310-9956-ffa450edef68
---
.../components/evaluator/DefaultExpressionEvaluator.java | 3 ---
.../redback/components/evaluator/ExpressionEvaluator.java | 10 ++++------
.../archiva/redback/components/evaluator/ExpressionSource.java | 4 ++--
.../evaluator/sources/PropertiesExpressionSource.java | 2 --
.../evaluator/sources/SystemPropertyExpressionSource.java | 3 ---
5 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
index 976cfb8..dcfc5c1 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
@@ -32,9 +32,6 @@ import java.util.regex.Pattern;
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
- * @plexus.component role="org.apache.archiva.redback.components.evaluator.ExpressionEvaluator"
- * role-hint="default"
- * instantiation-strategy="per-lookup"
*/
public class DefaultExpressionEvaluator
implements ExpressionEvaluator
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
index cbbe9be..23ef5c7 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
@@ -22,18 +22,16 @@ package org.apache.archiva.redback.components.evaluator;
import java.util.List;
/**
- * ExpressionEvaluator
+ * ExpressionEvaluator
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
*/
public interface ExpressionEvaluator
{
- String ROLE = ExpressionEvaluator.class.getName();
-
/**
* Add a source for expression resolution.
- *
+ *
* @param source the source to add.
*/
void addExpressionSource( ExpressionSource source );
@@ -50,14 +48,14 @@ public interface ExpressionEvaluator
/**
* Get the List of expression sources.
- *
+ *
* @return the list of expression sources.
*/
List getExpressionSourceList();
/**
* Remove a specific expression source.
- *
+ *
* @param source the source to remove.
* @return true if expression source was removed.
*/
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
index 199227a..e0a036e 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
@@ -20,7 +20,7 @@ package org.apache.archiva.redback.components.evaluator;
*/
/**
- * ExpressionSource
+ * ExpressionSource
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
@@ -29,7 +29,7 @@ public interface ExpressionSource
{
/**
* Gets a value for a provided Expression.
- *
+ *
* @param expression the expression to attempt to get a value for.
* @return the value for the expression, or null if no value found.
*/
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
index 4ff95b7..38cc73d 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
@@ -29,8 +29,6 @@ import java.util.Properties;
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
*
- * @plexus.component role="org.apache.archiva.redback.components.evaluator.ExpressionSource"
- * role-hint="properties"
*/
public class PropertiesExpressionSource
implements ExpressionSource
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
index 5042a90..4dae6dd 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
@@ -26,9 +26,6 @@ import org.apache.archiva.redback.components.evaluator.ExpressionSource;
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
- *
- * @plexus.component role="org.apache.archiva.redback.components.evaluator.ExpressionSource"
- * role-hint="sysprops"
*/
public class SystemPropertyExpressionSource
implements ExpressionSource
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 09/29: use
StringBuilder rather than StringBuffer
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit ad84c8b064ba51dd7a0af1308a81e4ec66cc21cb
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Wed Aug 8 21:53:54 2012 +0000
use StringBuilder rather than StringBuffer
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1370986 13f79535-47bb-0310-9956-ffa450edef68
---
.../redback/components/evaluator/DefaultExpressionEvaluator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
index c2242bf..4bf8ae2 100644
--- a/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
@@ -79,7 +79,7 @@ public class DefaultExpressionEvaluator
int offset = 0;
String expression;
String value;
- StringBuffer expanded = new StringBuffer();
+ StringBuilder expanded = new StringBuilder();
while ( mat.find( offset ) )
{
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 12/29: use a
staged released parent
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 8626c0c5b6026124e71c87542e2ecae12182ac7c
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Sep 21 11:28:22 2012 +0000
use a staged released parent
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1388432 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7c0d1f2..357dfbc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
- <version>2.0-SNAPSHOT</version>
+ <version>2.0</version>
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 03/29: move
expression evaluator to o.a.a package namespace
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 6293c70cc048d0b17b9d54a628ad9d1a9d107d2a
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sat Apr 21 15:27:14 2012 +0000
move expression evaluator to o.a.a package namespace
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1328690 13f79535-47bb-0310-9956-ffa450edef68
---
.../components}/evaluator/DefaultExpressionEvaluator.java | 4 ++--
.../redback/components}/evaluator/EvaluatorException.java | 2 +-
.../redback/components}/evaluator/ExpressionEvaluator.java | 2 +-
.../redback/components}/evaluator/ExpressionSource.java | 2 +-
.../evaluator/sources/PropertiesExpressionSource.java | 6 +++---
.../evaluator/sources/SystemPropertyExpressionSource.java | 6 +++---
.../evaluator/sources/DefaultExpressionEvaluatorTest.java | 10 ++++++----
7 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/src/main/java/org/codehaus/plexus/evaluator/DefaultExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
similarity index 96%
rename from src/main/java/org/codehaus/plexus/evaluator/DefaultExpressionEvaluator.java
rename to src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
index ad3a5e5..976cfb8 100644
--- a/src/main/java/org/codehaus/plexus/evaluator/DefaultExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/DefaultExpressionEvaluator.java
@@ -1,4 +1,4 @@
-package org.codehaus.plexus.evaluator;
+package org.apache.archiva.redback.components.evaluator;
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -32,7 +32,7 @@ import java.util.regex.Pattern;
*
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
- * @plexus.component role="org.codehaus.plexus.evaluator.ExpressionEvaluator"
+ * @plexus.component role="org.apache.archiva.redback.components.evaluator.ExpressionEvaluator"
* role-hint="default"
* instantiation-strategy="per-lookup"
*/
diff --git a/src/main/java/org/codehaus/plexus/evaluator/EvaluatorException.java b/src/main/java/org/apache/archiva/redback/components/evaluator/EvaluatorException.java
similarity index 95%
rename from src/main/java/org/codehaus/plexus/evaluator/EvaluatorException.java
rename to src/main/java/org/apache/archiva/redback/components/evaluator/EvaluatorException.java
index 8cade66..834bc3e 100644
--- a/src/main/java/org/codehaus/plexus/evaluator/EvaluatorException.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/EvaluatorException.java
@@ -1,4 +1,4 @@
-package org.codehaus.plexus.evaluator;
+package org.apache.archiva.redback.components.evaluator;
/*
* Licensed to the Apache Software Foundation (ASF) under one
diff --git a/src/main/java/org/codehaus/plexus/evaluator/ExpressionEvaluator.java b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
similarity index 97%
rename from src/main/java/org/codehaus/plexus/evaluator/ExpressionEvaluator.java
rename to src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
index 5b38f72..cbbe9be 100644
--- a/src/main/java/org/codehaus/plexus/evaluator/ExpressionEvaluator.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionEvaluator.java
@@ -1,4 +1,4 @@
-package org.codehaus.plexus.evaluator;
+package org.apache.archiva.redback.components.evaluator;
/*
* Licensed to the Apache Software Foundation (ASF) under one
diff --git a/src/main/java/org/codehaus/plexus/evaluator/ExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
similarity index 95%
rename from src/main/java/org/codehaus/plexus/evaluator/ExpressionSource.java
rename to src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
index 55a538e..199227a 100644
--- a/src/main/java/org/codehaus/plexus/evaluator/ExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/ExpressionSource.java
@@ -1,4 +1,4 @@
-package org.codehaus.plexus.evaluator;
+package org.apache.archiva.redback.components.evaluator;
/*
* Licensed to the Apache Software Foundation (ASF) under one
diff --git a/src/main/java/org/codehaus/plexus/evaluator/sources/PropertiesExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
similarity index 87%
rename from src/main/java/org/codehaus/plexus/evaluator/sources/PropertiesExpressionSource.java
rename to src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
index 9cd1387..4ff95b7 100644
--- a/src/main/java/org/codehaus/plexus/evaluator/sources/PropertiesExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/PropertiesExpressionSource.java
@@ -1,4 +1,4 @@
-package org.codehaus.plexus.evaluator.sources;
+package org.apache.archiva.redback.components.evaluator.sources;
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +19,7 @@ package org.codehaus.plexus.evaluator.sources;
* under the License.
*/
-import org.codehaus.plexus.evaluator.ExpressionSource;
+import org.apache.archiva.redback.components.evaluator.ExpressionSource;
import java.util.Properties;
@@ -29,7 +29,7 @@ import java.util.Properties;
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
*
- * @plexus.component role="org.codehaus.plexus.evaluator.ExpressionSource"
+ * @plexus.component role="org.apache.archiva.redback.components.evaluator.ExpressionSource"
* role-hint="properties"
*/
public class PropertiesExpressionSource
diff --git a/src/main/java/org/codehaus/plexus/evaluator/sources/SystemPropertyExpressionSource.java b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
similarity index 84%
rename from src/main/java/org/codehaus/plexus/evaluator/sources/SystemPropertyExpressionSource.java
rename to src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
index ddbba84..5042a90 100644
--- a/src/main/java/org/codehaus/plexus/evaluator/sources/SystemPropertyExpressionSource.java
+++ b/src/main/java/org/apache/archiva/redback/components/evaluator/sources/SystemPropertyExpressionSource.java
@@ -1,4 +1,4 @@
-package org.codehaus.plexus.evaluator.sources;
+package org.apache.archiva.redback.components.evaluator.sources;
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -19,7 +19,7 @@ package org.codehaus.plexus.evaluator.sources;
* under the License.
*/
-import org.codehaus.plexus.evaluator.ExpressionSource;
+import org.apache.archiva.redback.components.evaluator.ExpressionSource;
/**
* SystemPropertyExpressionSource
@@ -27,7 +27,7 @@ import org.codehaus.plexus.evaluator.ExpressionSource;
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @version $Id$
*
- * @plexus.component role="org.codehaus.plexus.evaluator.ExpressionSource"
+ * @plexus.component role="org.apache.archiva.redback.components.evaluator.ExpressionSource"
* role-hint="sysprops"
*/
public class SystemPropertyExpressionSource
diff --git a/src/test/java/org/codehaus/plexus/evaluator/sources/DefaultExpressionEvaluatorTest.java b/src/test/java/org/apache/archiva/redback/components/evaluator/sources/DefaultExpressionEvaluatorTest.java
similarity index 93%
rename from src/test/java/org/codehaus/plexus/evaluator/sources/DefaultExpressionEvaluatorTest.java
rename to src/test/java/org/apache/archiva/redback/components/evaluator/sources/DefaultExpressionEvaluatorTest.java
index c6d15e2..5f2a7f1 100644
--- a/src/test/java/org/codehaus/plexus/evaluator/sources/DefaultExpressionEvaluatorTest.java
+++ b/src/test/java/org/apache/archiva/redback/components/evaluator/sources/DefaultExpressionEvaluatorTest.java
@@ -1,4 +1,4 @@
-package org.codehaus.plexus.evaluator.sources;
+package org.apache.archiva.redback.components.evaluator.sources;
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -20,9 +20,11 @@ package org.codehaus.plexus.evaluator.sources;
*/
import junit.framework.TestCase;
-import org.codehaus.plexus.evaluator.DefaultExpressionEvaluator;
-import org.codehaus.plexus.evaluator.EvaluatorException;
-import org.codehaus.plexus.evaluator.ExpressionEvaluator;
+import org.apache.archiva.redback.components.evaluator.DefaultExpressionEvaluator;
+import org.apache.archiva.redback.components.evaluator.EvaluatorException;
+import org.apache.archiva.redback.components.evaluator.sources.PropertiesExpressionSource;
+import org.apache.archiva.redback.components.evaluator.sources.SystemPropertyExpressionSource;
+import org.apache.archiva.redback.components.evaluator.ExpressionEvaluator;
import java.util.Properties;
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 05/29: move
expression evaluator as a bundle
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit f8ab0350b6711303c65edaf3de835643ec9722a9
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Mon Apr 23 20:45:13 2012 +0000
move expression evaluator as a bundle
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1329432 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9bd39be..398b0f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
<artifactId>expression-evaluator</artifactId>
<version>2.0-SNAPSHOT</version>
<name>Expression Evaluator Components</name>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<url>http://archiva.apache.org/redback/components/${project.artifactId}</url>
@@ -53,4 +53,26 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.apache.archiva.common.plexusbridge</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>
+ org.apache.archiva.redback.components.evaluator;;version=${project.version},
+ org.apache.archiva.redback.components.evaluator.sources;version=${project.version}
+ </Export-Package>
+ <Import-Package>
+ org.codehaus.plexus.util
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 26/29:
[maven-release-plugin] prepare for next development iteration
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit 6f7b3178f9007f9286f80fd85a2dad560f643a16
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Thu Jan 16 01:39:35 2014 +0000
[maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1558660 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9344c2a..6a32f2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
- <version>2.1</version>
+ <version>2.2-SNAPSHOT</version>
<artifactId>expression-evaluator</artifactId>
<packaging>bundle</packaging>
<name>Expression Evaluator Components</name>
@@ -43,9 +43,9 @@
</distributionManagement>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.1</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.1</developerConnection>
- <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/tags/expression-evaluator-2.1</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</developerConnection>
+ <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/expression-evaluator</url>
</scm>
<dependencies>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.
[archiva-redback-components-expression-evaluator] 16/29:
[maven-release-plugin] prepare for next development iteration
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-expression-evaluator.git
commit e6a39130641a75e5615398809141df3c6153f3b8
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Fri Sep 21 13:02:06 2012 +0000
[maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1388466 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 76a45ed..3879c7a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
<relativePath>../redback-components-parent/pom.xml</relativePath>
</parent>
- <version>2.0</version>
+ <version>2.1-SNAPSHOT</version>
<artifactId>expression-evaluator</artifactId>
<packaging>bundle</packaging>
<name>Expression Evaluator Components</name>
@@ -43,9 +43,9 @@
</distributionManagement>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.0</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/tags/expression-evaluator-2.0</developerConnection>
- <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/tags/expression-evaluator-2.0</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk/expression-evaluator</developerConnection>
+ <url>http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/expression-evaluator</url>
</scm>
<dependencies>
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.