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>