Skip to content

Commit

Permalink
Resolving issue where warDeployed in embedded container is not detect…
Browse files Browse the repository at this point in the history
…ed as true
  • Loading branch information
davydotcom committed Mar 31, 2015
1 parent 38bb298 commit b8a5fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grails-bootstrap/src/main/groovy/grails/util/Metadata.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ public class Metadata extends CodeGenConfig {
* @return true if this application is deployed as a WAR
*/
public boolean isWarDeployed() {
def loadedLocation = getClass().getClassLoader().getResource("");
if(loadedLocation && loadedLocation.path.contains('/WEB-INF/classes/')) {
def loadedLocation = getClass().getClassLoader().getResource(FILE);
if(loadedLocation && loadedLocation.path.contains('/WEB-INF/classes')) {
return true
}
return false
Expand Down

0 comments on commit b8a5fda

Please sign in to comment.