Skip to content

Commit

Permalink
Merge pull request #586 from davydotcom/patch-warDeployed
Browse files Browse the repository at this point in the history
Resolving issue where warDeployed in embedded container is not detected as true
  • Loading branch information
graemerocher committed Mar 31, 2015
2 parents 38bb298 + b8a5fda commit 4c180c5
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 4c180c5

Please sign in to comment.