想要使用ant替换macOS上txt文件中的值。我使用了以下代码,但出现错误:“该类型不支持嵌套文本数据(“”)“。
<exec executable="sed"> <arg value="s/old/new/g" /> <arg value="$MY_FILE" /> </exec>.
如何替换变量的值,我在Windows上用replace替换了文件,就可以了。
ant sed exec
ant ×1
exec ×1
sed ×1