EK.
EK.

Reputation: 2996

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?

Upvotes: 15

Views: 14435

Answers (1)

Christopher Peisert
Christopher Peisert

Reputation: 24174

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}">

Upvotes: 24

Related Questions