从不同的文件夹运行ant exec任务

EK.*_*EK. 14 ant deployment continuous-integration build

我想在我的grails项目中运行我的"exec grails"任务.我在exec任务中设置了grail路径

 <exec executable="${grails}"
Run Code Online (Sandbox Code Playgroud)

怎么说,exec应该从我的项目文件夹开始?

非常感谢!

Chr*_*ert 23

execAnt任务文档:

Attribute    Description
dir          the directory in which the command should be executed.
<exec executable="${grails}" dir="${my.project.dir}">
Run Code Online (Sandbox Code Playgroud)