Skip to content

Commit 710281f

Browse files
committed
Merge pull request #9717 from yvesf/fix-9716
Extend test in isWarDeployed to work with weblogic
2 parents 470b19e + 2bde4f3 commit 710281f

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)