0
我想制作一个Ant脚本来提升SA的某些值,并将它们添加到文件中。如果运行以下脚本,属性名称将被添加到文件中而不是值?Ant将提示值插入文件
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="run-count" name="run">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--Ant 1.7 is required
-->
<target name="run-count">
<input
message="Please enter db-username:"
addproperty="db.user"
/>
</target>
<concat destfile="input.txt" append="true">"${db.user}"</concat>
<echo file="file.txt" append="true">
<![CDATA[
<h1>"${db.user}"</h1>
]]>
</echo>
</project>