Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15628

grails can not build non-production war

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • grails-plugin
    • None
    • windows 7, grails 2.1.1, java 7

      i am using the parameters textbox to set "grails.env=development" without the quotes, but i tied several other values against that key, and the grails plugin will build the command line correctly: "grails -Dgrails.env=development war", and submit it to cmd.exe. "cmd.exe /c grails -Dgrails.env=development war" for some reason, the cmd.exe hoses the grails CLI, it doesnot see the -D expression so grails basically throws that away and then builds production instead. frankly this entire interface for using grails is not documented and makes little sense. if you have a text box for the parameters, why not just let us put the entire command line that we want in that textbox. and not bother with the idea of piecing the command line together behind the scenes. KISS. also, i dont see any reason why to submit this to cmd and not just exec grails per se. i submitted this as a blocker.

            jeffg2one jeffg2one
            txusul bob makowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: