0
일부 값에 대해 SA를 승격시키고 파일에 추가하는 Ant 스크립트를 만들려고합니다. 다음 스크립트를 실행하면 등록 정보 이름이 값이 아닌 파일에 추가됩니까?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>