ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"
Date Mon, 19 Apr 2010 09:51:36 GMT
On 2010-04-14, SHAILJA <shalja.rudra@gmail.com> wrote:

>> Failed to copy
>> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/load_stats.pl
>> to /u/kumari/main/shailja/bin/share/load_stats.pl due to
>> java.io.FileNotFoundException
>> /u/kumari/main/shailja/bin/share/load_stats.pl
>> (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.

> I am getting this kind of error only in my first post also.

In your initial post it was

,----
| Failed to copy /u/kumari/main/shailja/src/java/a/jsh/mm/script/run_m.pl to
| /u/kumari/main/base/bin/share/run_m.pl due to java.io.FileNotFoundException
| /u/kumari/main/shailja/bin/share/run_m.pl (Permission denied)
`----

Different source and target files and in particular the error message
talks about a third file that is different from both the source and the
destination.

>> But do you have permissions to write there - and is there enough space?

> Permission on /u/kumari/main/shailja/bin/share directory is
> drwxrwsr-x

Which doesn't mean anything to me since I don't know whether you are the
owner or in the appropriate group 8-)

> df -akh .
>   11G   9.7G   1.3G    89%

and I don't know how big the file is. 8-)

>> Does a simple
>> cp
>> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/load_stats.pl
>> /u/kumari/main/shailja/bin/share/

>> succeed on the command line?

> Yes it succeeded. Thats why I am not getting the cause of this error.

I'm sorry, I'm running out of ideas myself and honestly it doesn't
really help that the issue seems to be a moving target with every post.

Cheers

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message