Search code examples
deploymentantbuildcontinuous-integration

Run ant exec task from different folder


I want to run my "exec grails" task into my grails project. I set grail path in exec task like

 <exec executable="${grails}"

How can I say , that exec should start from my project folder?


Solution

  • From the exec Ant task documentation:

    Attribute    Description
    dir          the directory in which the command should be executed.
    
    <exec executable="${grails}" dir="${my.project.dir}">