Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"

2010-04-13 Thread SHAILJA

>>
> 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)

>>

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

>>
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  

df -akh .
  11G   9.7G   1.3G89% 

>>
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. 


Stefan Bodewig wrote:
> 
> On 2010-04-13, SHAILJA  wrote:
> 
>>  [copy] Copying
>> /u/kumari/main/shailja/src/java/a/utd/writer/realtimelagstats/load_stats.pl
>> to /u/kumari/main/shailja/bin/share/load_stats.pl
> 
>> 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.
> 
>>  at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839)
> 
> just rethrows the exception from
> 
>> Caused by: java.io.FileNotFoundException:
>> /u/kumari/main/shailja/bin/share/load_stats.pl (Permission denied)
>>  at java.io.FileOutputStream.open(Native Method)
>>  at java.io.FileOutputStream.(FileOutputStream.java:179)
>>  at java.io.FileOutputStream.(FileOutputStream.java:131)
>>  at
>> org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:460)
> 
> which just tries to open the output file.
> 
>>  ls -alh
>> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/load_stats.pl
>> -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/load_stats.pl
>> 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/load_stats.pl
> /u/kumari/main/shailja/bin/share/
> 
> succeed on the command line?
> 
> Stefan
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
> For additional commands, e-mail: dev-h...@ant.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Ant1.8-copy-task-gives-error-%22Failed-to-copy%22-with-%22Permission-denied%22-tp28179282p28238710.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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



AW: [Vote] Augment feature

2010-04-13 Thread Jan.Materne
> So the questions are:
> 
> 1. Are you in favor of adding the augment feature to Ant?

+1


> 2. Are you in favor of an attribute that allows references to 
> be marked as final, to avoid augmentation?

+0


> 3. If a final attribute is decided upon, do you think it 
> should default to "false"?

+1


Jan

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



Re: [Vote] Augment feature

2010-04-13 Thread Stefan Bodewig
[repeating part of my vote since I didn't vote on the third question
last time]

On 2010-04-14, Bruce Atherton  wrote:

> 1. Are you in favor of adding the augment feature to Ant?

+1

> 2. Are you in favor of an attribute that allows references to be
> marked as final, to avoid augmentation?

-0

> 3. If a final attribute is decided upon, do you think it should
> default to "false"?

+0

Stefan

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



Re: [Vote] Augment feature

2010-04-13 Thread Bruce Atherton

On 13/04/2010 3:34 PM, Bruce Atherton wrote:


1. Are you in favor of adding the augment feature to Ant?


+1



2. Are you in favor of an attribute that allows references to be 
marked as final, to avoid augmentation?


-0



3. If a final attribute is decided upon, do you think it should 
default to "false"?


+1



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



[Vote] Augment feature

2010-04-13 Thread Bruce Atherton
Ok, so this didn't start out as a vote thread, just my suggestion for 
what questions should appear in the vote. But since it has morphed into 
that I've changed the subject line to make it easier for people to find. 
So the questions are:


1. Are you in favor of adding the augment feature to Ant?

2. Are you in favor of an attribute that allows references to be marked 
as final, to avoid augmentation?


3. If a final attribute is decided upon, do you think it should default 
to "false"?


If you have already voted, no need to recast your vote.


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



Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"

2010-04-13 Thread Stefan Bodewig
On 2010-04-13, SHAILJA  wrote:

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

> 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.

>   at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839)

just rethrows the exception from

> Caused by: java.io.FileNotFoundException:
> /u/kumari/main/shailja/bin/share/load_stats.pl (Permission denied)
>   at java.io.FileOutputStream.open(Native Method)
>   at java.io.FileOutputStream.(FileOutputStream.java:179)
>   at java.io.FileOutputStream.(FileOutputStream.java:131)
>   at
> org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:460)

which just tries to open the output file.

>  ls -alh
> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/load_stats.pl
> -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/load_stats.pl
> 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/load_stats.pl
 /u/kumari/main/shailja/bin/share/

succeed on the command line?

Stefan

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



Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"

2010-04-13 Thread SHAILJA

install_scripts:
[mkdir] Skipping /u/kumari/main/shailja/bin/share because it already
exists.
 [copy] load_stats.pl added as load_stats.pl is outdated.
 [copy] No sources found.
 [copy] Copying 1 file to /u/kumari/main/shailja/bin/share
 [copy] Copying
/u/kumari/main/shailja/src/java/a/utd/writer/realtimelagstats/load_stats.pl
to /u/kumari/main/shailja/bin/share/load_stats.pl
  [ant] Exiting /u/kumari/main/shailja/src/java/a/build.xml.

BUILD FAILED
/u/kumari/main/shailja/src/java/build.xml:13: The following error occurred
while executing this line:
/u/kumari/main/shailja/src/java/a/build.xml:17: The following error occurred
while executing this line:
/u/kumari/main/shailja/src/java/a/guas/build.xml:193: The following error
occurred while executing this line:
/u/kumari/main/shailja/src/java/a/guas/utd/build.xml:60: The following error
occurred while executing this line:
/u/kumari/main/shailja/src/java/a/guas/utd/writer/build.xml:69: The
following error occurred while executing this line:
/etc/ScriptBuild.xml:50: 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)
at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:839)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:508)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1212)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.ex

Re: Augment feature

2010-04-13 Thread Jean-Louis Boudart
>
>
>> Of course, if people think that this hasn't been debated enough then we
>> can continue the conversation and have the vote later.
>>
>
> Let's please consider the fact, as pointed out by Antoine, that there is
> more or less no way to prevent manipulation of references by Java or
> scripted tasks.  That being the case it doesn't seem like a good investment
> of cycles to prevent this task from functioning.  With my just-committed
> bugfix to RuntimeConfigurable, my current cut of AugmentReference code is
> completely self-contained which means that any third party could write the
> task and our proposed 'final' attribute would be meaningless.  What might be
> doable is creating another task that would make read-only a reference by
> dynamically generating proxies that would hide setter-type (any
> parameterized?) methods, or something along those lines.  _That_ could stop
>  and other avenues from modifying a reference if that's really what
> we wanted.  So I'd say these are separate concerns.
>
Sounds good to me

-- 
Jean Louis Boudart
Independent consultant
Project Lead http://www.easyant.org


Security Incident involving ASF's Jira, Bugzilla and Confluence Services

2010-04-13 Thread Stefan Bodewig
Hi all,

if you own an account at one of ASF's Bugzilla (issue tracker used by
Ant and the Antlibs), JIRA (issue tracker used by Ivy and IvyDE) or
Confluence (wiki used by Ivy and IvyDE) services you should read



If your service passwords are too simple, you may better consider them
compromised - this is even more true if you logged in to JIRA over the
past week.

All users should better change their passwords - and ensure they haven't
used the same password for anything valuable anywhere else, but you
haven't done that anyway.

Cheers

Stefan

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