2012-08-13 49 views
11

我想將我的「exec grails」任務運行到我的grails項目中。我在可執行任務中設置了聖盃路徑,如從不同文件夾運行ant exec任務

<exec executable="${grails}" 

我該怎麼說,那個exec應該從我的項目文件夾開始?

非常感謝!

回答

18

exec Ant task documentation

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