Grails
  1. Grails
  2. GRAILS-8297

run-war does not take notice of grails.war.exploded=true

    Details

    • Type: Bug Bug
    • Status: Edit
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.7, 2.0.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If you have 'grails.war.exploded=true' set in BuildConfig.groovy, build-war builds an exploded web archive. But run-war does not honour this setting and attempts to find a zipped .war file instead, ignoring the contents of the exploded directory.

        Activity

        Hide
        John Moore added a comment -

        Sorry, not sure how to set priority - this isn't really major but that's what it's defaulting to.

        Show
        John Moore added a comment - Sorry, not sure how to set priority - this isn't really major but that's what it's defaulting to.
        Hide
        Alex Anderson added a comment - - edited

        Just ran into this on 2.0.3 - quite annoying!

        | Error Error executing script RunWar: : src '/home/user/workspaces/frontlinesms/target/frontlinesms-0.5.war' doesn't exist. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
        : src '/home/user/workspaces/frontlinesms/target/frontlinesms-0.5.war' doesn't exist.
        	at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:128)
        	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        	at org.grails.plugins.tomcat.IsolatedWarTomcatServer.<init>(IsolatedWarTomcatServer.groovy:38)
        	at org.grails.plugins.tomcat.TomcatServerFactory.createForWAR(TomcatServerFactory.groovy:15)
        	at RunWar.runWar(RunWar:126)
        	at RunWar.this$4$runWar(RunWar)
        	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        	at RunWar$_run_closure4.doCall(RunWar:87)
        	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
        	at java_util_concurrent_Callable$call.call(Unknown Source)
        	at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
        	at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
        	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        	at RunWar$_run_closure1.doCall(RunWar.groovy:46)
        	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
        	at java_util_concurrent_Callable$call.call(Unknown Source)
        	at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
        	at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
        	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
        	at java_util_concurrent_Callable$call.call(Unknown Source)
        	at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        	at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        	at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        	at java_util_concurrent_Callable$call.call(Unknown Source)
        	at gant.Gant.withBuildListeners(Gant.groovy:427)
        	at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        	at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        	at gant.Gant.dispatch(Gant.groovy:415)
        	at gant.Gant.this$2$dispatch(Gant.groovy)
        	at gant.Gant.invokeMethod(Gant.groovy)
        	at gant.Gant.executeTargets(Gant.groovy:591)
        	at gant.Gant.executeTargets(Gant.groovy:590)
        
        Show
        Alex Anderson added a comment - - edited Just ran into this on 2.0.3 - quite annoying! | Error Error executing script RunWar: : src '/home/user/workspaces/frontlinesms/target/frontlinesms-0.5.war' doesn't exist. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) : src '/home/user/workspaces/frontlinesms/target/frontlinesms-0.5.war' doesn't exist. at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:128) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.grails.plugins.tomcat.IsolatedWarTomcatServer.<init>(IsolatedWarTomcatServer.groovy:38) at org.grails.plugins.tomcat.TomcatServerFactory.createForWAR(TomcatServerFactory.groovy:15) at RunWar.runWar(RunWar:126) at RunWar.this$4$runWar(RunWar) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at RunWar$_run_closure4.doCall(RunWar:87) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at RunWar$_run_closure1.doCall(RunWar.groovy:46) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:591) at gant.Gant.executeTargets(Gant.groovy:590)

          People

          • Assignee:
            Unassigned
            Reporter:
            John Moore
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development