2009-07-22 4 views

答えて

1

ファイルの内容は、その後、REPLACE_MEある場合このタスクを実行すると、次のようになります。

<!-- Create the file --> 
<concat destfile="outfile.txt">REPLACE_ME</concat> 

<!-- This property is initialized reading user input --> 
<input 
    message="Please enter file content:" 
    addproperty="file_content" 
/> 

<!-- Replace the property value inside the file --> 
<replace 
    file="outfile.txt" 
    token="REPLACE_ME" 
    value="${file_content}" 
/> 
関連する問題