Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
antを使用して、いくつかのディレクトリの中で、変更されたファイルと変更されていないファイルを親ディレクトリとともにディレクトリにコピーしたいと考えています。変更されたタスクを使用している場合、親ディレクトリとともに変更されたファイルのみがコピーされます。変更されていないファイルはコピーされませんでした。助けてください
オプションを有効にしてcopyタスクを使用できます。宛先ファイルが新しい場合でも、overwriteオプションは既存のファイルを上書きします。overwrite例えば:
copy
overwrite
<copy todir="dest" overwrite="true"> <fileset dir="src" /> </copy>
参照: http://ant.apache.org/manual/Tasks/copy.html