使用config属性作为参数运行ant target


Run ant target with config property as parameter

是否可以从命令行使用覆盖的配置属性运行自定义ant任务?

假设我要为自定义任务中调用的copy任务覆盖force属性。
是否可以从命令行执行以下内容:

1
ant [myTask] -Dcopy.force=true

该属性的名称是什么?


是的,请使用-D选项填充任何属性。
ant [target] -Dforce=true