[英]Passing parameter properly in an Ant task
我有一个名为“ prepare.all.xml”的Ant构建文件,其中包含以下行:
<import file="${build.config.dir}/prepare.tools.config.xml" description="Standard tool configurations"/>
我正在尝试运行此构建文件,而我给出的命令是-
ant -buildfile=prepare.all.xml
这给我抛出了一个错误,错误是:
C:\CIA-TestFramework\build-config\prepare.all.xml:6: Cannot find C:\CIA-TestFramework\buildconfig\${build.config.dir}\prepare.tools.config.xml imported from C:\CIA-TestFramework\build-config\prepare.all.xml
现在,文件“ prepare.tools.config.xml”位于目录C:\\ CIA-TestFramework \\ build-config \\
应该执行什么命令才能使其正常运行?
未设置属性build.config.dir。
如果要在命令行中设置,请使用:
ant -buildfile=prepare.all.xml -Dbuild.config.dir=whatever
有关详细信息,请参见Ant手册“运行Apache Ant” 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.