Re: cvs commit: ant/src/etc/testcases/types filelist.xml

2004-02-26 Thread Antoine Lévy-Lambert
Peter Reilly wrote:
Hi,
I have added a nested file element to filelist,
used as follows:

  
  
  

a) Is this change ok?
Yes, it is OK. I do not understand too well the advantage of the 
filelist with nested  element
compared to a fileset with nested include elements (or with nested 
 selector arguments). Actually the nested include or filename 
can also refer to very specific files,
which also may or may not exist.
Do we have tasks which support filelist(s) and do not support fileset(s) ?

b) Should it be in ant 1.6.2
+0 - depends on  the answer to the question in a)
c) Could someone run the unittests on windows please  ;-)
The unit tests pass.
BTW ModifiedSelectorTest again failed under cygwin when started with 
./build.sh -D"test.haltonfailure=no" test
I saw this :
   [junit] Testcase: 
testScenarioCustomSelectorSettings(org.apache.tools.ant.types.selectors.ModifiedSelectorTest):
Caused an ERROR
   [junit] C:\dev\asf\ant.head\src\etc\testcases\types\bootstrap\lib 
not found.
   [junit] 
C:\dev\asf\ant.head\src\etc\testcases\types\selectors.xml:132: 
C:\dev\asf\ant.head\src\etc\testcases\types\bootstrap\lib not found.


Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Urgent Please help with invoking ftp client on windows with a nt

2004-02-26 Thread Matt Benson
--- "Majumdar, Anamitra" <[EMAIL PROTECTED]> wrote:
> Hi did send my query to user's list but did not
> receive a reply.
> Can you please provide me with an answer
> 

Hmm.  I never saw a post come through the user list. 
Are you subscribed?  I'm not sure what happens to
messages from non-members.

-Matt

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent Please help with invoking ftp client on windows with a nt

2004-02-26 Thread Majumdar, Anamitra
Hi did send my query to user's list but did not receive a reply.
Can you please provide me with an answer

Thanks
Anamitra
*650-432-4696


-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 12:03 PM
To: Ant Developers List
Subject: RE: Urgent Please help with invoking ftp client on windows with
a nt


--- "Majumdar, Anamitra" <[EMAIL PROTECTED]> wrote:
> What is the e-mail id for ant users list.

user@ant.apache.org


__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent Please help with invoking ftp client on windows with a nt

2004-02-26 Thread Matt Benson
--- "Majumdar, Anamitra" <[EMAIL PROTECTED]> wrote:
> What is the e-mail id for ant users list.

user@ant.apache.org


__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent Please help with invoking ftp client on windows with a nt

2004-02-26 Thread Majumdar, Anamitra
What is the e-mail id for ant users list.

Thanks
Anamitra
*650-432-4696


-Original Message-
From: Kenneth Wood [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 11:56 AM
To: Ant Developers List
Subject: RE: Urgent Please help with invoking ftp client on windows with
a nt


I would begin by requesting help from the correct group.
This is the Ant DEVELOPERS list, your question is more
appropriate for the Ant USERS list.

-Original Message-
From: Majumdar, Anamitra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 26, 2004 1:50 PM
To: 'Ant Developers List'
Subject: Urgent Please help with invoking ftp client on windows with ant


Can somebody tell me how do I call  windows ftp client shell from and using
the exec or apply task

I am using syntax

 
  


and I am receiving this error

 [exec] User (10.200.141.143:(none)):
 [exec] java.lang.reflect.InvocationTargetException
 [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 [exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 [exec] at java.lang.reflect.Method.invoke(Method.java:324)
 [exec] at
org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDes
troyer.ja
 [exec] at
org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:
186)
 [exec] at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
 [exec] at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:525)
 [exec] at
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:566)
 [exec] at
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:415)
 [exec] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
 [exec] at org.apache.tools.ant.Task.perform(Task.java:364)
 [exec] at org.apache.tools.ant.Target.execute(Target.java:301)
 [exec] at org.apache.tools.ant.Target.performTasks(Target.java:328)
 [exec] at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
 [exec] at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
 [exec] at org.apache.tools.ant.Main.runBuild(Main.java:632)
 [exec] at org.apache.tools.ant.Main.startAnt(Main.java:183)
 [exec] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
 [exec] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
 [exec] Caused by: java.lang.IllegalStateException: Shutdown in progress
 [exec] at java.lang.Shutdown.remove(Shutdown.java:102)
 [exec] at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
 [exec] ... 20 more
 [exec] Result: 1

BUILD SUCCESSFUL
Total time: 26 seconds


Please help


Thanks
Anamitra
*650-432-4696


-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 7:10 AM
To: Ant Developers List
Subject: Re: cvs diff format


--- Peter Reilly <[EMAIL PROTECTED]> wrote:
> Check the contents of your
> ~/.cvsrc file.

Hmmm.  I didn't have one.  Maybe it was inadvertently
blown away...

> It should have a line:
> diff -u
> 

That did it.  Thanks Peter!

-Matt

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent Please help with invoking ftp client on windows with a nt

2004-02-26 Thread Majumdar, Anamitra
I am not able to use ant FTP task because it does not support 
the rename action but I need this action.I am using ant 1.6.
The ftp script that I am using is as follows

echo %1 %2
FTP -d -s:Outgoing-TC-Compressed.ftp 10.200.141.143 >faftp.log
which is in a windows bat file


The contents of Outgoing-TC-Compressed is
ftp
nfd
status
binary
put ftphdr.@@@ /dev/tfs/BiiColComReq
put ftpdat.@@@ /dev/tfs/BiiColCom
rename /dev/tfs/BiiColCom /dev/tfs/END
quit


Even when I am running the bat file from ant it does not work.
Please suggest.


Thanks
Anamitra
*650-432-4696


-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 11:54 AM
To: Ant Developers List
Subject: Re: Urgent Please help with invoking ftp client on windows with
ant


--- "Majumdar, Anamitra" <[EMAIL PROTECTED]> wrote:
> Can somebody tell me how do I call  windows ftp
> client shell from and using the exec or apply task
> 
> I am using syntax
> 
>   dir="${Outgoing.Input.Directory}/ftp" 
> executable="c:/winnt/system32/ftp.exe "  >
> 
>   
> 

This will not work.  In theory you could use a script
with your FTP executable for this, but the optional
 task would probably serve you better.  In either
case this is a question for the user list, not the
developer list.

-Matt


__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent Please help with invoking ftp client on windows with a nt

2004-02-26 Thread Kenneth Wood
I would begin by requesting help from the correct group.
This is the Ant DEVELOPERS list, your question is more
appropriate for the Ant USERS list.

-Original Message-
From: Majumdar, Anamitra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 26, 2004 1:50 PM
To: 'Ant Developers List'
Subject: Urgent Please help with invoking ftp client on windows with ant


Can somebody tell me how do I call  windows ftp client shell from and using
the exec or apply task

I am using syntax

 
  


and I am receiving this error

 [exec] User (10.200.141.143:(none)):
 [exec] java.lang.reflect.InvocationTargetException
 [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 [exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 [exec] at java.lang.reflect.Method.invoke(Method.java:324)
 [exec] at
org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDes
troyer.ja
 [exec] at
org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:
186)
 [exec] at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
 [exec] at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:525)
 [exec] at
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:566)
 [exec] at
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:415)
 [exec] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
 [exec] at org.apache.tools.ant.Task.perform(Task.java:364)
 [exec] at org.apache.tools.ant.Target.execute(Target.java:301)
 [exec] at org.apache.tools.ant.Target.performTasks(Target.java:328)
 [exec] at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
 [exec] at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
 [exec] at org.apache.tools.ant.Main.runBuild(Main.java:632)
 [exec] at org.apache.tools.ant.Main.startAnt(Main.java:183)
 [exec] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
 [exec] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
 [exec] Caused by: java.lang.IllegalStateException: Shutdown in progress
 [exec] at java.lang.Shutdown.remove(Shutdown.java:102)
 [exec] at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
 [exec] ... 20 more
 [exec] Result: 1

BUILD SUCCESSFUL
Total time: 26 seconds


Please help


Thanks
Anamitra
*650-432-4696


-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 7:10 AM
To: Ant Developers List
Subject: Re: cvs diff format


--- Peter Reilly <[EMAIL PROTECTED]> wrote:
> Check the contents of your
> ~/.cvsrc file.

Hmmm.  I didn't have one.  Maybe it was inadvertently
blown away...

> It should have a line:
> diff -u
> 

That did it.  Thanks Peter!

-Matt

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent Please help with invoking ftp client on windows with ant

2004-02-26 Thread Matt Benson
--- "Majumdar, Anamitra" <[EMAIL PROTECTED]> wrote:
> Can somebody tell me how do I call  windows ftp
> client shell from and using the exec or apply task
> 
> I am using syntax
> 
>   dir="${Outgoing.Input.Directory}/ftp" 
> executable="c:/winnt/system32/ftp.exe "  >
> 
>   
> 

This will not work.  In theory you could use a script
with your FTP executable for this, but the optional
 task would probably serve you better.  In either
case this is a question for the user list, not the
developer list.

-Matt


__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Urgent Please help with invoking ftp client on windows with ant

2004-02-26 Thread Majumdar, Anamitra
Can somebody tell me how do I call  windows ftp client shell from and using the 
exec or apply task

I am using syntax

 
  


and I am receiving this error

 [exec] User (10.200.141.143:(none)):
 [exec] java.lang.reflect.InvocationTargetException
 [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [exec] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [exec] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [exec] at java.lang.reflect.Method.invoke(Method.java:324)
 [exec] at 
org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.ja
 [exec] at 
org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:186)
 [exec] at 
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
 [exec] at 
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:525)
 [exec] at 
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:566)
 [exec] at 
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:415)
 [exec] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
 [exec] at org.apache.tools.ant.Task.perform(Task.java:364)
 [exec] at org.apache.tools.ant.Target.execute(Target.java:301)
 [exec] at org.apache.tools.ant.Target.performTasks(Target.java:328)
 [exec] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
 [exec] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
 [exec] at org.apache.tools.ant.Main.runBuild(Main.java:632)
 [exec] at org.apache.tools.ant.Main.startAnt(Main.java:183)
 [exec] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
 [exec] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
 [exec] Caused by: java.lang.IllegalStateException: Shutdown in progress
 [exec] at java.lang.Shutdown.remove(Shutdown.java:102)
 [exec] at java.lang.Runtime.removeShutdownHook(Runtime.java:218)
 [exec] ... 20 more
 [exec] Result: 1

BUILD SUCCESSFUL
Total time: 26 seconds


Please help


Thanks
Anamitra
*650-432-4696


-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 7:10 AM
To: Ant Developers List
Subject: Re: cvs diff format


--- Peter Reilly <[EMAIL PROTECTED]> wrote:
> Check the contents of your
> ~/.cvsrc file.

Hmmm.  I didn't have one.  Maybe it was inadvertently
blown away...

> It should have a line:
> diff -u
> 

That did it.  Thanks Peter!

-Matt

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: ant build.xml

2004-02-26 Thread Antoine Lévy-Lambert
Dominique Devienne wrote:
I guess finding the regression is just one aspect of the equation, but I'm
kind of surprised this is simply put on the back burner like that...
Is this a difficult problem to fix? Or people simply don't mind getting on
error on duplicate targets? --DD
 

I do not know whether the problem is difficult to fix, I did not put 
much my nose in the Project/ProjectHelper2/InstrospectionHelper and 
tutti quanti
core classes.

I think that Jan just wants to avoid getting every day the nag from gump.
I hope that someone will fix it though. 8-)
Antoine
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: cvs commit: ant build.xml

2004-02-26 Thread Dominique Devienne
I guess finding the regression is just one aspect of the equation, but I'm
kind of surprised this is simply put on the back burner like that...

Is this a difficult problem to fix? Or people simply don't mind getting on
error on duplicate targets? --DD

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> 
> jhm 2004/02/26 08:35:26
>   Exclude ProjectTest from being executed (hopefully :), because of
> testDuplicateTarget.
>   +
>   +

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Closing down ant-dev@jakarta and ant-user@jakarta?

2004-02-26 Thread Antoine Lévy-Lambert
Matt Benson wrote:
--- [EMAIL PROTECTED] wrote:
 

+1 for closing.
   

+1.
-Matt
 

+1
Antoine
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 27261] - Properties.propertyNames() instead of .keys()

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27261

Properties.propertyNames() instead of .keys()





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 18:30 ---
P.S.  I think the best things to search on are thus System.getProperties(),
keys(), and get().  Unfortunately the latter searches are harder with a
text-based search.  Even with a static analyzer the keys() and get() calls may
often appear as being through Hashtable rather than Properties (as Properties
does not override these).  At any rate, I've been pouring through static
analyzer info (from my own custom/internal tool).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27261] - Properties.propertyNames() instead of .keys()

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27261

Properties.propertyNames() instead of .keys()





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 18:27 ---
Mike and I are unaware of any issues with the

  System.getProperties().put(...)

calls noted in the last comment.

Clearly any Properties.keys() or Properties.get() usage will be a 
problem *IF* the Properties object has defaults.

Also, it is clear that any System.getProperties() object may well have 
defaults thanks to System.setProperties() usages and we should thus look for
this in conjunction with keys() and/or get() usage.

It is unclear which other Properties usages (some of which are currently typed
as Hashtables but pass Properties objects) should be switched to be safe with
respect to defaults.

All in all this smacks of a design bug in Properties.  The default keys() and
get() should really operate on the whole property set -- including defaults. 
One should have to go out of one's way to avoid including them.  I suspect this
behavior is an unfortunate side-effect of implementing Properties as a fairly
lazy sub-class of Hashtable rather than as a aggregation or some such.

Whatever the case, Ant needs to deal with this situation better.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27261] - Properties.propertyNames() instead of .keys()

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27261

Properties.propertyNames() instead of .keys()





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 18:01 ---
I used a directory grep:
dgrep System.getProperties "*.java"
DGrepping /home/preilly/cvs/ant/src/main/org/apache/tools/ant for
System.getProperties
./Diagnostics.java:270:for (Enumeration keys =
System.getProperties().keys();
./Project.java:823:Properties systemP = System.getProperties();
./taskdefs/Execute.java:976:System.getProperties().put("user.dir",
workingDir.getAbsolutePath());
./taskdefs/Execute.java:980:   
System.getProperties().put("user.dir", antWorkingDirectory);
./taskdefs/optional/NetRexxC.java:736:Properties currentProperties =
System.getProperties();
./taskdefs/optional/NetRexxC.java:796:currentProperties =
System.getProperties();
./taskdefs/optional/ejb/IPlanetEjbc.java:282:Properties props =
System.getProperties();
./taskdefs/optional/ejb/IPlanetEjbc.java:291:Properties props =
System.getProperties();
./taskdefs/optional/junit/JUnitTask.java:931:log("Using System
properties " + System.getProperties(),
./taskdefs/optional/junit/JUnitTestRunner.java:512:Hashtable p =
System.getProperties();
./taskdefs/optional/net/SetProxy.java:177:Properties sysprops =
System.getProperties();
./taskdefs/optional/net/SetProxy.java:261:   
System.getProperties().put("http.proxySet", new Boolean(setProxy).toString());
./taskdefs/optional/splash/SplashTask.java:124:   
System.getProperties().put("http.proxySet", "true");
./taskdefs/optional/splash/SplashTask.java:125:   
System.getProperties().put("http.proxyHost", proxy);
./taskdefs/optional/splash/SplashTask.java:126:   
System.getProperties().put("http.proxyPort", port);
./taskdefs/optional/splash/SplashTask.java:139:   
System.getProperties().put("http.proxySet", "false");
./taskdefs/optional/splash/SplashTask.java:140:S
ystem.getProperties().put("http.proxyHost", "");
./taskdefs/optional/splash/SplashTask.java:141:   
System.getProperties().put("http.proxyPort", "");
./types/CommandlineJava.java:137:sys = System.getProperties();
./types/CommandlineJava.java:490:size += 
System.getProperties().size();
./types/PropertySet.java:161:prj == null ? System.getProperties() :
prj.getProperties();
./types/PropertySet.java:237:e2 = 
System.getProperties().keys();
./types/resolver/ApacheCatalogResolver.java:85:   
System.getProperties().put("xml.catalog.className",

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27261] - Properties.propertyNames() instead of .keys()

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27261

Properties.propertyNames() instead of .keys()





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 17:22 ---
I'm not sure about 15 places, though there may be that many.  There are only 6
System.getProperties() calls, though I've not examined where the results may all
be passed and mis-used, nor looked into which other usages of Properties.keys()
may lead to similar issues with other Properties objects which might have 
defaults.

I did note that I missed at least one other definite patch area:
  PropertySet.addPropertyNames()

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27261] - Properties.propertyNames() instead of .keys()

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27261

Properties.propertyNames() instead of .keys()





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 16:58 ---
There seems to be around ~15 places in the
code where the system properties hashtable is
used/modified directly incorrectly.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27261] - Properties.propertyNames() instead of .keys()

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27261

Properties.propertyNames() instead of .keys()

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Normal  |Major
   Priority|Other   |High



--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 16:50 ---
There appear to be at least 3 areas potentially affected:
  Project.setSystemProperties() [noted in the original description]
  Diagnostics.doReportSystemProperties()
  CommandlineJava.setSystem()

There may well be others.  I found these by examining usage of
System.getProperties() in close proximity to Hashtable/Properties.keys().

Note that any larger process embedding Ant or any custom task can throw these
areas of Ant into disarray (i.e. into inability to find key JVM system
properties) by simply doing:
  Properties  props = new Properties( System.getProperties() );
  ... add or load additional properties into 'props' ...
  System.setProperties( props );

As long as Ant does not carefully use propertyNames() and getProperty() rather
than keys() and get(), any such calling program or custom task will hide all
system properties from these portions of Ant -- with disastrous and hard to
trace effects.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: ant build.xml

2004-02-26 Thread jhm
jhm 2004/02/26 08:35:26

  Modified:.build.xml
  Log:
  Exclude ProjectTest from being executed (hopefully :), because of 
testDuplicateTarget.
  
  Revision  ChangesPath
  1.411 +7 -0  ant/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/ant/build.xml,v
  retrieving revision 1.410
  retrieving revision 1.411
  diff -u -r1.410 -r1.411
  --- build.xml 23 Feb 2004 14:14:36 -  1.410
  +++ build.xml 26 Feb 2004 16:35:26 -  1.411
  @@ -329,6 +329,13 @@
 
   
   
  +
  +
 
   
 

DO NOT REPLY [Bug 27219] - in an macro outputs wrong

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27219

 in an  macro outputs wrong





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 16:12 ---
I do not think this is necessary. I think the current behavior is completely 
fine. Can someone give me a good example why changing this will make ANT 
better in some sense? 

What is the behavior when the failure occurs inside  or ?
Don't we get the same stack trace as we do for ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: To find web.xml in websphere

2004-02-26 Thread Steve Loughran
Radha Sangal wrote:
Hi, 

I need to locate web.xml in "config/cells" dir dynamically , can I write
a script for that ?
Can you ask in the ant user mail list, as that is the place for such 
questions.

-steve
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 27261] New: - Properties.propertyNames() instead of .keys()

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27261

Properties.propertyNames() instead of .keys()

   Summary: Properties.propertyNames() instead of .keys()
   Product: Ant
   Version: 1.6.1
  Platform: All
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Core
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Project.setSystemProperties(), so that it uses Properties.keys() instead of
propertyNames(), which excludes properties that have moved into the default
bucket.  Also, getProperty() needs to be used instead of getKey().

There are other places throughout Ant where this misuse occurs.  See this
(http://marc.theaimsgroup.com/?l=ant-user&m=107289321531422&w=2) mail list
posting for additional information.

The method recoded like this, solves the problem for my scenario:

public void setSystemProperties() {
Properties systemP = System.getProperties();  // changed from keys()
Enumeration e = systemP.propertyNames();
while (e.hasMoreElements()) {
Object name = e.nextElement();
String value = systemP.getProperty(name.toString()).toString();  //
changed from get()
this.setPropertyInternal(name.toString(), value);
}
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Closing down ant-dev@jakarta and ant-user@jakarta?

2004-02-26 Thread Matt Benson
--- [EMAIL PROTECTED] wrote:
> +1 for closing.

+1.

-Matt

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27226] - Tar files with compression ="gzip" cannot be unzipped on Solaris

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27226

Tar  files with compression ="gzip" cannot be unzipped on Solaris

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 15:49 ---
Well done Alexey, Gabriele is using unzip instead of gunzip.

preilly:~/tmp > tar czf m.tar.gz mleak.txt
preilly:~/tmp > unzip m.tar.gz
Archive:  m.tar.gz
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of m.tar.gz or
m.tar.gz.zip, and cannot find m.tar.gz.ZIP, period.
preilly:~/tmp > gunzip m.tar.gz
preilly:~/tmp >

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27226] - Tar files with compression ="gzip" cannot be unzipped on Solaris

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27226

Tar  files with compression ="gzip" cannot be unzipped on Solaris





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 15:39 ---
This is strange - gzip and zip formats are different.
Did somebody replaced gzip with zip on your Soralis computer?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



To find web.xml in websphere

2004-02-26 Thread Radha Sangal
Hi, 

I need to locate web.xml in "config/cells" dir dynamically , can I write
a script for that ?

Thanks in advance

radha



Re: Ant requiring tools.jar / SUN compiler tools

2004-02-26 Thread Steve Loughran
Sonja Krause-Harder wrote:
Hi,
In org/apache/tools/ant/launch/Locator.java, the comment
for getToolsJar() states:
/**
 * Get the File necessary to load the Sun compiler tools. (...)
 */
... and then tries to either load the compiler classes or find 
tools.jar in the system.

Does this mean that ant can't run without an implementation of the
com.sun.tools.javac.* classes? Do you know if there is a free (cleanroom)
implementation of these classes available? Are the classes also needed
when I only want to use gcj as build.compiler?

tools.jar is used for lots of things -rmic, javadoc, javah. Ant will 
still run if it cannot find the file, and so your build file may or may 
not work, depending on what tasks you use and how they are configured

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


read it immediately

2004-02-26 Thread peter
i'm waiting
<>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Ant requiring tools.jar / SUN compiler tools

2004-02-26 Thread Sonja Krause-Harder
Hi,

In org/apache/tools/ant/launch/Locator.java, the comment
for getToolsJar() states:

/**
 * Get the File necessary to load the Sun compiler tools. (...)
 */

... and then tries to either load the compiler classes or find 
tools.jar in the system.

Does this mean that ant can't run without an implementation of the
com.sun.tools.javac.* classes? Do you know if there is a free (cleanroom)
implementation of these classes available? Are the classes also needed
when I only want to use gcj as build.compiler?

Any information appreciated - thanks,

Sonja

-- 
Sonja Krause-Harder ([EMAIL PROTECTED])   SuSE Linux AG


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PropertySet

2004-02-26 Thread Steve Cohen
Thanks, got it.  Duh.  Properties are immutable.  I wasn't thinking.

On Thursday 26 February 2004 7:15 am, Stefan Bodewig wrote:
> On Thu, 26 Feb 2004, Steve Cohen <[EMAIL PROTECTED]> wrote:
> > How do you negate a non-boolean property?  How do you negate null?
>
> I think Matt wants to negate the selection of properties that makes up
> the property set.  A way to say "all properties except those that
> start with prefix foo".
>
> Stefan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Closing down ant-dev@jakarta and ant-user@jakarta?

2004-02-26 Thread Jan . Materne
+1 for closing.
So users of the old adresses are forced to update (I can simplify my
mail-rules :).
And if someone is surprised a look at the homepage should be the first thing
...

Jan


> -Original Message-
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 2:22 PM
> To: [EMAIL PROTECTED]
> Subject: Closing down [EMAIL PROTECTED] and [EMAIL PROTECTED]
> 
> 
> Hi,
> 
> since we've moved to ant.apache.org we've kept the old list addresses
> as aliases for the new ones.  About 50% of the spam I receive as a
> moderator (only a drop in the ocean, though) goes to the old
> addresses, would anybody object if we close them down?
> 
> Stefan
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Closing down ant-dev@jakarta and ant-user@jakarta?

2004-02-26 Thread Stefan Bodewig
Hi,

since we've moved to ant.apache.org we've kept the old list addresses
as aliases for the new ones.  About 50% of the spam I receive as a
moderator (only a drop in the ocean, though) goes to the old
addresses, would anybody object if we close them down?

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PropertySet

2004-02-26 Thread Stefan Bodewig
On Thu, 26 Feb 2004, Steve Cohen <[EMAIL PROTECTED]> wrote:

> How do you negate a non-boolean property?  How do you negate null?

I think Matt wants to negate the selection of properties that makes up
the property set.  A way to say "all properties except those that
start with prefix foo".

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PropertySet

2004-02-26 Thread Matt Benson
--- Steve Cohen <[EMAIL PROTECTED]> wrote:
> How do you negate a non-boolean property?  How do
> you negate null?
> 
Answer:  You don't.  You negate the selection
criteria, not the values... :)

example:









-Matt

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PropertySet

2004-02-26 Thread Steve Cohen
On Thursday 26 February 2004 4:12 am, Stefan Bodewig wrote:
> On Fri, 20 Feb 2004, Matt Benson <[EMAIL PROTECTED]> wrote:
> > I have put together a patch for negating the selected
> > properties of a PropertySet.
>
> Sounds useful.
>
> Stefan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

How do you negate a non-boolean property?  How do you negate null?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



hello

2004-02-26 Thread jtulley
here, the cheats
<>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: cvs commit: ant/src/etc/testcases/types filelist.xml

2004-02-26 Thread Jan . Materne
> Hi Jan,
> as regards the tests - it looks like
> you are using the installed ant
> classes with the cvs ant test classes.
> 
> Always with running the tests, I do:
> cd ~/cvs/ant
> rm -rf bootstrap build; ./build.sh test -Dtest.haltonfailure=yes


I´d thought about that, too. So I updated the sourcetree, cleaned the
bootstrap,build,... and got

[junit] Testsuite: org.apache.tools.ant.types.FileListTest
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0,16 sec

(and of course the failing double-target-definition test).


Jan


Re: cvs commit: ant/src/etc/testcases/types filelist.xml

2004-02-26 Thread Peter Reilly
Hi Jan,
as regards the tests - it looks like
you are using the installed ant
classes with the cvs ant test classes.
Always with running the tests, I do:
cd ~/cvs/ant
rm -rf bootstrap build; ./build.sh test -Dtest.haltonfailure=yes
Peter
[EMAIL PROTECTED] wrote:
a) Is this change ok?
   

+1
 

b) Should it be in ant 1.6.2
   

+1
 

c) Could someone run the unittests on windows please  ;-) 
   

Windows 2000 SP 2
Java build 1.4.2_03-b02
[junit] Testcase: testDuplicateTargets(org.apache.tools.ant.ProjectTest):
FAILED
 --> as discussed earlier
[junit] Testcase:
testReplaceStrings(org.apache.tools.ant.filters.TokenFilterTest): FAILED
[junit] expecting log to contain "bar bar bar" log was "  bar foo foo
"
[junit] junit.framework.AssertionFailedError: expecting log to contain "bar
bar bar" log was "  bar foo foo  "
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at
org.apache.tools.ant.BuildFileTest.assertLogContaining(BuildFileTest.java:81
)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:92
)
[junit] at
org.apache.tools.ant.filters.TokenFilterTest.testReplaceStrings(TokenFilterT
est.java:86)
 --> ???
[junit] Testcase:
testFilterReplaceStrings(org.apache.tools.ant.filters.TokenFilterTest):
FAILED
[junit] expecting log to contain "bar bar bar" log was "  bar foo foo
"
[junit] junit.framework.AssertionFailedError: expecting log to contain "bar
bar bar" log was "  bar foo foo  "
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at
org.apache.tools.ant.BuildFileTest.assertLogContaining(BuildFileTest.java:81
)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:92
)
[junit] at
org.apache.tools.ant.filters.TokenFilterTest.testFilterReplaceStrings(TokenF
ilterTest.java:147)
[junit] Testcase: testEscape(org.apache.tools.ant.taskdefs.MacroDefTest):
FAILED
[junit] expected:<...b is [EMAIL PROTECTED]> but was:<[EMAIL PROTECTED] is 
avalue@@@{b}>
[junit] junit.framework.ComparisonFailure: expected:<...b is [EMAIL PROTECTED]>
but was:<[EMAIL PROTECTED] is avalue@@@{b}>
[junit] at junit.framework.Assert.assertEquals(Assert.java:81)
[junit] at junit.framework.Assert.assertEquals(Assert.java:87)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:72)
[junit] at
org.apache.tools.ant.taskdefs.MacroDefTest.testEscape(MacroDefTest.java:103)

[junit] Testcase:
testAttributeDescription(org.apache.tools.ant.taskdefs.MacroDefTest):
Caused an ERROR
[junit] required attribute description not set
[junit]
C:\seu\cvs-downloads\ant\ant\src\etc\testcases\taskdefs\macrodef.xml:168:
required attribute description not set
[junit] at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:302)
[junit] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[junit] at org.apache.tools.ant.Task.perform(Task.java:364)
[junit] at org.apache.tools.ant.Target.execute(Target.java:301)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[junit] at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:232)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:70)
[junit] at
org.apache.tools.ant.taskdefs.MacroDefTest.testAttributeDescription(MacroDef
Test.java:108)
[junit] Testcase: testNested(org.apache.tools.ant.types.FileListTest):
Caused an ERROR
[junit] The  type doesn't support the nested "file" element.
[junit]
C:\seu\cvs-downloads\ant\ant\src\etc\testcases\types\filelist.xml:26: The
 type doesn't support the nested "file" element.
[junit] at
org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelp
er.java:573)
[junit] at
org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:328)
[junit] at
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
[junit] at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
[junit] at org.apache.tools.ant.Task.perform(Task.java:363)
[junit] at org.apache.tools.ant.Target.execute(Target.java:301)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[junit] at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:232)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:70)
[junit] at
org.apache.tools.ant.types.FileListTest.testNested(FileListTest.java:150)
Maybe something is not uptodate on my local machine.
I´ll do an (cvsgrab) update...

 

The org.apache.tools.ant.ProjectTest.testDuplicateTargets fails 
however :-( (both on linux (fedora core) and XP / both s

Re: and XML NS hell ;-)

2004-02-26 Thread Peter Reilly
Dominique Devienne wrote:
From: Peter Reilly [mailto:[EMAIL PROTECTED]
Ah, I see, you are trying to
use the contents of "sources" in javc and also in bm:lsync.
This is indeed XML NS hell!
The problem is that the ns uri and local name of the Unknown elements
are given to the elements in the calling macro.
In ant 1.6.0+, the namespace of elements discovered by reflection take
the namespace uri of type/task that contains the element (Note this is the
uri and not the localname).
The enclosed patch will allow the namespace of nested elements to be
either the ant uri or the namespace of the containing type/task.
   

I see this is a two liner, that even puts back in commented out code...
What's the problem with checking it in?
When Ant 1.6.2 being built with it ;-)
 

It was discussed for ant 1.6.0, but was voted down:
http://marc.theaimsgroup.com/?l=ant-dev&m=106848848930806&w=2
(option c).
Why am I the one always falling in the XML NS traps :-( --DD
 

:-)
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PropertySet

2004-02-26 Thread Stefan Bodewig
On Fri, 20 Feb 2004, Matt Benson <[EMAIL PROTECTED]> wrote:

> I have put together a patch for negating the selected
> properties of a PropertySet.

Sounds useful.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: and XML NS hell ;-)

2004-02-26 Thread Stefan Bodewig
On Tue, 24 Feb 2004, Dominique Devienne <[EMAIL PROTECTED]> wrote:

> Why am I the one always falling in the XML NS traps :-(

Since you are the only one using them 8-)

Thank you for that, by the way.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AntStructure and optional tasks

2004-02-26 Thread Jan . Materne
> I don't know of an automated way to document tasks that are not
> loadable by Ant right now.  The xdocs proposal should have all the
> data necessary for it.  If it can create manual pages for a task, it
> should be able to create a DTD snippet as well.

And the data for the Eclipse tooltips ... 


Jan


RE: cvs commit: ant/src/etc/testcases/types filelist.xml

2004-02-26 Thread Jan . Materne
> a) Is this change ok?
+1

> b) Should it be in ant 1.6.2
+1

> c) Could someone run the unittests on windows please  ;-) 
Windows 2000 SP 2
Java build 1.4.2_03-b02

[junit] Testcase: testDuplicateTargets(org.apache.tools.ant.ProjectTest):
FAILED
  --> as discussed earlier


[junit] Testcase:
testReplaceStrings(org.apache.tools.ant.filters.TokenFilterTest): FAILED
[junit] expecting log to contain "bar bar bar" log was "  bar foo foo
"
[junit] junit.framework.AssertionFailedError: expecting log to contain "bar
bar bar" log was "  bar foo foo  "
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at
org.apache.tools.ant.BuildFileTest.assertLogContaining(BuildFileTest.java:81
)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:92
)
[junit] at
org.apache.tools.ant.filters.TokenFilterTest.testReplaceStrings(TokenFilterT
est.java:86)
  --> ???


[junit] Testcase:
testFilterReplaceStrings(org.apache.tools.ant.filters.TokenFilterTest):
FAILED
[junit] expecting log to contain "bar bar bar" log was "  bar foo foo
"
[junit] junit.framework.AssertionFailedError: expecting log to contain "bar
bar bar" log was "  bar foo foo  "
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at
org.apache.tools.ant.BuildFileTest.assertLogContaining(BuildFileTest.java:81
)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:92
)
[junit] at
org.apache.tools.ant.filters.TokenFilterTest.testFilterReplaceStrings(TokenF
ilterTest.java:147)


[junit] Testcase: testEscape(org.apache.tools.ant.taskdefs.MacroDefTest):
FAILED
[junit] expected:<...b is [EMAIL PROTECTED]> but was:<[EMAIL PROTECTED] is 
avalue@@@{b}>
[junit] junit.framework.ComparisonFailure: expected:<...b is [EMAIL PROTECTED]>
but was:<[EMAIL PROTECTED] is avalue@@@{b}>
[junit] at junit.framework.Assert.assertEquals(Assert.java:81)
[junit] at junit.framework.Assert.assertEquals(Assert.java:87)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:72)
[junit] at
org.apache.tools.ant.taskdefs.MacroDefTest.testEscape(MacroDefTest.java:103)



[junit] Testcase:
testAttributeDescription(org.apache.tools.ant.taskdefs.MacroDefTest):
Caused an ERROR
[junit] required attribute description not set
[junit]
C:\seu\cvs-downloads\ant\ant\src\etc\testcases\taskdefs\macrodef.xml:168:
required attribute description not set
[junit] at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:302)
[junit] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[junit] at org.apache.tools.ant.Task.perform(Task.java:364)
[junit] at org.apache.tools.ant.Target.execute(Target.java:301)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[junit] at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:232)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:70)
[junit] at
org.apache.tools.ant.taskdefs.MacroDefTest.testAttributeDescription(MacroDef
Test.java:108)


[junit] Testcase: testNested(org.apache.tools.ant.types.FileListTest):
Caused an ERROR
[junit] The  type doesn't support the nested "file" element.
[junit]
C:\seu\cvs-downloads\ant\ant\src\etc\testcases\types\filelist.xml:26: The
 type doesn't support the nested "file" element.
[junit] at
org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelp
er.java:573)
[junit] at
org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:328)
[junit] at
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
[junit] at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
[junit] at org.apache.tools.ant.Task.perform(Task.java:363)
[junit] at org.apache.tools.ant.Target.execute(Target.java:301)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[junit] at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:232)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:70)
[junit] at
org.apache.tools.ant.types.FileListTest.testNested(FileListTest.java:150)


Maybe something is not uptodate on my local machine.
I´ll do an (cvsgrab) update...




>> The org.apache.tools.ant.ProjectTest.testDuplicateTargets fails 
>> however :-( (both on linux (fedora core) and XP / both sun jdk 1.4.2_03)
> I think that this should be added to the "teststhatfail" reference in 
> build.xml until the fix for the problem is done.

Always learning new things :)
Didn´t know that there is such a section ... have to have a deeper look at
Ants bu

Re: cvs commit: ant WHATSNEW

2004-02-26 Thread Stefan Bodewig
On Thu, 26 Feb 2004, Peter Reilly <[EMAIL PROTECTED]> wrote:

>>On 24 Feb 2004, <[EMAIL PROTECTED]> wrote:
>>
>>>  Throw build exception if name attribute is missing in a
>>>  patternset
>>>
> This should be pattern or patternset#nameentry, it is used for
> "include" and "exclude" includesfile and excludesfile nested
> elements.

OK, now I get it.  Thanks

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: ant WHATSNEW

2004-02-26 Thread Peter Reilly
Stefan Bodewig wrote:
On 24 Feb 2004, <[EMAIL PROTECTED]> wrote:
 

 Throw build exception if name attribute is missing in a patternset
   

This should be pattern or patternset#nameentry, it is used for "include" 
and "exclude"
includesfile and excludesfile nested elements.

what about ?
 

This is fine...
 
   
 
 
   
 
   
 
works ok.
Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AntStructure and optional tasks

2004-02-26 Thread Stefan Bodewig
On Tue, 24 Feb 2004, Dale Anson <[EMAIL PROTECTED]> wrote:

> I noticed that the AntStructure task doesn't include the optional
> tasks in the dtd that it produces.

The optional tasks that are available to the currently running Ant
instance should be documented, aren't they?

I don't know of an automated way to document tasks that are not
loadable by Ant right now.  The xdocs proposal should have all the
data necessary for it.  If it can create manual pages for a task, it
should be able to create a DTD snippet as well.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: ant/src/etc/testcases/types filelist.xml

2004-02-26 Thread Stefan Bodewig
On Mon, 23 Feb 2004, Peter Reilly <[EMAIL PROTECTED]> wrote:

> a) Is this change ok?

+1

> b) Should it be in ant 1.6.2

+0

> c) Could someone run the unittests on windows please  ;-)

-0

8-)

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: ant WHATSNEW

2004-02-26 Thread Stefan Bodewig
On 24 Feb 2004, <[EMAIL PROTECTED]> wrote:

>   Throw build exception if name attribute is missing in a patternset

what about ?

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Authors tag

2004-02-26 Thread Stefan Bodewig
On Tue, 24 Feb 2004, Conor MacNeill <[EMAIL PROTECTED]>
wrote:

> We need to decide how we handle the author tags issue in the Ant
> project. We need a mechanism to credit people's contributions
> appropriately. The board suggests a CHANGES file. My preference
> would be to create a CONTRIBUTORS file listing names only, due to
> worms and spam (an interesting image to play with).
> 
> My preference would be to remove them in one fell swoop rather than
> piecemeal as we change files.

+1

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27244] - sync task don't copy the CVS direcoties

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27244

sync task don't copy the CVS direcoties

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 08:30 ---
By default fileset has a list of excluded files.
Use fileset defaultexcludes=no
see:
http://ant.apache.org/manual/CoreTypes/fileset.html
and
http://ant.apache.org/manual/dirtasks.html#defaultexcludes

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27244] - sync task don't copy the CVS direcoties

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27244

sync task don't copy the CVS direcoties

[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|sync task don't copy the CVS|sync task don't copy the CVS
   |direcoties  |direcoties



--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 08:28 ---
Especially the CVS directory is listed in the "default excludes". Means that 
all file based operations will ignore these directories/files if you don´t set 
the appropriate attribute of the task to false or use the  
task to specify alternatives.

Please check whether the CVS is the only directory not copied.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27244] New: - sync task don't copy the CVS direcoties

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27244

sync task don't copy the CVS direcoties 

   Summary: sync task don't copy the CVS direcoties
   Product: Ant
   Version: 1.6.1
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Core tasks
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


if a director is writed in high letters like the CVS Directory, then the sync 
task won't copy these files. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 27226] - Tar files with compression ="gzip" cannot be unzipped on Solaris

2004-02-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27226

Tar  files with compression ="gzip" cannot be unzipped on Solaris





--- Additional Comments From [EMAIL PROTECTED]  2004-02-26 07:22 ---
I think a bit of history is worth here.
I'm using ant through eclipse, and during the last year to build the tar package
i have been using releases of eclipse with embedded 1.5.x ant.
Recently i installed the last release of eclipse 3.0 that comes with and
embedded 1.6.0 ant and yesterday when i repackaged a new distribution of the
application i got the above problem.
Eclipse allows you to change the ANT_HOME to point to an external installation
of ant, so i installed ant 1.6.1 and redirected eclipse to use that
installation, no way, same problem.
So i redirected eclipse to use an old 1.5.3.1 installation that i still have in
my disk and in this case everything works as it always did in the last year.

I'm using GNU gzip and GNU tar on Solaris.
If i try to use unzip command on files built with 1.6.0 and 1.6.1, i get the
following error:
Archive:  infoviabilita-2.3.21-full-install.tar.gz
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of
infoviabilita-2.3.21-full-install.tar.gz or
infoviabilita-2.3.21-full-install.tar.gz.zip, and cannot find
infoviabilita-2.3.21-full-install.tar.gz.ZIP, period.

Which release of gzip and tar are you using?
Thanks, Gabriele

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[GUMP@lsd]: ant/test-ant failed

2004-02-26 Thread Gump Integration Build
To whom it may engage...

This is an automated request, but not an unsolicited one. For help 
understanding the request please visit 
http://jakarta.apache.org/gump/nagged.html, and/or contact [EMAIL PROTECTED]

Project test-ant has an issue affecting it's community integration, and has 
been outstanding for 7 runs. The current state is 'Failed', for reason 'Build 
Failed'

Full details are available at: 
http://lsd.student.utwente.nl/gump/ant/test-ant.html, however some snippets 
follow:

-  -  -  -  - -- --  G U M P

Gump provided these annotations:

 - Error - Failed with reason build failed


-  -  -  -  - -- --  G U M P
Gump performed this work:

Work Name: build_ant_test-ant (Type: Build)
State: Failed
Elapsed: 0 hours, 7 minutes, 24 seconds
Command Line: java -Djava.awt.headless=true 
-Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar:/data3/gump/xml-commons/java/external/build/xml-apis.jar:/data3/gump/xml-xalan/java/build/xalan-unbundled.jar
 org.apache.tools.ant.Main -Dbuild.clonevm=true 
-Dgump.merge=/data3/gump/gump/work/merge.xml -Dbuild.sysclasspath=only 
-Dtest.haltonfailure=false -Dant.home=/data3/gump/ant/dist -Dhave.cvs=true 
run-tests 
[Working Directory: /data3/gump/ant]
-

[junit] Testsuite: org.apache.tools.ant.util.regexp.JakartaRegexpRegexpTest
[junit] Tests run: 15, Failures: 0, Errors: 0, Time elapsed: 0.066 sec


[junit] Testsuite: org.apache.tools.ant.util.regexp.Jdk14RegexpMatcherTest
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0.007 sec


[junit] Testsuite: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexpTest
[junit] Tests run: 15, Failures: 0, Errors: 0, Time elapsed: 0.013 sec


[junit] Testsuite: org.apache.tools.mail.MailMessageTest
[junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.424 sec


[junit] Testsuite: org.apache.tools.tar.TarEntryTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.012 sec


[junit] Testsuite: org.apache.tools.tar.TarRoundTripTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.031 sec


[junit] Testsuite: org.apache.tools.zip.AsiExtraFieldTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.017 sec


[junit] Testsuite: org.apache.tools.zip.ExtraFieldUtilsTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.027 sec


[junit] Testsuite: org.apache.tools.zip.ZipEntryTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.029 sec


[junit] Testsuite: org.apache.tools.zip.ZipLongTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.014 sec


[junit] Testsuite: org.apache.tools.zip.ZipShortTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.005 sec



BUILD FAILED
/data3/gump/ant/build.xml:1565: At least one test has failed.

Total time: 7 minutes 20 seconds
-




To subscribe to this information via syndicated feeds:
RSS: http://lsd.student.utwente.nl/gump/ant/test-ant.rss | Atom: 
http://lsd.student.utwente.nl/gump/ant/test-ant.atom

--
Gump http://jakarta.apache.org/gump
[lsd]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting classpath of current task (inside the task)

2004-02-26 Thread Conor MacNeill
On Thu, 26 Feb 2004 00:50:10 +, Steve Loughran <[EMAIL PROTECTED]> 
wrote:

I have this custom task, which is loaded with a classloader that can 
declare not only the files containing the task, but implementing classes:

 
   
   
 
 
Only the task itself spawns a new JVM. How do I pass the classpath of 
the task itself down to the jvm? I cant use java.class.path as that is 
the classpath of ant, not the custom task. Do we explicitly or 
implicitly save the path used to declare a task?

If it is loaded through an AntClassLoader, you can ask that loader for 
it's effective classpath.

Conor
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


getting classpath of current task (inside the task)

2004-02-26 Thread Steve Loughran
I have this custom task, which is loaded with a classloader that can 
declare not only the files containing the task, but implementing classes:


  
  


Only the task itself spawns a new JVM. How do I pass the classpath of 
the task itself down to the jvm? I cant use java.class.path as that is 
the classpath of ant, not the custom task. Do we explicitly or 
implicitly save the path used to declare a task?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]