ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"
Date Tue, 13 Apr 2010 14:49:36 GMT
On 2010-04-13, SHAILJA <> wrote:

>      [copy] Copying
> /u/kumari/main/shailja/src/java/a/utd/writer/realtimelagstats/
> to /u/kumari/main/shailja/bin/share/

> Failed to copy
> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/
> to /u/kumari/main/shailja/bin/share/ due to
> /u/kumari/main/shailja/bin/share/
> (Permission denied)

this time something is different, the file the exception talks about
actually is the same as the one the task wants to copy to.  In your
first post they've been different.

> 	at

just rethrows the exception from

> Caused by:
> /u/kumari/main/shailja/bin/share/ (Permission denied)
> 	at Method)
> 	at<init>(
> 	at<init>(
> 	at

which just tries to open the output file.

>  ls -alh
> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/
> -rwxrwxr-x

> this file exists with right permission

Yes, the error occurs on the destination side.

> copy task should copy from source to detination location
> /u/kumari/main/shailja/bin/share/
> here location /u/kumari/main/shailja/bin/share exists and no symlink is
> there.

But do you have permissions to write there - and is there enough space?
Does a simple

cp /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/ /u/kumari/main/shailja/bin/share/

succeed on the command line?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message