tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: supporting comments in additionalLibs
Date Tue, 13 Jan 2015 09:12:57 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 872bce341 -> 851977127


supporting comments in additionalLibs


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

Branch: refs/heads/tomee-1.7.x
Commit: 851977127ddcf2a5a469ae59c1304ff0b915ed18
Parents: 872bce3
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Tue Jan 13 10:12:23 2015 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Tue Jan 13 10:12:23 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/openejb/arquillian/common/Setup.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/85197712/arquillian/arquillian-tomee-common/src/main/java/org/apache/openejb/arquillian/common/Setup.java
----------------------------------------------------------------------
diff --git a/arquillian/arquillian-tomee-common/src/main/java/org/apache/openejb/arquillian/common/Setup.java
b/arquillian/arquillian-tomee-common/src/main/java/org/apache/openejb/arquillian/common/Setup.java
index 4603aa1..06708f1 100644
--- a/arquillian/arquillian-tomee-common/src/main/java/org/apache/openejb/arquillian/common/Setup.java
+++ b/arquillian/arquillian-tomee-common/src/main/java/org/apache/openejb/arquillian/common/Setup.java
@@ -366,7 +366,11 @@ public class Setup {
 
         final File libFolder = new File(tomeeHome, "lib");
         for (final String lib : libs.split("\n")) {
-            final String location = ProvisioningUtil.realLocation(lib.trim());
+            final String trim = lib.trim();
+            if (trim.isEmpty() || trim.startsWith("#")) {
+                continue;
+            }
+            final String location = ProvisioningUtil.realLocation(trim);
             final File from = new File(location);
             try {
                 org.apache.openejb.loader.IO.copy(from, new File(libFolder, from.getName()));


Mime
View raw message