Build failed in Jenkins: Tamaya-Extensions-Master #94

2016-10-30 Thread Apache Jenkins Server
See 

--
Started by upstream project "Tamaya-Master-branch" build number 793
originally caused by:
 Started by timer
Started by upstream project "Tamaya-Master-branch" build number 793
originally caused by:
 Started by timer
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting contributions.
Building remotely on ubuntu-us1 (Ubuntu ubuntu docker) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git # 
 > timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 3aca9112035e8b1ed70ecd739b03de15c32a3617 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3aca9112035e8b1ed70ecd739b03de15c32a3617
 > git rev-list 3aca9112035e8b1ed70ecd739b03de15c32a3617 # timeout=10
Parsing POMs
ERROR: Failed to parse POMs
java.io.IOException: remote file operation failed: 
 at 
hudson.remoting.Channel@5a41f05a:ubuntu-us1: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions instead of 
org.apache.tamaya.ext:tamaya-extensions-all, please verify your project 
structure @ line 24, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions-all:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 24, column 13
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions-all instead of 
org.apache.tamaya.ext:tamaya-extensions, please verify your project structure @ 
line 25, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 25, column 13

at hudson.FilePath.act(FilePath.java:1014)
at hudson.FilePath.act(FilePath.java:996)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:960)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions instead of 
org.apache.tamaya.ext:tamaya-extensions-all, please verify your project 
structure @ line 24, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions-all:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 24, column 13
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions-all instead of 
org.apache.tamaya.ext:tamaya-extensions, please verify your project structure @ 
line 25, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 25, column 13

at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1364)
at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1098)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2772)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:332)
 

Build failed in Jenkins: Tamaya-Extensions-Master #93

2016-10-30 Thread Apache Jenkins Server
See 

--
Started by timer
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting contributions.
Building remotely on H10 (Ubuntu yahoo-not-h2 ubuntu docker) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git # 
 > timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 3aca9112035e8b1ed70ecd739b03de15c32a3617 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3aca9112035e8b1ed70ecd739b03de15c32a3617
 > git rev-list 3aca9112035e8b1ed70ecd739b03de15c32a3617 # timeout=10
Parsing POMs
ERROR: Failed to parse POMs
java.io.IOException: remote file operation failed: 
 at 
hudson.remoting.Channel@2443561a:H10: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions instead of 
org.apache.tamaya.ext:tamaya-extensions-all, please verify your project 
structure @ line 24, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions-all:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 24, column 13
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions-all instead of 
org.apache.tamaya.ext:tamaya-extensions, please verify your project structure @ 
line 25, column 13

at hudson.FilePath.act(FilePath.java:1014)
at hudson.FilePath.act(FilePath.java:996)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:960)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions instead of 
org.apache.tamaya.ext:tamaya-extensions-all, please verify your project 
structure @ line 24, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions-all:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 24, column 13
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions-all instead of 
org.apache.tamaya.ext:tamaya-extensions, please verify your project structure @ 
line 25, column 13

at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1364)
at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1098)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2772)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:332)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at ..remote call to H10(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
   

Build failed in Jenkins: Tamaya-Sandbox-Master #78

2016-10-30 Thread Apache Jenkins Server
See 

Changes:

[anatole] TAMAYA-72; Added converter for jodatime Duration.

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting contributions.
Building remotely on H11 (Ubuntu yahoo-not-h2 ubuntu docker) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox.git # 
 > timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 6fa2b34a79143942757d89fe731f059c79a6a72f 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 6fa2b34a79143942757d89fe731f059c79a6a72f
 > git rev-list 041f5998509dce3893263cfc0262f3342cc9d6ea # timeout=10
Parsing POMs
ERROR: Failed to parse POMs
java.io.IOException: remote file operation failed: 
 at 
hudson.remoting.Channel@4a4055c:H11: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 

at hudson.FilePath.act(FilePath.java:1014)
at hudson.FilePath.act(FilePath.java:996)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:960)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 
[ERROR] Child module 
 of 
 does not exist 
@ 

at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1364)
at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1098)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2772)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at 

incubator-tamaya-sandbox git commit: TAMAYA-72; Added converter for jodatime Duration.

2016-10-30 Thread anatole
Repository: incubator-tamaya-sandbox
Updated Branches:
  refs/heads/master 041f59985 -> 6fa2b34a7


TAMAYA-72; Added converter for jodatime Duration.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/commit/6fa2b34a
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/tree/6fa2b34a
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/diff/6fa2b34a

Branch: refs/heads/master
Commit: 6fa2b34a79143942757d89fe731f059c79a6a72f
Parents: 041f599
Author: anatole 
Authored: Mon Oct 31 00:21:55 2016 +0100
Committer: anatole 
Committed: Mon Oct 31 00:21:55 2016 +0100

--
 .../apache/tamaya/jodatime/PeriodConverter.java |  4 +
 .../org.apache.tamaya.spi.PropertyConverter |  1 +
 .../tamaya/jodatime/DurationConverterTest.java  | 81 
 3 files changed, 86 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/6fa2b34a/jodatime/src/main/java/org/apache/tamaya/jodatime/PeriodConverter.java
--
diff --git 
a/jodatime/src/main/java/org/apache/tamaya/jodatime/PeriodConverter.java 
b/jodatime/src/main/java/org/apache/tamaya/jodatime/PeriodConverter.java
index a350d58..2b946e2 100644
--- a/jodatime/src/main/java/org/apache/tamaya/jodatime/PeriodConverter.java
+++ b/jodatime/src/main/java/org/apache/tamaya/jodatime/PeriodConverter.java
@@ -84,6 +84,10 @@ public class PeriodConverter implements 
PropertyConverter
 }
 
 private void addSupportedFormats(ConversionContext context) {
+if(context==null){
+// use case when called internally from DurationConverter.
+return;
+}
 context.addSupportedFormats(PeriodConverter.class, "PyYmMwWdDThHmMsS");
 context.addSupportedFormats(PeriodConverter.class, 
"P-mm-ddThh:mm:ss");
 }

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/6fa2b34a/jodatime/src/main/resources/META-INF/services/org.apache.tamaya.spi.PropertyConverter
--
diff --git 
a/jodatime/src/main/resources/META-INF/services/org.apache.tamaya.spi.PropertyConverter
 
b/jodatime/src/main/resources/META-INF/services/org.apache.tamaya.spi.PropertyConverter
index f312e9d..13c48c5 100644
--- 
a/jodatime/src/main/resources/META-INF/services/org.apache.tamaya.spi.PropertyConverter
+++ 
b/jodatime/src/main/resources/META-INF/services/org.apache.tamaya.spi.PropertyConverter
@@ -19,3 +19,4 @@
 org.apache.tamaya.jodatime.DateTimeConverter
 org.apache.tamaya.jodatime.DateTimeZoneConverter
 org.apache.tamaya.jodatime.PeriodConverter
+org.apache.tamaya.jodatime.DurationConverter

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/6fa2b34a/jodatime/src/test/java/org/apache/tamaya/jodatime/DurationConverterTest.java
--
diff --git 
a/jodatime/src/test/java/org/apache/tamaya/jodatime/DurationConverterTest.java 
b/jodatime/src/test/java/org/apache/tamaya/jodatime/DurationConverterTest.java
index f1141a6..39cf41b 100644
--- 
a/jodatime/src/test/java/org/apache/tamaya/jodatime/DurationConverterTest.java
+++ 
b/jodatime/src/test/java/org/apache/tamaya/jodatime/DurationConverterTest.java
@@ -18,5 +18,86 @@
  */
 package org.apache.tamaya.jodatime;
 
+import org.apache.tamaya.TypeLiteral;
+import org.apache.tamaya.spi.ConversionContext;
+import org.joda.time.Duration;
+import org.joda.time.format.ISOPeriodFormat;
+import org.joda.time.format.PeriodFormatter;
+import org.junit.Test;
+import org.mockito.Mockito;
+
+import static org.hamcrest.CoreMatchers.equalTo;
+import static org.hamcrest.CoreMatchers.notNullValue;
+import static org.hamcrest.CoreMatchers.nullValue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.hasItem;
+import static org.hamcrest.Matchers.hasSize;
+
 public class DurationConverterTest {
+
+/*
+ * I am aware of the 'Parameterized tests' feature of JUnit but
+ * decided not to use it. Oliver B. Fischer, 3th April 2015
+ */
+
+private static DurationConverter converter = new DurationConverter();
+
+private static PeriodFormatter FORMATTER = ISOPeriodFormat.standard();
+
+@Test
+public void canConvertPropertiesInAllSupportedFormats() {
+Object[][] inputResultPairs = {
+// Duration format
+{"PT72.345S", Duration.parse("PT72.345S")},
+// ISO format
+{"P1D", 
FORMATTER.parsePeriod("P1DT0H0M0S").toStandardDuration()},
+{"PT1S", 
FORMATTER.parsePeriod("P0DT0H0M1S").toStandardDuration()},
+
+// 

Build failed in Jenkins: Tamaya-Extensions-Master #92

2016-10-30 Thread Apache Jenkins Server
See 

Changes:

[plexus] Helper commit...

[anatole] TAMAYA-189: Moved format and injection modules into separate subtrees.

[anatole] TAMAYA-182: Streamlined/unified builder API and fixed some bugs 
popping

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting contributions.
Building remotely on H10 (Ubuntu yahoo-not-h2 ubuntu docker) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git # 
 > timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 3aca9112035e8b1ed70ecd739b03de15c32a3617 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3aca9112035e8b1ed70ecd739b03de15c32a3617
 > git rev-list 329dd0212923f39dda1b4d20d66e99a78a9ce623 # timeout=10
Parsing POMs
ERROR: Failed to parse POMs
java.io.IOException: remote file operation failed: 
 at 
hudson.remoting.Channel@2443561a:H10: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions instead of 
org.apache.tamaya.ext:tamaya-extensions-all, please verify your project 
structure @ line 24, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions-all:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 24, column 13
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions-all instead of 
org.apache.tamaya.ext:tamaya-extensions, please verify your project structure @ 
line 25, column 13

at hudson.FilePath.act(FilePath.java:1014)
at hudson.FilePath.act(FilePath.java:996)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:960)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.remoting.ProxyException: 
hudson.maven.MavenModuleSetBuild$MavenExecutionException: 
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions instead of 
org.apache.tamaya.ext:tamaya-extensions-all, please verify your project 
structure @ line 24, column 13
[FATAL] Non-resolvable parent POM: Could not find artifact 
org.apache.tamaya.ext:tamaya-extensions-all:pom:0.3-incubating-SNAPSHOT and 
'parent.relativePath' points at wrong local POM @ line 24, column 13
[WARNING] 'parent.relativePath' points at 
org.apache.tamaya.ext:tamaya-extensions-all instead of 
org.apache.tamaya.ext:tamaya-extensions, please verify your project structure @ 
line 25, column 13

at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1364)
at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1098)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2772)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:332)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at 

[13/15] incubator-tamaya-extensions git commit: TAMAYA-182: Streamlined/unified builder API and fixed some bugs popping up during testing.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/3aca9112/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/BasePropertySourceTest.java
--
diff --git 
a/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/BasePropertySourceTest.java
 
b/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/BasePropertySourceTest.java
new file mode 100644
index 000..96f1c7f
--- /dev/null
+++ 
b/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/BasePropertySourceTest.java
@@ -0,0 +1,106 @@
+/*
+ * 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.
+ */
+package org.apache.tamaya.spisupport;
+
+
+import org.apache.tamaya.spi.PropertySource;
+import org.apache.tamaya.spi.PropertyValue;
+import org.apache.tamaya.spi.PropertyValueBuilder;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
+public class BasePropertySourceTest {
+
+@Test
+public void testGetOrdinal() {
+
+PropertySource defaultPropertySource = new BasePropertySource(56) {
+
+@Override
+public String getName() {
+return "testWithDefault";
+}
+
+@Override
+public PropertyValue get(String key) {
+return null;
+}
+
+@Override
+public Map getProperties() {
+return Collections.emptyMap();
+}
+};
+
+Assert.assertEquals(56, defaultPropertySource.getOrdinal());
+Assert.assertEquals(1000, new 
OverriddenOrdinalPropertySource().getOrdinal());
+
+// propertySource with invalid ordinal
+Assert.assertEquals(1, new 
OverriddenInvalidOrdinalPropertySource().getOrdinal());
+}
+
+@Test
+public void testGet() {
+Assert.assertEquals("1000", new 
OverriddenOrdinalPropertySource().get(PropertySource.TAMAYA_ORDINAL).get(PropertySource.TAMAYA_ORDINAL));
+}
+
+private static class OverriddenOrdinalPropertySource extends 
BasePropertySource {
+
+private OverriddenOrdinalPropertySource() {
+super(250);
+}
+
+@Override
+public String getName() {
+return "overriddenOrdinal";
+}
+
+@Override
+public Map getProperties() {
+Map map = new HashMap<>(1);
+map.put(PropertySource.TAMAYA_ORDINAL, "1000");
+return map;
+}
+}
+
+private static class OverriddenInvalidOrdinalPropertySource extends 
BasePropertySource {
+
+private OverriddenInvalidOrdinalPropertySource() {
+super(1);
+}
+
+@Override
+public String getName() {
+return "overriddenInvalidOrdinal";
+}
+
+@Override
+public Map getProperties() {
+Map map = new HashMap<>(1);
+map.put(PropertySource.TAMAYA_ORDINAL, "invalid");
+return map;
+}
+}
+
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/3aca9112/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/C.java
--
diff --git 
a/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/C.java 
b/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/C.java
new file mode 100644
index 000..da581e6
--- /dev/null
+++ b/modules/spi-support/src/test/java/org/apache/tamaya/spisupport/C.java
@@ -0,0 +1,56 @@
+/*
+ * 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 

[09/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/formats/yaml/src/test/resources/configs/valid/test-with-prio.yaml
--
diff --git 
a/modules/formats/yaml/src/test/resources/configs/valid/test-with-prio.yaml 
b/modules/formats/yaml/src/test/resources/configs/valid/test-with-prio.yaml
new file mode 100644
index 000..05b5dbf
--- /dev/null
+++ b/modules/formats/yaml/src/test/resources/configs/valid/test-with-prio.yaml
@@ -0,0 +1,39 @@
+#
+# 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 current 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.
+#
+version: 1.0
+released: 2012-11-30
+
+# tamaya specifics...
+tamaya:
+ordinal: 16784
+
+# Connection parameters
+connection:
+url: jdbc:mysql://localhost:3306/db
+poolSize: 5
+
+# Protocols
+protocols:
+   - http
+   - https
+
+# Users
+users:
+tom: passwd
+bob: passwd
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/formats/yaml/src/test/resources/configs/valid/test.yaml
--
diff --git a/modules/formats/yaml/src/test/resources/configs/valid/test.yaml 
b/modules/formats/yaml/src/test/resources/configs/valid/test.yaml
new file mode 100644
index 000..697e9f3
--- /dev/null
+++ b/modules/formats/yaml/src/test/resources/configs/valid/test.yaml
@@ -0,0 +1,35 @@
+#
+# 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 current 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.
+#
+version: 1.0
+released: 2012-11-30
+
+# Connection parameters
+connection:
+url: jdbc:mysql://localhost:3306/db
+poolSize: 5
+
+# Protocols
+protocols:
+   - http
+   - https
+
+# Users
+users:
+tom: passwd
+bob: passwd
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/injection-api/pom.xml
--
diff --git a/modules/injection-api/pom.xml b/modules/injection-api/pom.xml
deleted file mode 100644
index 8db431e..000
--- a/modules/injection-api/pom.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-
-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/xsd/maven-4.0.0.xsd;>
-4.0.0
-
-
-org.apache.tamaya.ext
-tamaya-extensions
-0.3-incubating-SNAPSHOT
-..
-
-tamaya-injection-api
-Apache Tamaya Injection Support API
-bundle
-
-
-1.7
-
1.0
-1.0
-
-
-
-
-org.apache.tamaya
-tamaya-api
-${project.version}
-provided
-
-
-org.apache.geronimo.specs
-geronimo-atinject_1.0_spec
-${geronimo-atinject-1.0-spec.version}
-provided
-true
-
-
-org.apache.geronimo.specs
-geronimo-jcdi_1.1_spec
-${geronimo-jcdi-1.1-spec.version}
-provided
-true
-
-
-
-
-
-
-org.apache.felix
-maven-bundle-plugin
-true
-
-
-
-org.apache.tamaya.inject.api,
-org.apache.tamaya.inject.spi
-
-
-

[07/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/injection/cdi-se/pom.xml
--
diff --git a/modules/injection/cdi-se/pom.xml b/modules/injection/cdi-se/pom.xml
new file mode 100644
index 000..848b95e
--- /dev/null
+++ b/modules/injection/cdi-se/pom.xml
@@ -0,0 +1,212 @@
+
+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/xsd/maven-4.0.0.xsd;>
+4.0.0
+
+
+org.apache.tamaya.ext
+tamaya-injection-all
+0.3-incubating-SNAPSHOT
+..
+
+
+tamaya-cdi-se
+tamaya-integration
+Apache Tamaya Modules - Injection CDI (Direct)
+bundle
+
+
+1.6.2
+2.2.7.Final
+1.0
+
1.0
+
1.0
+0.5
+1.1.0
+
+
+
+
+
+org.jacoco
+jacoco-maven-plugin
+
+
+prepare-agent
+
+prepare-agent
+
+
+
+
+
+org.apache.felix
+maven-bundle-plugin
+true
+
+
+
+org.apache.tamaya.integration.cdi.config
+
+
+org.apache.tamaya.integration.cdi.internal
+
+
+
+
+
+
+
+
+junit
+junit
+test
+
+
+org.hamcrest
+java-hamcrest
+test
+
+
+
+org.apache.tamaya.ext
+tamaya-classloader-support
+${project.version}
+
+
+org.apache.tamaya.ext
+tamaya-spisupport
+${project.version}
+
+
+org.apache.tamaya
+tamaya-core
+${project.version}
+test
+
+
+org.apache.tamaya
+tamaya-api
+${project.version}
+provided
+
+
+org.apache.tamaya.ext
+tamaya-injection
+${project.version}
+
+
+org.apache.geronimo.specs
+geronimo-jcdi_1.1_spec
+${geronimo-jcdi-1.1-spec.version}
+provided
+
+
+org.apache.deltaspike.modules
+deltaspike-test-control-module-api
+${ds.version}
+test
+
+
+org.apache.deltaspike.modules
+deltaspike-test-control-module-impl
+${ds.version}
+test
+
+
+
+
+
+OWB
+
+true
+
+
+
+
+org.apache.geronimo.specs
+geronimo-atinject_1.0_spec
+${geronimo-atinject-1.0-spec.version}
+
+
+org.apache.geronimo.specs
+geronimo-interceptor_1.2_spec
+${geronimo-interceptor-1.2-spec.version}
+provided
+
+
+org.apache.geronimo.specs
+geronimo-annotation_1.2_spec
+1.0
+provided
+
+
+org.apache.geronimo.specs
+geronimo-el_2.2_spec
+1.0.2
+
+
+
+org.apache.openwebbeans
+openwebbeans-impl
+${owb.version}
+
+
+org.apache.openwebbeans
+openwebbeans-spi
+${owb.version}
+
+
+org.apache.openwebbeans
+openwebbeans-resource
+${owb.version}
+
+
+
+org.apache.bval
+bval-jsr303
+${bval.version}
+test
+
+
+org.apache.deltaspike.cdictrl
+deltaspike-cdictrl-owb
+${ds.version}
+test
+
+
+
+
+Weld
+
+
+org.jboss.weld.se
+weld-se
+${weld.version}
+
+
+org.apache.deltaspike.cdictrl
+   

[11/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/formats/common/src/test/java/org/apache/tamaya/format/InputStreamFactoryTest.java
--
diff --git 
a/modules/formats/common/src/test/java/org/apache/tamaya/format/InputStreamFactoryTest.java
 
b/modules/formats/common/src/test/java/org/apache/tamaya/format/InputStreamFactoryTest.java
new file mode 100644
index 000..c05da09
--- /dev/null
+++ 
b/modules/formats/common/src/test/java/org/apache/tamaya/format/InputStreamFactoryTest.java
@@ -0,0 +1,145 @@
+/*
+ * 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.
+ */
+package org.apache.tamaya.format;
+
+import org.junit.Test;
+import org.mockito.ArgumentCaptor;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+import static org.hamcrest.CoreMatchers.equalTo;
+import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.mockito.Mockito.doReturn;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+public class InputStreamFactoryTest {
+
+@Test(expected = NullPointerException.class)
+public void ctorEnforcesNonNullOriginal() throws IOException {
+new InputStreamFactory(null);
+}
+
+@Test
+public void givenStreamIsClosedInTryWithResourcesConstruct() throws 
Exception {
+InputStream stream = mock(InputStream.class);
+doReturn(34).when(stream).read();
+
+InputStreamFactory factory = new InputStreamFactory(stream);
+verify(stream).close();
+for (int i = 0; i < 100; i++) {
+try (InputStream in = factory.createInputStream()) {
+in.read();
+}
+}
+verify(stream).close();
+}
+
+@Test
+public void callToReadIsNotForwardedCallToWrapped() throws IOException {
+InputStream stream = new ByteArrayInputStream(new byte[]{1, 2, 3, 4});
+InputStreamFactory closer = new InputStreamFactory(stream);
+byte[] byteArray = new byte[4];
+for (int i = 0; i < 100; i++) {
+InputStream is = closer.createInputStream();
+assertThat(is.read(byteArray), equalTo(4));
+}
+}
+
+
+@Test
+public void callToSkipIsForwardedToWrapped() throws IOException {
+InputStream stream = new ByteArrayInputStream(new byte[]{1, 2, 3, 4});
+InputStreamFactory closer = new InputStreamFactory(stream);
+for (int i = 0; i < 100; i++) {
+InputStream is = closer.createInputStream();
+assertThat(is.skip(2L), equalTo(2L));
+}
+}
+
+
+@Test
+public void callToAvailableIsNotForwardedToWrapped() throws IOException {
+InputStream stream = new ByteArrayInputStream(new byte[]{1, 2, 3, 4});
+InputStreamFactory closer = new InputStreamFactory(stream);
+for (int i = 0; i < 100; i++) {
+InputStream is = closer.createInputStream();
+assertThat(is.available(), equalTo(4));
+}
+}
+
+@Test
+public void callToCloseIsNotForwardedToWrapped() throws IOException {
+InputStream stream = new ByteArrayInputStream(new byte[]{1, 2, 3, 4});
+InputStreamFactory closer = new InputStreamFactory(stream);
+for (int i = 0; i < 100; i++) {
+InputStream is = closer.createInputStream();
+is.close();
+}
+}
+
+@Test
+public void callToMarkIsNotForwardedToWrapped() throws IOException {
+//ArgumentCaptor captor = 
ArgumentCaptor.forClass(Integer.class);
+InputStream stream = new ByteArrayInputStream(new byte[]{1, 2, 3, 4});
+InputStreamFactory closer = new InputStreamFactory(stream);
+for (int i = 0; i < 100; i++) {
+InputStream is = closer.createInputStream();
+is.mark(2);
+}
+}
+
+
+@Test
+public void callToResetIsNotForwardedToWrapped() throws IOException {
+InputStream stream = new ByteArrayInputStream(new byte[]{1, 2, 3, 4});
+InputStreamFactory closer = new InputStreamFactory(stream);
+for (int i = 0; i < 

[05/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/injection/src/main/java/org/apache/tamaya/inject/internal/ConfiguredFieldImpl.java
--
diff --git 
a/modules/injection/src/main/java/org/apache/tamaya/inject/internal/ConfiguredFieldImpl.java
 
b/modules/injection/src/main/java/org/apache/tamaya/inject/internal/ConfiguredFieldImpl.java
deleted file mode 100644
index 64b0c95..000
--- 
a/modules/injection/src/main/java/org/apache/tamaya/inject/internal/ConfiguredFieldImpl.java
+++ /dev/null
@@ -1,170 +0,0 @@
-/*
- * 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.
- */
-package org.apache.tamaya.inject.internal;
-
-import org.apache.tamaya.ConfigException;
-import org.apache.tamaya.Configuration;
-import org.apache.tamaya.ConfigurationProvider;
-import org.apache.tamaya.TypeLiteral;
-import org.apache.tamaya.inject.api.DynamicValue;
-import org.apache.tamaya.inject.api.InjectionUtils;
-import org.apache.tamaya.inject.spi.ConfiguredField;
-
-import java.lang.reflect.Field;
-import java.security.AccessController;
-import java.security.PrivilegedExceptionAction;
-import java.util.Collection;
-import java.util.Objects;
-
-/**
- * Small class that contains and manages all information anc access to a 
configured field and a concrete instance current
- * it (referenced by a weak reference). It also implements all aspects current 
keys filtering, converting any applying the
- * final keys by reflection.
- */
-public class ConfiguredFieldImpl implements ConfiguredField{
-/**
- * The configured field instance.
- */
-protected final Field annotatedField;
-
-/**
- * Models a configured field and provides mechanisms for injection.
- *
- * @param field the field instance.
- */
-public ConfiguredFieldImpl(Field field) {
-Objects.requireNonNull(field);
-this.annotatedField = field;
-}
-
-
-/**
- * Evaluate the initial keys fromMap the configuration and applyChanges it 
to the field.
- *
- * @param target the target instance.
- * @throws ConfigException if evaluation or conversion failed.
- */
-public void configure(Object target, Configuration config) throws 
ConfigException {
-if (this.annotatedField.getType() == DynamicValue.class) {
-applyDynamicValue(target);
-} else {
-applyValue(target, config, false);
-}
-}
-
-
-/**
- * This method instantiates and assigns a dynamic value.
- *
- * @param target the target instance, not null.
- * @throws ConfigException if the configuration required could not be 
resolved or converted.
- */
-private void applyDynamicValue(Object target) throws ConfigException {
-Objects.requireNonNull(target);
-try {
-AccessController.doPrivileged(new 
PrivilegedExceptionAction() {
-@Override
-public Object run() throws Exception {
-annotatedField.setAccessible(true);
-return annotatedField;
-}
-});
-annotatedField.set(target,
-DefaultDynamicValue.of(annotatedField, 
ConfigurationProvider.getConfiguration()));
-} catch (Exception e) {
-throw new ConfigException("Failed to annotation configured field: 
" + this.annotatedField.getDeclaringClass()
-.getName() + '.' + annotatedField.getName(), e);
-}
-}
-
-/**
- * This method applies a configuration to the field.
- *
- * @param target  the target instance, not null.
- * @param config The configuration to be used.
- * @param resolve set to true, if expression resolution should be 
applied on the keys passed.
- * @throws ConfigException if the configuration required could not be 
resolved or converted.
- */
-private void applyValue(Object target, Configuration config, boolean 
resolve) throws ConfigException {
-Objects.requireNonNull(target);
-try {
-String[] retKey = new String[1];
-String configValue = 

[12/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
TAMAYA-189: Moved format and injection modules into separate subtrees.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/commit/fe7cd8f1
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/fe7cd8f1
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/fe7cd8f1

Branch: refs/heads/master
Commit: fe7cd8f1bb151a1891196e1899470e5f93abf7e9
Parents: c757d32
Author: anatole 
Authored: Sun Oct 30 22:57:31 2016 +0100
Committer: anatole 
Committed: Sun Oct 30 22:57:31 2016 +0100

--
 modules/formats/common/pom.xml  |  88 
 .../BaseFormatPropertySourceProvider.java   | 154 ++
 .../apache/tamaya/format/ConfigurationData.java | 206 
 .../tamaya/format/ConfigurationDataBuilder.java | 219 
 .../tamaya/format/ConfigurationFormat.java  | 103 
 .../tamaya/format/ConfigurationFormats.java | 187 +++
 .../format/FlattenedDefaultPropertySource.java  | 118 +
 .../tamaya/format/InputStreamFactory.java   |  89 
 .../format/formats/IniConfigurationFormat.java  |  95 
 .../tamaya/format/formats/PropertiesFormat.java |  71 +++
 .../format/formats/PropertiesXmlFormat.java |  69 +++
 .../tamaya/format/formats/package-info.java |  23 +
 .../org/apache/tamaya/format/package-info.java  |  28 ++
 ...org.apache.tamaya.format.ConfigurationFormat |  21 +
 .../tamaya/format/ConfigurationFormatsTest.java |  68 +++
 .../FlattenedDefaultPropertySourceTest.java |  98 
 .../tamaya/format/InputStreamFactoryTest.java   | 145 ++
 .../formats/common/src/test/resources/Test.ini  |  26 +
 .../common/src/test/resources/Test.properties   |  21 +
 modules/formats/json/pom.xml| 149 ++
 .../java/org/apache/tamaya/json/JSONFormat.java |  85 
 .../apache/tamaya/json/JSONPropertySource.java  | 149 ++
 .../org/apache/tamaya/json/JSONVisitor.java | 119 +
 ...org.apache.tamaya.format.ConfigurationFormat |  19 +
 .../json/CommonJSONTestCaseCollection.java  | 190 +++
 .../org/apache/tamaya/json/JSONFormatIT.java|  48 ++
 .../org/apache/tamaya/json/JSONFormatTest.java  |  75 +++
 .../tamaya/json/JSONPropertySourceTest.java |  56 +++
 .../json/src/test/resources/arquillian.xml  |  30 ++
 .../test/resources/configs/invalid/array.json   |  21 +
 .../resources/configs/invalid/empty-file.json   |  18 +
 .../configs/invalid/only-opening-bracket.json   |  19 +
 .../resources/configs/invalid/with-array.json   |  27 +
 .../test/resources/configs/valid/cyrillic.json  |  22 +
 .../configs/valid/empty-object-config.json  |  20 +
 .../valid/simple-flat-string-only-config.json   |  23 +
 .../simple-nested-string-only-config-1.json |  27 +
 .../simple-nested-string-only-config-2.json |  26 +
 .../configs/valid/with-explicit-priority.json   |  25 +
 modules/formats/pom.xml | 104 +---
 .../BaseFormatPropertySourceProvider.java   | 154 --
 .../apache/tamaya/format/ConfigurationData.java | 206 
 .../tamaya/format/ConfigurationDataBuilder.java | 219 
 .../tamaya/format/ConfigurationFormat.java  | 103 
 .../tamaya/format/ConfigurationFormats.java | 187 ---
 .../format/FlattenedDefaultPropertySource.java  | 118 -
 .../tamaya/format/InputStreamFactory.java   |  89 
 .../format/formats/IniConfigurationFormat.java  |  95 
 .../tamaya/format/formats/PropertiesFormat.java |  71 ---
 .../format/formats/PropertiesXmlFormat.java |  69 ---
 .../tamaya/format/formats/package-info.java |  23 -
 .../org/apache/tamaya/format/package-info.java  |  28 --
 ...org.apache.tamaya.format.ConfigurationFormat |  21 -
 .../tamaya/format/ConfigurationFormatsTest.java |  68 ---
 .../FlattenedDefaultPropertySourceTest.java |  98 
 .../tamaya/format/InputStreamFactoryTest.java   | 145 --
 modules/formats/src/test/resources/Test.ini |  26 -
 .../formats/src/test/resources/Test.properties  |  21 -
 modules/formats/yaml/pom.xml| 119 +
 .../java/org/apache/tamaya/json/YAMLFormat.java | 156 ++
 .../apache/tamaya/json/YAMLPropertySource.java  | 100 
 ...org.apache.tamaya.format.ConfigurationFormat |  19 +
 .../org/apache/tamaya/json/YAMLFormatTest.java  |  73 +++
 .../tamaya/json/YAMLPropertySourceTest.java |  54 ++
 .../test/resources/configs/valid/contact.yaml   |  46 ++
 .../resources/configs/valid/test-with-prio.yaml |  39 ++
 .../src/test/resources/configs/valid/test.yaml  |  35 ++
 modules/injection-api/pom.xml   |  81 ---
 .../tamaya/inject/api/BaseDynamicValue.java | 125 -
 .../org/apache/tamaya/inject/api/Config.java|  93 
 .../tamaya/inject/api/ConfigAutoInject.java |  36 --
 

[04/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/injection/src/test/java/org/apache/tamaya/inject/internal/DefaultDynamicValueTest.java
--
diff --git 
a/modules/injection/src/test/java/org/apache/tamaya/inject/internal/DefaultDynamicValueTest.java
 
b/modules/injection/src/test/java/org/apache/tamaya/inject/internal/DefaultDynamicValueTest.java
deleted file mode 100644
index dd16f36..000
--- 
a/modules/injection/src/test/java/org/apache/tamaya/inject/internal/DefaultDynamicValueTest.java
+++ /dev/null
@@ -1,315 +0,0 @@
-/*
- * 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.
- */
-package org.apache.tamaya.inject.internal;
-
-import org.apache.tamaya.ConfigException;
-import org.apache.tamaya.ConfigurationProvider;
-import org.apache.tamaya.builder.ConfigurationBuilder;
-import org.apache.tamaya.inject.api.ConfiguredItemSupplier;
-import org.apache.tamaya.inject.api.DynamicValue;
-import org.apache.tamaya.inject.api.Config;
-import org.apache.tamaya.inject.api.UpdatePolicy;
-import org.apache.tamaya.spi.ConversionContext;
-import org.apache.tamaya.spi.PropertyConverter;
-import org.apache.tamaya.spi.PropertySource;
-import org.apache.tamaya.spi.PropertyValue;
-import org.junit.Test;
-
-import org.apache.tamaya.Configuration;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.util.HashMap;
-import java.util.Map;
-
-import static org.junit.Assert.*;
-
-/**
- * Tests for {@link org.apache.tamaya.inject.internal.DefaultDynamicValue}.
- */
-public class DefaultDynamicValueTest {
-
-@Config("a")
-String myValue;
-
-@Config("a")
-String myValue2;
-
-@Config("a")
-void setterMethod(String value){
-
-}
-
-private PropertyChangeEvent event;
-
-private PropertyChangeListener consumer = new PropertyChangeListener() {
-@Override
-public void propertyChange(PropertyChangeEvent evt) {
-event = evt;
-}
-};
-
-private Map properties = new HashMap<>();
-private Configuration config = new 
ConfigurationBuilder().addPropertySources(
-new PropertySource() {
-@Override
-public int getOrdinal() {
-return 0;
-}
-
-@Override
-public String getName() {
-return "test";
-}
-
-@Override
-public PropertyValue get(String key) {
-return PropertyValue.of(key,properties.get(key),getName());
-}
-
-@Override
-public Map getProperties() {
-return properties;
-}
-
-@Override
-public boolean isScannable() {
-return false;
-}
-}
-).build();
-
-@Test
-public void testOf_Field() throws Exception {
-DynamicValue val = 
DefaultDynamicValue.of(getClass().getDeclaredField("myValue"),
-ConfigurationProvider.getConfiguration());
-assertNotNull(val);
-}
-
-@Test
-public void testOf_Method() throws Exception {
-DynamicValue val = 
DefaultDynamicValue.of(getClass().getDeclaredMethod("setterMethod", 
String.class),
-config);
-assertNotNull(val);
-}
-
-@Test
-public void testCommitAndGet() throws Exception {
-properties.put("a","aValue");
-DynamicValue val = 
DefaultDynamicValue.of(getClass().getDeclaredField("myValue"),
-config);
-assertNotNull(val);
-assertEquals("aValue",val.evaluateValue());
-}
-
-@Test
-public void testCommitAndGets() throws Exception {
-properties.put("a","aValue");
-DynamicValue val = 
DefaultDynamicValue.of(getClass().getDeclaredField("myValue"),
-config);
-val.setUpdatePolicy(UpdatePolicy.EXPLCIT);
-assertNotNull(val);
-assertEquals("aValue",val.evaluateValue());
-// change config
-val.get();
-this.properties.put("a", 

[06/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredTest.java
--
diff --git 
a/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredTest.java
 
b/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredTest.java
new file mode 100644
index 000..69e8ef9
--- /dev/null
+++ 
b/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredTest.java
@@ -0,0 +1,83 @@
+/*
+ * 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 current 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.
+ *
+ */
+package org.apache.tamaya.integration.cdi;
+
+import org.apache.deltaspike.testcontrol.api.TestControl;
+import org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner;
+import org.hamcrest.MatcherAssert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.inject.spi.CDI;
+import javax.inject.Singleton;
+
+import static org.hamcrest.core.Is.is;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+/**
+ * Tests for CDI integration.
+ */
+@RunWith(CdiTestRunner.class)
+@TestControl(startScopes = {ApplicationScoped.class, Singleton.class})
+public class ConfiguredTest{
+
+@Test
+public void test_Configuration_is_injected_correctly(){
+ConfiguredClass item = 
CDI.current().select(ConfiguredClass.class).get();
+System.out.println("");
+System.out.println(item);
+System.out.println("");
+double actual = 1234.5678;
+MatcherAssert.assertThat(item.getDoubleValue(), is(actual));
+}
+
+@Test
+public void test_Default_injections_are_accessible(){
+InjectedClass injectedClass =  
CDI.current().select(InjectedClass.class).get();
+System.out.println("");
+System.out.println(injectedClass);
+System.out.println("");
+assertNotNull(injectedClass.builder1);
+assertNotNull(injectedClass.builder2);
+assertNotNull(injectedClass.config);
+assertNotNull(injectedClass.configContext);
+}
+
+@Test
+public void test_Injected_builders_are_notSame(){
+InjectedClass injectedClass =  
CDI.current().select(InjectedClass.class).get();
+assertTrue(injectedClass.builder1 != injectedClass.builder2);
+}
+
+@Test
+public void test_Injected_configs_are_same(){
+InjectedClass injectedClass =  
CDI.current().select(InjectedClass.class).get();
+assertTrue(injectedClass.config == injectedClass.config2);
+}
+
+@Test
+public void test_Injected_configContexts_are_same(){
+InjectedClass injectedClass =  
CDI.current().select(InjectedClass.class).get();
+assertTrue(injectedClass.configContext == 
injectedClass.configContext2);
+}
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/InjectedClass.java
--
diff --git 
a/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/InjectedClass.java
 
b/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/InjectedClass.java
new file mode 100644
index 000..9b7bd23
--- /dev/null
+++ 
b/modules/injection/cdi-se/src/test/java/org/apache/tamaya/integration/cdi/InjectedClass.java
@@ -0,0 +1,62 @@
+/*
+ * 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 current the License at
+ *
+ *

[02/15] incubator-tamaya-extensions git commit: TAMAYA-189: Moved format and injection modules into separate subtrees.

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/json/src/test/resources/configs/valid/simple-nested-string-only-config-2.json
--
diff --git 
a/modules/json/src/test/resources/configs/valid/simple-nested-string-only-config-2.json
 
b/modules/json/src/test/resources/configs/valid/simple-nested-string-only-config-2.json
deleted file mode 100644
index b037174..000
--- 
a/modules/json/src/test/resources/configs/valid/simple-nested-string-only-config-2.json
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-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.
-*/
-{
-  "a" : "A",
-  "b" : {
-"o" : "O",
-"p" : "P"
-  },
-  "c" : "C"
-}

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/json/src/test/resources/configs/valid/with-explicit-priority.json
--
diff --git 
a/modules/json/src/test/resources/configs/valid/with-explicit-priority.json 
b/modules/json/src/test/resources/configs/valid/with-explicit-priority.json
deleted file mode 100644
index ed7acc2..000
--- a/modules/json/src/test/resources/configs/valid/with-explicit-priority.json
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-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.
-*/
-{
-  /*
-   some useful comment here
-   */
-  "tamaya.ordinal" : 16784,
-  "a" : "A" // another comment
-}

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/pom.xml
--
diff --git a/modules/pom.xml b/modules/pom.xml
index ffe708c..d243154 100644
--- a/modules/pom.xml
+++ b/modules/pom.xml
@@ -38,14 +38,12 @@ under the License.
 formats
 functions
 injection
-injection-api
-json
+mutable-config
 optional
 resolver
 resources
 spi-support
 spring
-yaml
 
 
 

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/fe7cd8f1/modules/yaml/pom.xml
--
diff --git a/modules/yaml/pom.xml b/modules/yaml/pom.xml
deleted file mode 100644
index 0a5a5d1..000
--- a/modules/yaml/pom.xml
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-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/xsd/maven-4.0.0.xsd;>
-4.0.0
-
-
-org.apache.tamaya.ext
-tamaya-extensions
-0.3-incubating-SNAPSHOT
-..
-
-tamaya-yaml
-Apache Tamaya YAML Support
-bundle
-2016
-
-
-1.7
-1.17
-
-
-
-
-org.apache.tamaya
-tamaya-api
-${project.version}
-provided
-
-
-
-org.apache.tamaya
-tamaya-core
-${project.version}
-provided
-
-
-
-org.apache.tamaya.ext
-tamaya-formats
-${project.version}
-
-
-org.yaml
-snakeyaml
-${snakeyaml.version}
-
-
-junit
-junit
-
-
-org.hamcrest
-java-hamcrest
-
-
-
-
-
-
-maven-dependency-plugin
-
-
-  

[01/15] incubator-tamaya-extensions git commit: Helper commit...

2016-10-30 Thread anatole
Repository: incubator-tamaya-extensions
Updated Branches:
  refs/heads/master 329dd0212 -> 3aca91120


Helper commit...


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/commit/c757d324
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/c757d324
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/c757d324

Branch: refs/heads/master
Commit: c757d324fa2e62da8f810ca2738b00a7654d0ce6
Parents: 329dd02
Author: Oliver B. Fischer 
Authored: Sun Oct 23 22:49:40 2016 +0200
Committer: Oliver B. Fischer 
Committed: Sun Oct 23 22:51:14 2016 +0200

--
 bla | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/c757d324/bla
--
diff --git a/bla b/bla
new file mode 100644
index 000..e69de29



Build failed in Jenkins: Tamaya-Extensions-Master #91

2016-10-30 Thread Apache Jenkins Server
See 

--
[...truncated 304 lines...]
[INFO] Exclude: **/*.md.vm
[INFO] Exclude: src/site/asciidoc/temp-properties-files-for-site/attributes.adoc
[INFO] Exclude: readme/**
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.0.1:jar (source-jar) < generate-sources @ 
tamaya-extensions <<<
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar (source-jar) @ tamaya-extensions ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.19.1:integration-test (default) @ 
tamaya-extensions ---
[INFO] No tests to run.
[JENKINS] Recording test results
[INFO] 
[INFO] --- maven-failsafe-plugin:2.19.1:verify (default) @ tamaya-extensions ---
[INFO] 
[JENKINS] Recording test results[INFO] --- maven-install-plugin:2.5.2:install 
(default-install) @ tamaya-extensions ---
[INFO] Installing 
 to 
/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/tamaya/ext/tamaya-extensions/0.3-incubating-SNAPSHOT/tamaya-extensions-0.3-incubating-SNAPSHOT.pom

[INFO] Installing 

 to 
/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/tamaya/ext/tamaya-extensions/0.3-incubating-SNAPSHOT/tamaya-extensions-0.3-incubating-SNAPSHOT-features.xml
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ 
tamaya-extensions ---
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ tamaya-extensions ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 74 implicit excludes (use -debug for more details).
[INFO] Exclude: **/*banner.txt
[INFO] Exclude: banner.txt
[INFO] Exclude: .git
[INFO] Exclude: derby.log
[INFO] Exclude: **/bootstrap-*
[INFO] Exclude: **/js/jquery-*
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.md
[INFO] Exclude: **/*.md.vm
[INFO] Exclude: src/site/asciidoc/temp-properties-files-for-site/attributes.adoc
[INFO] Exclude: readme/**
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ tamaya-extensions ---
[INFO] 
[INFO] --- karaf-maven-plugin:4.0.5:features-generate-descriptor (generate) @ 
tamaya-extensions ---
[INFO] Generating feature descriptor file 

[INFO] ...done!
[INFO] 
[INFO] >>> findbugs-maven-plugin:3.0.4:check (findbugs-analyze) > :findbugs @ 
tamaya-extensions >>>
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.4:findbugs (findbugs) @ tamaya-extensions 
---
[FINDBUGS] No report found for mojo findbugs
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.4:check (findbugs-analyze) < :findbugs @ 
tamaya-extensions <<<
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.4:check (findbugs-analyze) @ 
tamaya-extensions ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:check (verify-style) @ 
tamaya-extensions ---
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
tamaya-extensions ---
[INFO] 
[INFO] --- maven-javadoc-plugin:2.10.4:jar (attach-javadocs) @ 
tamaya-extensions ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable 
package
[INFO] 
[INFO] >>> maven-source-plugin:3.0.1:jar (source-jar) > generate-sources @ 
tamaya-extensions >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ 
tamaya-extensions ---
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ tamaya-extensions ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 74 implicit excludes (use -debug for more details).
[INFO] Exclude: **/*banner.txt
[INFO] Exclude: banner.txt
[INFO] Exclude: .git
[INFO] Exclude: derby.log
[INFO] Exclude: **/bootstrap-*
[INFO] Exclude: **/js/jquery-*
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.md
[INFO] Exclude: **/*.md.vm
[INFO] Exclude: src/site/asciidoc/temp-properties-files-for-site/attributes.adoc
[INFO] Exclude: readme/**
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.0.1:jar (source-jar) < generate-sources @ 
tamaya-extensions <<<
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar (source-jar) @ 

Jenkins build is back to normal : Tamaya-Site-Master #221

2016-10-30 Thread Apache Jenkins Server
See 



[09/10] incubator-tamaya-sandbox git commit: TAMAYA-182: Adapted modules to new builder patter changes, including tests. Fixed compile errors, or excluded modules from compilation (see root pom).

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/041f5998/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
--
diff --git 
a/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java 
b/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
deleted file mode 100644
index 07a72c5..000
--- 
a/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
+++ /dev/null
@@ -1,907 +0,0 @@
-/*
- * 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.
- */
-package org.apache.tamaya.builder;
-
-import org.apache.tamaya.ConfigException;
-import org.apache.tamaya.Configuration;
-import org.apache.tamaya.TypeLiteral;
-import org.apache.tamaya.builder.util.types.CustomTypeA;
-import org.apache.tamaya.builder.util.types.CustomTypeB;
-import org.apache.tamaya.builder.util.types.CustomTypeC;
-import org.apache.tamaya.spi.*;
-import org.hamcrest.CoreMatchers;
-import org.hamcrest.Matchers;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.mockito.Mockito;
-
-
-import java.io.IOException;
-import java.net.URL;
-
-import static java.util.Arrays.asList;
-import static 
org.apache.tamaya.builder.util.mockito.NotMockedAnswer.NOT_MOCKED_ANSWER;
-import static org.hamcrest.CoreMatchers.equalTo;
-import static org.hamcrest.CoreMatchers.nullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.hamcrest.Matchers.notNullValue;
-import static org.mockito.Matchers.anyString;
-import static org.mockito.Mockito.CALLS_REAL_METHODS;
-import static org.mockito.Mockito.doReturn;
-import static org.mockito.Mockito.doThrow;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-
-
-public class ConfigurationBuilderTest {
-
-@Test
-public void buildCanBuildEmptyConfiguration() {
-ConfigurationBuilder builder = new ConfigurationBuilder();
-
-Configuration config = builder.build();
-
-assertThat(config, notNullValue());
-}
-
-@Test(expected = IllegalStateException.class)
-public void buildCanBeCalledOnlyOnce() {
-ConfigurationBuilder builder = new ConfigurationBuilder();
-
-builder.build();
-builder.build();
-}
-
-/*
- * Tests for adding P r o p e r t y S o u r c e s
- */
-
-@Test(expected = NullPointerException.class)
-public void addPropertySourcesDoesNotAcceptNullValue() {
-ConfigurationBuilder builder = new ConfigurationBuilder();
-
-builder.addPropertySources((PropertySource[])null);
-}
-
-@Test(expected = IllegalStateException.class)
-public void propertySourceCanNotBeAddedAfterBuildingTheConfiguration() {
-PropertySource first = mock(PropertySource.class, NOT_MOCKED_ANSWER);
-
-doReturn("first").when(first).getName();
-doReturn(100).when(first).getOrdinal();
-
-ConfigurationBuilder builder = new 
ConfigurationBuilder().addPropertySources(first);
-
-builder.build();
-
-PropertySource second = mock(PropertySource.class, NOT_MOCKED_ANSWER);
-
-doReturn("second").when(first).getName();
-
-builder.addPropertySources(second);
-}
-
-@Test
-public void singleAddedPropertySourceIsUsed() {
-PropertySource source = mock(PropertySource.class, NOT_MOCKED_ANSWER);
-
-doReturn("one").when(source).getName();
-doReturn(PropertyValue.of("keyOfA","a", 
"test")).when(source).get("keyOfA");
-doReturn(100).when(source).getOrdinal();
-
-ConfigurationBuilder builder = new 
ConfigurationBuilder().addPropertySources(source);
-
-Configuration config = builder.build();
-
-String valueOfA = config.get("keyOfA");
-
-assertThat(valueOfA, notNullValue());
-assertThat(valueOfA, equalTo("a"));
-}
-
-@Test
-public void twoAddedPropertySourcesAreUsed() {
-PropertySource sourceOne = mock(PropertySource.class, 
NOT_MOCKED_ANSWER);
-
-doReturn("one").when(sourceOne).getName();
-

[05/10] incubator-tamaya-sandbox git commit: TAMAYA-182: Adapted modules to new builder patter changes, including tests. Fixed compile errors, or excluded modules from compilation (see root pom).

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/041f5998/tamaya-classloader-support/src/main/java/org/apache/tamaya/clsupport/ServiceContainer.java
--
diff --git 
a/tamaya-classloader-support/src/main/java/org/apache/tamaya/clsupport/ServiceContainer.java
 
b/tamaya-classloader-support/src/main/java/org/apache/tamaya/clsupport/ServiceContainer.java
deleted file mode 100644
index 23e73c0..000
--- 
a/tamaya-classloader-support/src/main/java/org/apache/tamaya/clsupport/ServiceContainer.java
+++ /dev/null
@@ -1,306 +0,0 @@
-/*
- * 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.
- */
-package org.apache.tamaya.clsupport;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.lang.ref.WeakReference;
-import java.net.URL;
-import java.security.AccessControlContext;
-import java.security.AccessController;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Enumeration;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.ServiceConfigurationError;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-/**
- * Classloader managed ServiceContainer.
- */
-class ServiceContainer {
-
-private static final Logger LOG = 
Logger.getLogger(ServiceContainer.class.getName());
-
-private static final String PREFIX = "META-INF/services/";
-
-// The access control context taken when the ServiceLoader is created
-private final AccessControlContext acc;
-
-private final WeakReference classLoaderRef;
-
-/**
- * List current services loaded using this classloader, per class.
- */
-private final Map> servicesLoaded = new 
ConcurrentHashMap<>();
-/**
- * The cached singletons for the given classloader.
- */
-private final Map singletons = new ConcurrentHashMap<>();
-
-/**
- * List current services loaded using this classloader, per class.
- */
-private final Map configsLoaded = new 
ConcurrentHashMap<>();
-
-ServiceContainer(ClassLoader classLoader) {
-acc = (System.getSecurityManager() != null) ? 
AccessController.getContext() : null;
-this.classLoaderRef = new WeakReference<>(classLoader);
-}
-
-public ClassLoader getClassLoader() {
-ClassLoader cl = classLoaderRef.get();
-if (cl == null) {
-throw new IllegalStateException("Classloader reference removed, 
not active anynire.");
-}
-return cl;
-}
-
-
-public  void loadServices(Class type,
- Collection 
preceedingContainers) {
-Map services = this.servicesLoaded.get(type);
-if (services == null) {
-services = new LinkedHashMap<>();
-this.servicesLoaded.put(type, services);
-}
-loop:
-for (URL config : getConfigs(type)) {
-for (ServiceContainer cont : preceedingContainers) {
-if (cont.getConfigs(type).contains(config)) {
-LOG.finer("Ignoring already loaded config: " + config);
-continue loop;
-}
-}
-Collection serviceNames = parse(type, config);
-for (String s : serviceNames) {
-for (ServiceContainer cont : preceedingContainers) {
-if (cont.containsService(type, s)) {
-LOG.finest("Ignoring duplicate service: " + s);
-}
-}
-LOG.info("Loading component: " + s);
-services.put(s, create(type, s));
-}
-}
-}
-
-private Collection getConfigs(Class type) {
-List result = this.configsLoaded.get(type);
-if (result == null) {
-ClassLoader cl = this.classLoaderRef.get();
-if (cl == null) {
-throw new IllegalStateException("CLassLoader dereferenced 
already.");
-}

[03/10] incubator-tamaya-sandbox git commit: TAMAYA-182: Adapted modules to new builder patter changes, including tests. Fixed compile errors, or excluded modules from compilation (see root pom).

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/041f5998/validation/src/main/java/org/apache/tamaya/validation/spi/ParameterModel.java
--
diff --git 
a/validation/src/main/java/org/apache/tamaya/validation/spi/ParameterModel.java 
b/validation/src/main/java/org/apache/tamaya/validation/spi/ParameterModel.java
new file mode 100644
index 000..f6acafe
--- /dev/null
+++ 
b/validation/src/main/java/org/apache/tamaya/validation/spi/ParameterModel.java
@@ -0,0 +1,242 @@
+/*
+ * 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.
+ */
+package org.apache.tamaya.validation.spi;
+
+import org.apache.tamaya.Configuration;
+import org.apache.tamaya.validation.ConfigModel;
+import org.apache.tamaya.validation.ModelTarget;
+import org.apache.tamaya.validation.Validation;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Objects;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+/**
+ * Default configuration Model for a configuration parameter.
+ */
+public class ParameterModel extends AbstractConfigModel {
+/** Optional regular expression for validating the value. */
+private final String regEx;
+/** The target type into which the value must be convertible. */
+private final Class type;
+
+/**
+ * Internal constructor.
+ * @param builder the builder, not null.
+ */
+protected ParameterModel(Builder builder) {
+super(builder.owner, builder.name, builder.required, 
builder.description);
+this.regEx = builder.regEx;
+this.type = builder.type;
+}
+
+@Override
+public ModelTarget getType() {
+return ModelTarget.Parameter;
+}
+
+/**
+ * Get the required parameter type.
+ *
+ * @return the type.
+ */
+public Class getParameterType() {
+return type;
+}
+
+@Override
+public Collection validate(Configuration config) {
+List result = new ArrayList<>(1);
+String configValue = config.get(getName());
+if (configValue == null && isRequired()) {
+result.add(Validation.ofMissing(this));
+}
+if (configValue != null && regEx != null) {
+if (!configValue.matches(regEx)) {
+result.add(Validation.ofError(this, "Config value not matching 
expression: " + regEx + ", was " +
+configValue));
+}
+}
+return result;
+}
+
+@Override
+public String toString() {
+StringBuilder b = new StringBuilder();
+b.append(getType()).append(": ").append(getName());
+if (isRequired()) {
+b.append(", required: ").append(isRequired());
+}
+if (regEx != null) {
+b.append(", expression: ").append(regEx);
+}
+return b.toString();
+}
+
+/**
+ * Creates a new Builder instance.
+ * @param owner the owner name, not null.
+ * @param name the fully qualified parameter name.
+ * @return a new builder, never null.
+ */
+public static Builder builder(String owner, String name) {
+return new Builder(owner, name);
+}
+
+/**
+ * Creates a new ConfigModel
+ * @param owner the owner name, not null.
+ * @param name the fully qualified parameter name.
+ * @param required the required flag.
+ * @param expression an optional regular expression to validate a value.
+ * @return the new ConfigModel instance.
+ */
+public static ConfigModel of(String owner, String name, boolean required, 
String expression) {
+return new Builder(owner, 
name).setRequired(required).setExpression(expression).build();
+}
+
+/**
+ * Creates a new ConfigModel
+ * @param owner the owner name, not null.
+ * @param name the fully qualified parameter name.
+ * @param required the required flag.
+ * @return the new ConfigModel instance.
+ */
+public static ConfigModel of(String owner, String name, boolean required) {
+return new Builder(owner, name).setRequired(required).build();
+}
+
+/**
+ * Creates a new 

[07/10] incubator-tamaya-sandbox git commit: TAMAYA-182: Adapted modules to new builder patter changes, including tests. Fixed compile errors, or excluded modules from compilation (see root pom).

2016-10-30 Thread anatole
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/041f5998/metamodel-staged/src/main/java/org/apache/tamaya/staged/spi/StagedConfigPropertiesProvider.java
--
diff --git 
a/metamodel-staged/src/main/java/org/apache/tamaya/staged/spi/StagedConfigPropertiesProvider.java
 
b/metamodel-staged/src/main/java/org/apache/tamaya/staged/spi/StagedConfigPropertiesProvider.java
deleted file mode 100644
index 722d0d0..000
--- 
a/metamodel-staged/src/main/java/org/apache/tamaya/staged/spi/StagedConfigPropertiesProvider.java
+++ /dev/null
@@ -1,137 +0,0 @@
-///*
-// * 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.
-// */
-//package org.apache.tamaya.staged.spi;
-//
-//
-//import org.apache.tamaya.spisupport.MapPropertySource;
-//import org.apache.tamaya.spisupport.PropertiesResourcePropertySource;
-//import org.apache.tamaya.resource.ConfigResources;
-//import org.apache.tamaya.spi.PropertySource;
-//
-//import java.net.URL;
-//import java.util.ArrayList;
-//import java.util.Collection;
-//import java.util.List;
-//import java.util.logging.Logger;
-//
-///**
-// * Configuration provider that resolves to a location in the classpath.
-// * Hereby the following system properties can be set to configure the 
provider
-// * (all entries are optional):
-// * 
-// * env.STAGE   :   ordered list of configs to be loaded, e.g. 
sys-env,GLOBAL,TEST,DEV
-// * 
-// * Adding {@code sys-env} as stage maps the current environment properties 
using
-// * the priority to be aliged with the context ordering, defined by {@code 
env.STAGE}.
-// * Similarly the same thing can be done by passing {@code sys-props} as 
context id for
-// * adding the current System properties to the configuration tree.
-// *
-// * The rootContext can be used to remap the whole property space to an 
alternate subtree in
-// * the configuration tree overall. This is very handy, if multiple instances 
of this class
-// * are registered into the same configuration, but with different location 
setups. Remapping
-// * configuration allows to separate these entries clearly.
-// * Finally the resource location can be adapted by overriding {@link 
#getBaseResourcePath()}.
-// * Different formats and loading mechanisms can be implemented by overriding
-// * {@link #loadProperties(String, String, int, List)}.
-// */
-//public class StagedConfigPropertiesProvider extends 
BaseStagedPropertySourceProvider {
-//
-///** The system property to define the stages used. */
-//private static final String STAGE_PROP = "env.STAGE";
-///** The logger used. */
-//
-//private static final Logger LOGGER = 
Logger.getLogger(StagedConfigPropertiesProvider.class.getName());
-//
-///** The context id for adding the system's environment properties. */
-//private static final String DEFAULT_ENV = "sys-env";
-//
-///** The context id for adding the system's properties. */
-//private static final String DEFAULT_SYSPROPS = "sys-props";
-//
-///**
-// * Creates a new instance.
-// * @param rootContext the (optional) root context, can be null.
-// * @param stages the comma separated list of stages.
-// */
-//public StagedConfigPropertiesProvider(String rootContext, String... 
stages){
-//super(rootContext, evaluateStages(stages));
-//}
-//
-///**
-// * Creates a default instance. the stages are read from the {@code 
env.STAGE} system¨propertx
-// * or a default is applied.
-// */
-//public StagedConfigPropertiesProvider(){
-//super(null, evaluateStages(null));
-//}
-//
-///**
-// * Evaluates the stages or returns the default STAGE entry.
-// * @return the stages to be used, never null.
-// */
-//private static String[] evaluateStages(String[] stages) {
-//if(stages!=null && stages.length>0){
-//return stages.clone();
-//}
-//String value = System.getProperty(STAGE_PROP);
-//if(value==null) {
-//value = System.getenv(STAGE_PROP);
-//}
-//if(value==null){
-//value = "sys-env,GLOBAL,DEVELOPMENT,sys-props";
-//}
-//

[04/10] incubator-tamaya git commit: TAMAYA-182: Fixed test issues.

2016-10-30 Thread anatole
TAMAYA-182: Fixed test issues.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/e442b317
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/e442b317
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/e442b317

Branch: refs/heads/master
Commit: e442b3177f340f8bef3243563236329fa375d081
Parents: a82a44a
Author: anatole 
Authored: Sun Oct 23 16:19:30 2016 +0200
Committer: anatole 
Committed: Sun Oct 23 16:19:30 2016 +0200

--
 .../java/org/apache/tamaya/spi/ConfigurationContextBuilder.java  | 4 ++--
 .../test/java/org/apache/tamaya/TestConfigurationProvider.java   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/e442b317/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContextBuilder.java
--
diff --git 
a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContextBuilder.java 
b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContextBuilder.java
index 66a2426..a57234e 100644
--- 
a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContextBuilder.java
+++ 
b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContextBuilder.java
@@ -34,7 +34,7 @@ import java.util.*;
  * After all changes are applied to a builder a new {@link 
ConfigurationContext} instance can
  * be created and can be applied by calling
  * {@link 
org.apache.tamaya.ConfigurationProvider#setConfigurationContext(org.apache.tamaya.spi.ConfigurationContext)}.
- * 
+ *
  */
 public interface ConfigurationContextBuilder {
 
@@ -241,7 +241,7 @@ public interface ConfigurationContextBuilder {
  * @return this builder, for chaining, never null.
  */
  ConfigurationContextBuilder removePropertyConverters(TypeLiteral 
typeToConvert,
- 
PropertyConverter... propertyConverters);
+ 
PropertyConverter... propertyConverters);
 
 /**
  * Removes the given PropertyConverter instances for the given type,

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/e442b317/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
--
diff --git 
a/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java 
b/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
index 3c913a1..4b6ca31 100644
--- a/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
+++ b/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
@@ -27,7 +27,7 @@ import javax.annotation.Priority;
 /**
  * Test Configuration class, that is used to testdata the default methods 
provided by the API.
  */
-@Priority(0)
+@Priority(2)
 public class TestConfigurationProvider implements ConfigurationProviderSpi {
 
 private static final Configuration config = new TestConfiguration();



[07/10] incubator-tamaya git commit: TAMAYA-182: Fixed test issues.

2016-10-30 Thread anatole
TAMAYA-182: Fixed test issues.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/0ed18648
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/0ed18648
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/0ed18648

Branch: refs/heads/master
Commit: 0ed186482faa265571ad178626613fe1765ee28c
Parents: 4cfc2d3 aac361a
Author: anatole 
Authored: Fri Oct 28 00:28:37 2016 +0200
Committer: anatole 
Committed: Fri Oct 28 00:28:37 2016 +0200

--
 .../src/test/java/org/apache/tamaya/ConfigurationTest.java| 1 -
 .../test/java/org/apache/tamaya/core/ConfigurationTest.java   | 7 ---
 .../core/propertysource/PropertiesFilePropertySourceTest.java | 2 +-
 .../tamaya/core/propertysource/SimplePropertySourceTest.java  | 4 ++--
 .../tamaya/core/provider/JavaConfigurationProviderTest.java   | 2 +-
 5 files changed, 4 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0ed18648/code/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java
--



[06/10] incubator-tamaya git commit: TAMAYA-182: Added Null check.

2016-10-30 Thread anatole
TAMAYA-182: Added Null check.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/4cfc2d31
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/4cfc2d31
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/4cfc2d31

Branch: refs/heads/master
Commit: 4cfc2d31f02894414f3c3f94f0051592ccaeacb4
Parents: 76963e7
Author: anatole 
Authored: Fri Oct 28 00:27:31 2016 +0200
Committer: anatole 
Committed: Fri Oct 28 00:27:31 2016 +0200

--
 .../tamaya/core/internal/DefaultConfigurationContextBuilder.java | 4 ++--
 .../apache/tamaya/core/propertysource/SimplePropertySource.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/4cfc2d31/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilder.java
--
diff --git 
a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilder.java
 
b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilder.java
index f3d823e..486fb05 100644
--- 
a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilder.java
+++ 
b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContextBuilder.java
@@ -172,7 +172,7 @@ public class DefaultConfigurationContextBuilder implements 
ConfigurationContextB
 return this;
 }
 
-public PropertySource getPropertySource(String name) {
+private PropertySource getPropertySource(String name) {
 for(PropertySource ps:propertySources){
 if(ps.getName().equals(name)){
 return ps;
@@ -357,7 +357,7 @@ public class DefaultConfigurationContextBuilder implements 
ConfigurationContextB
 }
 
 
-protected Map 
getDefaultPropertyConverters() {
+private Map 
getDefaultPropertyConverters() {
 Map result = new 
HashMap<>();
 for (PropertyConverter conv : 
ServiceContextManager.getServiceContext().getServices(
 PropertyConverter.class)) {

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/4cfc2d31/code/core/src/main/java/org/apache/tamaya/core/propertysource/SimplePropertySource.java
--
diff --git 
a/code/core/src/main/java/org/apache/tamaya/core/propertysource/SimplePropertySource.java
 
b/code/core/src/main/java/org/apache/tamaya/core/propertysource/SimplePropertySource.java
index e875d8c..bce68da 100644
--- 
a/code/core/src/main/java/org/apache/tamaya/core/propertysource/SimplePropertySource.java
+++ 
b/code/core/src/main/java/org/apache/tamaya/core/propertysource/SimplePropertySource.java
@@ -70,7 +70,7 @@ public class SimplePropertySource extends BasePropertySource {
  */
 public SimplePropertySource(URL propertiesLocation) {
 super(0);
-this.properties = load(propertiesLocation);
+this.properties = load(Objects.requireNonNull(propertiesLocation));
 this.name = propertiesLocation.toString();
 }
 



[02/10] incubator-tamaya git commit: TAMAYA-182: Streamlined/unified builder API and impl.

2016-10-30 Thread anatole
TAMAYA-182: Streamlined/unified builder API and impl.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/32a1616c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/32a1616c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/32a1616c

Branch: refs/heads/master
Commit: 32a1616cd358059d7e715ce4e0b7cfd4b586d1b1
Parents: 8a8a535
Author: anatole 
Authored: Sun Oct 23 15:38:00 2016 +0200
Committer: anatole 
Committed: Sun Oct 23 15:38:00 2016 +0200

--
 .../apache/tamaya/ConfigurationProvider.java|  10 +
 .../apache/tamaya/spi/ConfigurationContext.java |  45 ++-
 .../tamaya/spi/ConfigurationContextBuilder.java | 233 ++---
 .../tamaya/spi/ConfigurationProviderSpi.java|  47 ++-
 .../tamaya/TestConfigurationProvider.java   |  14 +
 .../internal/DefaultConfigurationContext.java   | 127 +++
 .../DefaultConfigurationContextBuilder.java | 349 ---
 .../internal/DefaultConfigurationProvider.java  |  35 +-
 .../core/internal/PropertyConverterManager.java |  15 +-
 .../propertysource/SystemPropertySource.java|   1 -
 .../apache/tamaya/core/ConfigurationTest.java   |   6 +
 jqassistant/serviceloader-rules.xml |   2 +-
 12 files changed, 678 insertions(+), 206 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/32a1616c/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
--
diff --git 
a/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java 
b/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
index bc4cd13..875f8fc 100644
--- a/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
+++ b/code/api/src/main/java/org/apache/tamaya/ConfigurationProvider.java
@@ -88,6 +88,16 @@ public final class ConfigurationProvider {
 }
 
 /**
+ * Creates a new configuration instance based on the given context.
+ *
+ * @param context the configuration context, not null.
+ * @return a new Configuration instance, never null.
+ */
+public static Configuration createConfiguration(ConfigurationContext 
context) {
+return PROVIDER_SPI.createConfiguration(context);
+}
+
+/**
  * Get access to the current ConfigurationContext.
  *
  * @return the current ConfigurationContext, never null.

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/32a1616c/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
--
diff --git 
a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java 
b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
index 3a757a0..f631d55 100644
--- a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
+++ b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
@@ -35,9 +35,30 @@ public interface ConfigurationContext {
  * This method can be used for programmatically adding {@link 
PropertySource}s.
  * It is not needed for normal 'usage' by end users, but only for 
Extension Developers!
  *
- * @param propertySourcesToAdd the PropertySources to add
+ * @param propertySources the PropertySources to add
+ * @deprecated Use {@link ConfigurationContextBuilder} to create a new 
{@link ConfigurationContext}.
+ * @see #toBuilder()
  */
-void addPropertySources(PropertySource... propertySourcesToAdd);
+@Deprecated
+void addPropertySources(PropertySource... propertySources);
+
+/**
+ * This method can be used for programmatically adding {@link 
PropertyFilter}s.
+ * It is not needed for normal 'usage' by end users, but only for 
Extension Developers!
+ *
+ * @param propertyFilters the PropertyFilters to add
+ * @deprecated Use {@link ConfigurationContextBuilder} to create a new 
{@link ConfigurationContext}.
+ * @see #toBuilder()
+ */
+@Deprecated
+void addPropertyFilter(PropertyFilter... propertyFilters);
+
+/**
+ * Allows to check if a given property source is registered, using its 
name.
+ * @param name the property source name.
+ * @return true, if a property source with the given name is present.
+ */
+boolean containsPropertySource(String name);
 
 /**
  * This method returns the current list of registered PropertySources 
ordered via their ordinal.
@@ -53,23 +74,25 @@ public interface ConfigurationContext {
  */
 List getPropertySources();
 
-
-///**
-// * Access a {@link PropertySource} using its (unique) name.
-// * @param name the propoerty source's name, not null.
-// * 

[09/10] incubator-tamaya git commit: TAMAYA-182: Streamlined/unified builder API and impl: bugfixes.

2016-10-30 Thread anatole
TAMAYA-182: Streamlined/unified builder API and impl: bugfixes.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/77dbcc4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/77dbcc4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/77dbcc4d

Branch: refs/heads/master
Commit: 77dbcc4d3a9fa38f0e9bbc4901ea5cae7efcf24c
Parents: d1ae885
Author: anatole 
Authored: Sat Oct 29 14:38:24 2016 +0200
Committer: anatole 
Committed: Sat Oct 29 14:38:24 2016 +0200

--
 .../tamaya/TestConfigurationProvider.java   |   7 +-
 .../tamaya/spi/ConversionContextTest.java   | 194 +++
 .../apache/tamaya/spi/FilterContextTest.java|  72 +++
 .../tamaya/spi/ServiceContextManagerTest.java   |  67 +++
 .../core/internal/DefaultConfiguration.java |   8 +-
 .../internal/DefaultConfigurationContext.java   |  43 +-
 .../internal/DefaultConfigurationProvider.java  |   1 +
 .../core/ConfigurationContextBuilderTest.java   | 513 +++
 .../apache/tamaya/core/TestPropertySource.java  |  73 +++
 .../DefaultConfigurationContextBuilderTest.java | 232 +
 .../DefaultConfigurationContextTest.java| 177 +++
 .../DefaultConfigurationProviderTest.java   |  61 +++
 .../internal/PriorityServiceComparatorTest.java |  47 ++
 13 files changed, 1485 insertions(+), 10 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/77dbcc4d/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
--
diff --git 
a/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java 
b/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
index 4b6ca31..e326ee8 100644
--- a/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
+++ b/code/api/src/test/java/org/apache/tamaya/TestConfigurationProvider.java
@@ -23,11 +23,12 @@ import org.apache.tamaya.spi.ConfigurationContextBuilder;
 import org.apache.tamaya.spi.ConfigurationProviderSpi;
 
 import javax.annotation.Priority;
+import java.util.Objects;
 
 /**
  * Test Configuration class, that is used to testdata the default methods 
provided by the API.
  */
-@Priority(2)
+@Priority(-1)
 public class TestConfigurationProvider implements ConfigurationProviderSpi {
 
 private static final Configuration config = new TestConfiguration();
@@ -39,12 +40,12 @@ public class TestConfigurationProvider implements 
ConfigurationProviderSpi {
 
 @Override
 public Configuration createConfiguration(ConfigurationContext context) {
-return null;
+return config;
 }
 
 @Override
 public ConfigurationContext getConfigurationContext() {
-return null;
+return config.getContext();
 }
 
 @Override

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/77dbcc4d/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java
--
diff --git 
a/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java 
b/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java
new file mode 100644
index 000..30f5aba
--- /dev/null
+++ b/code/api/src/test/java/org/apache/tamaya/spi/ConversionContextTest.java
@@ -0,0 +1,194 @@
+/*
+ * 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.
+ */
+package org.apache.tamaya.spi;
+
+import org.apache.tamaya.ConfigOperator;
+import org.apache.tamaya.ConfigQuery;
+import org.apache.tamaya.Configuration;
+import org.apache.tamaya.TypeLiteral;
+import org.junit.Test;
+
+import java.net.InetAddress;
+import java.util.List;
+import java.util.Map;
+
+import static org.junit.Assert.*;
+
+/**
+ * Tests for {@link ConversionContext}, created by atsticks on 20.08.16.
+ */
+public class ConversionContextTest {
+@Test
+public void getKey() throws Exception {
+ConversionContext ctx = new 

[01/10] incubator-tamaya git commit: Fixed key evaluation.

2016-10-30 Thread anatole
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master aac361a30 -> eafcadea6


Fixed key evaluation.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/8a8a5352
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/8a8a5352
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/8a8a5352

Branch: refs/heads/master
Commit: 8a8a5352253f5ba81abad3f2298bfda612717d8b
Parents: a41d143
Author: anatole 
Authored: Fri Sep 23 08:13:14 2016 +0200
Committer: anatole 
Committed: Fri Sep 23 08:13:14 2016 +0200

--
 .../apache/tamaya/inject/api/InjectionUtils.java | 19 +++
 1 file changed, 11 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/8a8a5352/modules/injection-api/src/main/java/org/apache/tamaya/inject/api/InjectionUtils.java
--
diff --git 
a/modules/injection-api/src/main/java/org/apache/tamaya/inject/api/InjectionUtils.java
 
b/modules/injection-api/src/main/java/org/apache/tamaya/inject/api/InjectionUtils.java
index a010e96..7920f89 100644
--- 
a/modules/injection-api/src/main/java/org/apache/tamaya/inject/api/InjectionUtils.java
+++ 
b/modules/injection-api/src/main/java/org/apache/tamaya/inject/api/InjectionUtils.java
@@ -104,14 +104,17 @@ public final class InjectionUtils {
 if (keys.isEmpty()) {
 keys.add(member.getName());
 }
-ListIterator iterator = keys.listIterator();
-while (iterator.hasNext()) {
-String next = iterator.next();
-if (next.startsWith("[") && next.endsWith("]")) {
-// absolute key, strip away brackets, take key as is
-iterator.set(next.substring(1, next.length() - 1));
-} else {
-if (areasAnnot != null && areasAnnot.value().length>0) {
+if (areasAnnot == null || areasAnnot.value().length==0) {
+keys.add(member.getDeclaringClass().getName() + '.' + 
member.getName());
+keys.add(member.getDeclaringClass().getSimpleName() + '.' + 
member.getName());
+}else{
+ListIterator iterator = keys.listIterator();
+while (iterator.hasNext()) {
+String next = iterator.next();
+if (next.startsWith("[") && next.endsWith("]")) {
+// absolute key, strip away brackets, take key as is
+iterator.set(next.substring(1, next.length() - 1));
+} else {
 // Remove original entry, since it will be replaced with 
prefixed entries
 iterator.remove();
 // Add prefixed entries, including absolute (root) entry 
for "" area keys.



[03/10] incubator-tamaya git commit: TAMAYA-182: Streamlined/unified builder API and impl: Adapted examples to new API.

2016-10-30 Thread anatole
TAMAYA-182: Streamlined/unified builder API and impl: Adapted examples to new 
API.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/a82a44af
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/a82a44af
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/a82a44af

Branch: refs/heads/master
Commit: a82a44affe3a19c81aa3ac3505a43a51d8e593c7
Parents: 32a1616 36b437a
Author: anatole 
Authored: Sun Oct 23 15:50:37 2016 +0200
Committer: anatole 
Committed: Sun Oct 23 15:50:37 2016 +0200

--
 attic/java8/api/pom.xml |  43 -
 .../java/org/apache/tamaya/ConfigException.java |  46 -
 .../java/org/apache/tamaya/ConfigOperator.java  |  38 -
 .../java/org/apache/tamaya/ConfigQuery.java |  38 -
 .../java/org/apache/tamaya/Configuration.java   | 232 -
 .../apache/tamaya/ConfigurationProvider.java|  87 --
 .../java/org/apache/tamaya/TypeLiteral.java | 202 -
 .../apache/tamaya/spi/ConfigurationContext.java | 152 
 .../tamaya/spi/ConfigurationContextBuilder.java | 193 
 .../tamaya/spi/ConfigurationProviderSpi.java|  77 --
 .../apache/tamaya/spi/PropertyConverter.java|  49 -
 .../org/apache/tamaya/spi/PropertyFilter.java   |  49 -
 .../org/apache/tamaya/spi/PropertySource.java   | 153 
 .../tamaya/spi/PropertySourceProvider.java  |  43 -
 .../spi/PropertyValueCombinationPolicy.java |  61 --
 .../org/apache/tamaya/spi/ServiceContext.java   |  66 --
 .../tamaya/spi/ServiceContextManager.java   | 115 ---
 .../org/apache/tamaya/ConfigExceptionTest.java  |  47 -
 .../tamaya/ConfigurationProviderTest.java   |  63 --
 .../org/apache/tamaya/ConfigurationTest.java|  75 --
 .../org/apache/tamaya/TestConfiguration.java|  80 --
 .../tamaya/TestConfigurationProvider.java   |  47 -
 .../java/org/apache/tamaya/TypeLiteralTest.java |  61 --
 .../tamaya/spi/ServiceContextManagerTest.java   | 131 ---
 .../apache/tamaya/spi/ServiceContextTest.java   |  91 --
 .../apache/tamaya/spi/TestServiceContext.java   |  83 --
 ...g.apache.tamaya.spi.ConfigurationProviderSpi |  19 -
 .../org.apache.tamaya.spi.ServiceContext|  19 -
 .../test/resources/ServiceContextWithOrdinal|  25 -
 attic/java8/core/pom.xml|  87 --
 .../core/internal/DefaultConfiguration.java | 235 -
 .../internal/DefaultConfigurationContext.java   | 239 -
 .../DefaultConfigurationContextBuilder.java | 145 ---
 .../internal/DefaultConfigurationProvider.java  |  62 --
 .../core/internal/DefaultServiceContext.java| 148 ---
 .../core/internal/PropertyConverterManager.java | 390 
 .../converters/BigDecimalConverter.java |  60 --
 .../converters/BigIntegerConverter.java |  92 --
 .../internal/converters/BooleanConverter.java   |  65 --
 .../core/internal/converters/ByteConverter.java |  60 --
 .../core/internal/converters/CharConverter.java |  66 --
 .../internal/converters/ClassConverter.java |  58 --
 .../internal/converters/CurrencyConverter.java  |  87 --
 .../internal/converters/DoubleConverter.java|  70 --
 .../core/internal/converters/EnumConverter.java |  67 --
 .../internal/converters/FloatConverter.java |  78 --
 .../internal/converters/IntegerConverter.java   |  70 --
 .../internal/converters/LocalDateConverter.java |  36 -
 .../converters/LocalDateTimeConverter.java  |  36 -
 .../internal/converters/LocalTimeConverter.java |  42 -
 .../core/internal/converters/LongConverter.java |  68 --
 .../internal/converters/NumberConverter.java|  72 --
 .../internal/converters/ShortConverter.java |  70 --
 .../core/internal/converters/URIConverter.java  |  45 -
 .../core/internal/converters/URLConverter.java  |  45 -
 .../internal/converters/ZoneIdConverter.java|  47 -
 .../core/propertysource/BasePropertySource.java |  55 --
 .../EnvironmentPropertySource.java  |  54 --
 .../propertysource/SimplePropertySource.java| 118 ---
 .../propertysource/SystemPropertySource.java|  87 --
 .../provider/JavaConfigurationProvider.java |  58 --
 ...pache.tamaya.spi.ConfigurationContextBuilder |  19 -
 ...g.apache.tamaya.spi.ConfigurationProviderSpi |  19 -
 .../org.apache.tamaya.spi.PropertyConverter |  37 -
 .../org.apache.tamaya.spi.PropertySource|  20 -
 ...org.apache.tamaya.spi.PropertySourceProvider |  19 -
 .../org.apache.tamaya.spi.ServiceContext|  19 -
 .../apache/tamaya/core/ConfigurationTest.java   |  58 --
 .../org/apache/tamaya/core/NotMockedAnswer.java |  55 --
 .../java/org/apache/tamaya/core/internal/A.java |  29 -
 .../java/org/apache/tamaya/core/internal/B.java |  29 -
 .../java/org/apache/tamaya/core/internal/C.java |  56 --
 .../tamaya/core/internal/CTestConverter.java|  31 -
 

[05/10] incubator-tamaya git commit: TAMAYA-182: Removed unused methods.

2016-10-30 Thread anatole
TAMAYA-182: Removed unused methods.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/76963e71
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/76963e71
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/76963e71

Branch: refs/heads/master
Commit: 76963e71cb3b61316b127c8c2591b3998fc98130
Parents: e442b31
Author: anatole 
Authored: Sun Oct 23 17:40:12 2016 +0200
Committer: anatole 
Committed: Sun Oct 23 17:40:12 2016 +0200

--
 .../apache/tamaya/spi/ConfigurationContext.java | 18 
 .../internal/DefaultConfigurationContext.java   | 22 
 pom.xml |  2 +-
 3 files changed, 1 insertion(+), 41 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/76963e71/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
--
diff --git 
a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java 
b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
index f631d55..8f15e85 100644
--- a/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
+++ b/code/api/src/main/java/org/apache/tamaya/spi/ConfigurationContext.java
@@ -43,24 +43,6 @@ public interface ConfigurationContext {
 void addPropertySources(PropertySource... propertySources);
 
 /**
- * This method can be used for programmatically adding {@link 
PropertyFilter}s.
- * It is not needed for normal 'usage' by end users, but only for 
Extension Developers!
- *
- * @param propertyFilters the PropertyFilters to add
- * @deprecated Use {@link ConfigurationContextBuilder} to create a new 
{@link ConfigurationContext}.
- * @see #toBuilder()
- */
-@Deprecated
-void addPropertyFilter(PropertyFilter... propertyFilters);
-
-/**
- * Allows to check if a given property source is registered, using its 
name.
- * @param name the property source name.
- * @return true, if a property source with the given name is present.
- */
-boolean containsPropertySource(String name);
-
-/**
  * This method returns the current list of registered PropertySources 
ordered via their ordinal.
  * PropertySources with a lower ordinal come last. The PropertySource with 
the
  * highest ordinal comes first.

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/76963e71/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
--
diff --git 
a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
 
b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
index 15c6147..29be92f 100644
--- 
a/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
+++ 
b/code/core/src/main/java/org/apache/tamaya/core/internal/DefaultConfigurationContext.java
@@ -123,28 +123,6 @@ public class DefaultConfigurationContext implements 
ConfigurationContext {
 }
 }
 
-
-@Deprecated
-@Override
-public void addPropertyFilter(PropertyFilter... propertyFiltersToAdd) {
-Lock writeLock = propertyFilterLock.writeLock();
-try {
-writeLock.lock();
-List newPropertyFilters = new 
ArrayList<>(this.immutablePropertyFilters);
-newPropertyFilters.addAll(Arrays.asList(propertyFiltersToAdd));
-Collections.sort(newPropertyFilters, new 
PropertyFilterComparator());
-
-this.immutablePropertyFilters = 
Collections.unmodifiableList(newPropertyFilters);
-} finally {
-writeLock.unlock();
-}
-}
-
-@Override
-public boolean containsPropertySource(String name) {
-return getPropertySource(name)!=null;
-}
-
 @Override
 public boolean equals(Object o) {
 if (this == o) return true;

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/76963e71/pom.xml
--
diff --git a/pom.xml b/pom.xml
index ccc0c5f..4c2f975 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@ under the License.
 0.3-incubating-SNAPSHOT
 pom
 
-Apache Tamaya
+Apache Tamaya Base
 Apache Tamaya - Java Configuration
 https://tamaya.incubator.apache.org
 2014



Build failed in Jenkins: Tamaya-Site-Master #220

2016-10-30 Thread Apache Jenkins Server
See 

--
[...truncated 11262 lines...]
-stylesheetfile File to change style of the generated 
documentation
-docencodingOutput encoding name
1 error
[ERROR] Error while creating javadoc report: 
Exit code: 1 - javadoc: error - invalid flag: -Xdoclint:none

Command line was: /usr/local/asfpackages/java/jdk1.7.0_80/jre/../bin/javadoc 
@options @packages

Refer to the generated Javadoc files in 
' dir.

org.apache.maven.reporting.MavenReportException: 
Exit code: 1 - javadoc: error - invalid flag: -Xdoclint:none

Command line was: /usr/local/asfpackages/java/jdk1.7.0_80/jre/../bin/javadoc 
@options @packages

Refer to the generated Javadoc files in 
' dir.

at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5188)
at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:2075)
at 
org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:130)
at 
org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:233)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:311)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:129)
at 
org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:182)
at 
org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at 
org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:332)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[INFO] Generating "JIRA Report" report  --- 
maven-changes-plugin:2.12:jira-report
[INFO] Falling back to RSS for issue download: This JIRA server does not 
support version 2 of the REST API, which maven-changes-plugin requires.
[INFO] Downloading from JIRA at: