Announcement Announcement Module
No announcement yet.
Grails scm builds Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grails scm builds


    I am trying to integrate the build process of my grails app with ant. I was reading where it mentions I can use the "grails integrate-with --ant" switch that creates a build.xml and some ivy files automatically. It created the files, however when I launch "ant war" it fails complaining about dependencies for ivy. Currently, only one dependency is failing org.springframework.uaa.client:1.0.2.RELEASE.jar. The console output shoes that it tried at the 4 default mirrors mentioned in the ivy files, but none of them have it. That baffles me.

    Is anyone else running into this issue ? Any suggestions ? Anyone have a fix ?


  • #2
    This problem can be solved by throwing out the grails "integrate-with" method and using the ant macrodef found here:

    I use a macrodef for this:

    <property environment='env'/>

    <property name='grails.home' value='${env.GRAILS_HOME}' />

    <condition property='grails' value='grails.bat'>
    <os family='windows'/>
    <property name='grails' value='grails' />

    <macrodef name='grails'>
    <attribute name='action' />
    <attribute name='environment' default='dev' />
    <element name='preargs' optional='true' />
    <element name='args' optional='true' />
    <exec executable='${grails}' failonerror='true'>
    <preargs />
    <arg value='@{environment}'/>
    <arg value='@{action}'/>
    <args />

    You can execute simple commands:

    <grails action='clean' />

    or more complex ones like your war task:

    <grails action='war' environment='${env}'>
    <arg value="${war.filename}" />