我对这个蚂蚁目标有疑问:
... ${build} is set.
<target name="x"">
<echo message="build = ${build}/x.cpp" />
<apply executable="perl" failonerror="true" parallel="true"
skipemptyfilesets="true" forwardslash="true">
<!-- ... other arg tags ... -->
<arg value="-o"/>
<arg file="${build}/x.cpp"/>
<arg value="--error-printer"/>
<arg value="--force-main"/>
<arg value="--track-heap"/>
<arg value="--trap-signals"/>
<arg value="--trace-stack"/>
<!-- ... other arg tags ... -->
<fileset dir="." casesensitive="no">
<include name="**/*.h"/>
</fileset>
</apply>
</target>
在执行时(在Windows 7上)我得到这个:
x:
[echo] build = C:/Program Files/storage/Results/bin/x.cpp
[apply] Cannot open input file "Files\storage\Results\bin\x.cpp"
为什么?我已经替换了属性文件,值和/或路径总是具有相同(错误)的结果。