Skip to content

Commit 2bde4f3

Browse files
author
Yves Fischer
committed
Extend test in isWarDeployed to work with weblogic
Fix for #9716
1 parent 470b19e commit 2bde4f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

grails-bootstrap/src/main/groovy/grails/util/Environment.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,11 @@ public static boolean isWarDeployed() {
292292
if(loadedLocation != null && loadedLocation.getPath().contains("/WEB-INF/classes")) {
293293
return true;
294294
}
295+
// Workaround for weblogic who repacks files from 'classes' into a new jar under lib/
296+
if (loadedLocation != null && loadedLocation.getPath().contains("_wl_cls_gen.jar!/")) {
297+
return true;
298+
}
295299
return false;
296-
297300
}
298301

299302
/**

0 commit comments

Comments
 (0)