我对此蚂蚁目标有疑问:
... ${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"
为什么呢?我已经替换了属性文件,其中值和/或路径始终具有相同(错误)的结果。