CVS からプロジェクトをチェックアウトし、それをビルドしてデプロイする Ant スクリプトがあります。要件は、スクリプトが「scripts」フォルダー内のコードの一部である必要があり、チェックアウトが行われるたびにファイルが上書きされることです。CVS チェックアウトを行わずにビルドが完了すると、すべて正常に動作します。私のコードスニペットは
<target name="deploy.main" depends="checkProperty" if="propertyExist">
<echo message="${release.number}"/>
<sequential>
<parallel>
<antcall target="tag.branch"/>
<antcall target="checkout.main"/>
</parallel>
<antcall target="stopJboss" />
<sleep seconds="10" />
<antcall target="replaceTag"/>
<antcall target="deploy" />
<antcall target="moveConfigFiles" />
<antcall target="promote"/>
<antcall target="stopRemoteJboss"/>
<parallel>
<antcall target="startJboss" />
<antcall target="startRemoteJboss"/>
</parallel>
</sequential>
</target>
このファイルは、チェックアウト中に常に新しいファイルによって上書きされます。ant は最初にファイル全体を一度に読み取り、メモリに保持しますか? それとも、新しいファイル内のものを見つけようとしますか?