From 0ca5258af156b611837627f79fb645c4bdf918b2 Mon Sep 17 00:00:00 2001 From: zvonegit Date: Mon, 18 Dec 2017 10:47:27 +0100 Subject: [PATCH] Updated ContainerIncludeJarPattern to work with paths that inlude /lib/ (except for /jre/lib/). --- .../com/kumuluz/ee/common/attributes/ClasspathAttributes.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/kumuluz/ee/common/attributes/ClasspathAttributes.java b/common/src/main/java/com/kumuluz/ee/common/attributes/ClasspathAttributes.java index d3be2e6d..1925fadc 100644 --- a/common/src/main/java/com/kumuluz/ee/common/attributes/ClasspathAttributes.java +++ b/common/src/main/java/com/kumuluz/ee/common/attributes/ClasspathAttributes.java @@ -17,7 +17,7 @@ * out of or in connection with the software or the use or other dealings in the * software. See the License for the specific language governing permissions and * limitations under the License. -*/ + */ package com.kumuluz.ee.common.attributes; /** @@ -26,7 +26,7 @@ */ public class ClasspathAttributes { - public static final String jar = "^((?!lib|/lib).)*$"; + public static final String jar = "^((?!lib\\_[^\\/]*\\.jar\\.[^\\/]*\\.tmp|/lib\\_[^\\/]*\\.jar\\.[^\\/]*\\.tmp|.*\\/jre\\/lib\\/.*).)*$"; public static final String exploded = ".*/classes/.*";