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

我想在我的 grails 项目中运行我的“exec grails”任务。我在 exec 任务中设置了 chalice 路径,例如

 <exec executable="${grails}"

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

最佳答案

来自exec Ant task documentation :

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

https://stackoverflow.com/questions/11937839/

相关文章:

visual-studio-2010 - VS2010 : Exclude a project fr

java - 创建新的 ClassLoader 以重新加载 Class

c# - 如何在夜间构建期间自动设置程序集版本?

android - 如何引用公共(public)目录(不是库)中的外部 jar 文件来使用 ant

javascript - 为 JavaScript 构建过程工具

android - 我可以在不运行 Android Studio 时删除这些构建文件夹吗?

build - 了解 CMake 背后的目的

android - Gradle DSL 方法未找到 : "classpath()"

build - Gradle 的术语评估和执行之间的区别

gradle - 谷歌构建Android的Gradle插件源代码