man
man

Reputation: 1

Using ANT I want to copy modified and unmodified files

I want to copy modified and unmodified files to a directory along with the parent directory among a number of directories using ant. when i am using modified task, it copies only modified files along with parent directory. Unmodified files not copied.please help

Upvotes: 0

Views: 138

Answers (1)

imapollo
imapollo

Reputation: 387

You can use copy task with overwrite option enabled. Option overwrite will overwrite existing files even if the destination files are newer. For example:

<copy todir="dest" overwrite="true">
    <fileset dir="src" />
</copy>

Reference: http://ant.apache.org/manual/Tasks/copy.html

Upvotes: 2

Related Questions