ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54397] Copy task fails when copying from CIFS mounted location
Date Wed, 01 Jan 2014 22:23:47 GMT

--- Comment #3 from Stefan Bodewig <> ---
This is ugly.

Ant uses FileChannel#transferFrom as this is supposed to be more efficient than
the traditional shuffling of buffers between streams/channels.  It looks as if
the implementation inside the Java classlib doesn't work for certain kinds of

Unfortunately I don't see how Ant could detect the situation as we cannot query
the FileChannel whether it would support transfers and the exception is an
unspecific IOException.

One option may be to add a flag that disables transferFrom altogether - which
will require changes in lots of places - I'm pondering a global system property
to avoid adding a new parameter and adding it to lots of tasks.

There may be a workaround for you as Ant will not use transferFrom if a
filterset or a filterchain exists.  You could add a filterChain that didn't
modify anything but this would very likely break binary files when copying them
(so is only an option if we are talking about text files).

You are receiving this mail because:
You are the assignee for the bug.

View raw message