DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-12 07:35 ---
(In reply to comment #11)
> java.nio are only available as part of Java 1.4+, to accept this into the 
> trunk
> would mean a dependency on 1.4+ compiler to build ant [...]

Could probably be solved by adding to build.xml#needs.jdk1.4+ something like



meaning if compiled on JDK 1.3 the optimization would be unavailable.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r368283 - in /ant/core/trunk: docs/manual/OptionalTasks/xmlvalidate.html src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java

2006-01-11 Thread bodewig
Author: bodewig
Date: Wed Jan 11 21:28:07 2006
New Revision: 368283

URL: http://svn.apache.org/viewcvs?rev=368283&view=rev
Log:
2006

Modified:
ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java

Modified: ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html?rev=368283&r1=368282&r2=368283&view=diff
==
--- ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html (original)
+++ ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html Wed Jan 11 
21:28:07 2006
@@ -241,7 +241,7 @@
 Validate the file xml/endpiece-noSchema.xml against the schema xml/doc.xsd.
 
 
-Copyright © 2001-2002,2004-2005 The Apache Software 
Foundation. All rights
+Copyright © 2001-2002,2004-2006 The Apache Software 
Foundation. All rights
 Reserved.
 
 

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java?rev=368283&r1=368282&r2=368283&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java 
Wed Jan 11 21:28:07 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright  2002-2005 The Apache Software Foundation
+ * Copyright  2002-2006 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.



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



sandbox gendoc

2006-01-11 Thread Kev Jackson

Hi,

I've had a look through the sandbox and I noticed Dominque's (sp?) xml'd 
version of the docs.


As you know I had a play with DocBook-izing the manual last year and in 
the end the effort of manually altering every html page to be valid 
DocBook xml drove me mad (gibber etc).  Also there seemed to be a 
consensus (or rather a few well informed arguments against DocBook in 
general) that DocBook was not the way to go for the ant manual[1]


So I've had a look at the gendoc version (all 2 manual pages + whatsnew) 
and I thought that if this is at least in the sandbox, it's 99% more 
official than choosing a.n.other xml.


Given this I'm preparing a little script to automate the conversion of 
the html docs to the xmlised version in the sandbox.


So far I'm trying to get it to work correctly with echo, but most of the 
code is generic so when I get a passable version of that I'll refactor 
(a lot) and run it against the doc directory.


Given the formatting issues of html, I expect at least a little manual 
intervention along the way, but manually converting all the docs would 
be insane (there's over 400 in the core tasks directory alone)


Anyone interested in the results?

Kev

[1] http://marc.theaimsgroup.com/?l=ant-dev&m=111035433410638&w=2

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-12 01:53 ---
java.nio are only available as part of Java 1.4+, to accept this into the trunk
would mean a dependency on 1.4+ compiler to build ant - is this ok?  My
understanding was that we should try to preserve bwc within ant (as a tool) and
for building ant itself - is this no longer a concern?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36817] - tagdiff.xsl : Removed files not getting listed

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=36817





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 23:17 ---
Created an attachment (id=17392)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17392&action=view)
Patch to fix "Deleted files" section of HTML output from tagdiff.xsl (unix fmt)

This patch fixes the "Delete files" section of etc/tagdiff.xsl
 - it should select files with'prevrevision' and no 'revision'
 - it was selecting files with no 'prevrevision' and no 'revision'
   (which always selected nothing)

to reproduce the issue (or test this fix) this with cvs:
$ cvs add dummy.txt
$ cvs ci -m "delete me" dummy.txt
$ cvs tag pre-tag .
$ cvs rm -f dummy.txt
$ cvs ci -m "deleted" dummy.txt
$ cvs tag post-tag
ant: 
 

DO NOT REPLY [Bug 38199] - symlink fails on second call

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=38199





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 20:06 ---
Thanks Matt, but if you look at the build2.xml file, you'll see that overwrite
is set to true.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 38199] - symlink fails on second call

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=38199





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 20:00 ---
I don't currently have a *nix box available... but I was the last person to
(drastically) alter the symlink task. :(  IIRC this is by design due to ln's
normal behavior, i.e. try to do the equivalent at the command line of what you
are asking and see what happens.  This is the reason for the overwrite
attribute, as I seem to remember someone pointing out to you on the list.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 19:47 ---
(In reply to comment #5)
> The second patch is completely irrelevant to Ant HEAD... one might argue the
> second patch could be structured into Ant HEAD in more valuable ways as well.

correction: the second occurrence of "second" should be "first".


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17388|java.nio changes against Ant|[faulty] java.nio changes
description|1.6.5, in unified diff  |against Ant 1.6.5, in
   |format  |unified diff format




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17388|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 19:38 ---
Created an attachment (id=17389)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17389&action=view)
java.nio changes against Ant 1.6.5, in unified diff format

I've used the original modified source files attached to this bug and created a
patch against 1.6.5 from them.

One last time, to fix transferTo() buffer size.
Apologies for the attachment spam.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 19:29 ---
Can't say I disagree with Matt Benson there; but I just wanted to make sure that
the original submitter's changes were both available in patch format rather than
modified Java code. In all fairness, the lazy init calls patch should not be in
this bug but in a feature request of its own.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17385|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 19:27 ---
Created an attachment (id=17388)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17388&action=view)
java.nio changes against Ant 1.6.5, in unified diff format

I've used the original modified source files attached to this bug and created a

patch against 1.6.5 from them.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17385|0   |1
   is patch||
  Attachment #17385|1   |0
is obsolete||




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 19:24 ---
(From update of attachment 17385)
Patch fails on copying large files; need to change transfer size in
transferTo() call to a lower value.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 19:21 ---
The second patch is completely irrelevant to Ant HEAD... one might argue the
second patch could be structured into Ant HEAD in more valuable ways as well.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17385|1   |0
   is patch||
  Attachment #17385|0   |1
is obsolete||




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17385|java.nio changes against Ant|[faulty] java.nio changes
description|1.6.5, in unified diff  |against Ant 1.6.5, in
   |format  |unified diff format




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 18:53 ---
Created an attachment (id=17386)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17386&action=view)
lazy init changes against Ant 1.6.5, in unified diff format

I've used the original modified source files attached to this bug and create a
patch against 1.6.5 from them.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 30094] - Performance enhancements using java.nio & lazy calls

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=30094





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 18:52 ---
Created an attachment (id=17385)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17385&action=view)
java.nio changes against Ant 1.6.5, in unified diff format

I've used the original modified source files attached to this bug and create a
patch against 1.6.5 from them.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: $LOCALCLASSPATH equivalent for windows?

2006-01-11 Thread Igor Peshansky
Jeffrey E Care/Raleigh/[EMAIL PROTECTED] wrote on 01/11/2006 11:24:12 AM:

> Is there an equivalent to $LOCALCLASSPATH for the Windows launch script 
in 
> Ant 1.6.5?
> 
> I have two classes (for a JSR-47/Ant logging bridge) that unfortunately 
> *MUST* be on the system classpath (because java.util.logging is 
retarded).
> 
> The launch script for UNIX (i.e. bin/ant) checks for the presence of the 

> LOCALCLASSPATH variable; if found the contents are appended onto the 
> system classpath variable as passed to Java. I can't find an equivalent 
> environment property for the Windows launch script (i.e. bin\ant.bat). I 

> can always modify the ant.bat, but if there is a cleaner way to insert 
> entries into the system classpath I would like to use it. Am I missing 
> something obvious?
> 
> Sorry if this is a dupe, but neither Google nor marc.aimsgroup yielded 
any 
> relevant information.
> 
> TIA,
> JEC

AFAICS, there is no equivalent of LOCALCLASSPATH in ant.bat.  If ANT_OPTS
were to follow the -classpath argument instead of preceding it, you'd be
able to use it to override the classpath setting.  As is, looks like you'd
have to modify the batch file (though it's relatively easy to accomodate
LOCALCLASSPATH there).

A question for the developers: would it make sense to move ANT_OPTS after
the -classpath argument (in both the batch file and the shell script)? One
obvious caveat is that it would be possible to produce a classpath that
doesn't contain the launcher JAR.  It might be better to just go with 
adding
LOCALCLASSPATH support to ant.bat instead.
Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML?s Gain (http://www.research.ibm.com/xj/)

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



$LOCALCLASSPATH equivalent for windows?

2006-01-11 Thread Jeffrey E Care
Is there an equivalent to $LOCALCLASSPATH for the Windows launch script in 
Ant 1.6.5?

I have two classes (for a JSR-47/Ant logging bridge) that unfortunately 
*MUST* be on the system classpath (because java.util.logging is retarded).

The launch script for UNIX (i.e. bin/ant) checks for the presence of the 
LOCALCLASSPATH variable; if found the contents are appended onto the 
system classpath variable as passed to Java. I can't find an equivalent 
environment property for the Windows launch script (i.e. bin\ant.bat). I 
can always modify the ant.bat, but if there is a cleaner way to insert 
entries into the system classpath I would like to use it. Am I missing 
something obvious?

Sorry if this is a dupe, but neither Google nor marc.aimsgroup yielded any 
relevant information.

TIA,
JEC
-- 
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)


DO NOT REPLY [Bug 38199] - symlink fails on second call

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=38199





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 16:54 ---
Created an attachment (id=17381)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17381&action=view)
build2.xml illustrating second problem

Calling symlink on a pre-existing link that points to a non-existant resource
fails.

build2.xml listing:


  


  



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 38199] - symlink fails on second call

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=38199





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 16:55 ---
Meant to say, run ant twice with that build file to reproduce the error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 38199] - symlink fails on second call

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=38199





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 16:52 ---
Additional bug with symlink, adding here.  If you would like for me to open a
new bug, I will.  

Calling symlink with overwrite="true" for a link that points to a resource that
doesn't exist results in an error:

  [symlink] /bin/ln: `file_link': File exists

Attaching sample build file.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r368033 - /ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html

2006-01-11 Thread stevel
Author: stevel
Date: Wed Jan 11 06:53:25 2006
New Revision: 368033

URL: http://svn.apache.org/viewcvs?rev=368033&view=rev
Log:
point to schemavalidate

Modified:
ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html

Modified: ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html?rev=368033&r1=368032&r2=368033&view=diff
==
--- ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html (original)
+++ ant/core/trunk/docs/manual/OptionalTasks/xmlvalidate.html Wed Jan 11 
06:53:25 2006
@@ -212,10 +212,13 @@
   
 
 
-Validate all .xml files in xml directory with the parser configured to perform 
schema validation. Note: The parser must support the
-http://apache.org/xml/features/validation/schema feature.
+Validate all .xml files in xml directory with the parser configured to perform 
XSD validation.
+Note: The parser must support the feature
+http://apache.org/xml/features/validation/schema.
+The schemavalidate task is better for 
validating
+W3C XML Schemas, as it extends this task with the right options automatically 
enabled,
+and makes it easy to add a list of schema files/URLs to act as sources.
 
-
 
 
 



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



[EMAIL PROTECTED]: Project test-ant-no-xerces (in module ant) failed

2006-01-11 Thread Gump Integration Build
To whom it may engage...

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

Project test-ant-no-xerces has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 89 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- test-ant-no-xerces :  Java based build tool


Full details are available at:
http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/gump_work/build_ant_test-ant-no-xerces.html
Work Name: build_ant_test-ant-no-xerces (Type: Build)
Work ended in a state of : Failed
Elapsed: 9 mins 29 secs
Command Line: java -Djava.awt.headless=true org.apache.tools.ant.Main 
-Dgump.merge=/x1/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only 
-Dtest.haltonfailure=false -Dant.home=/usr/local/gump/public/workspace/ant/dist 
run-tests 
[Working Directory: /usr/local/gump/public/workspace/ant]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/ant/build/testcases:/usr/local/gump/public/workspace/ant/src/testcases:/usr/local/gump/public/workspace/ant/src/etc/testcases:/usr/local/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-javamail.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jsch.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-antlr.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-commons-logging.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jdepend.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-bsf.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-apache-oro.jar:/usr/local/gump/public/workspace/ant/build/lib/ant.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-jai.jar:/usr/local/gump/packages/antlr-2.7.3/antlr.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-11012006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-11012006.jar:/usr/local/gump/public/workspace/jakarta-commons/net/dist/commons-net-11012006.jar:/usr/local/gump/packages/jaf-1.0.1/activation.jar:/usr/local/gump/public/workspace/jakarta-bcel/target/bcel-11012006.jar:/usr/local/gump/public/workspace/jakarta-bsf/build/lib/bsf.jar:/usr/local/gump/public/workspace/logging-log4j/dist/lib/log4j-11012006.jar:/usr/local/gump/public/workspace/jakarta-oro/jakarta-oro-11012006.jar:/usr/local/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-11012006.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/packages/javamail-1.3.2/mail.jar:/usr/local/gump/packages/javamail-1.3.2/lib/mailapi.jar:/usr/local/gump/packages/jdepend-2.6/lib/jdepend.jar:/usr/local/gump/packages/jsch/jsch-0.1.23.jar:/usr/local/gump/public/workspace/xml-stylebook/bin/stylebook-1.0-b3_xalan-2.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-compiler.jar:/usr/local/gump/public/workspace/jakarta-tomcat-4.0/dist/common/lib/jasper-runtime.jar:/usr/local/gump/public/workspace/xml-commons/java/build/which.jar:/usr/local/gump/public/workspace/rhino/build/rhino_11012006/js.jar:/usr/local/gump/public/workspace/beanshell/dist/bsh-classpath-11012006.jar:/usr/local/gump/public/workspace/beanshell/dist/bsh-commands-11012006.jar:/usr/local/gump/public/workspace/beanshell/dist/bsh-util-11012006.jar:/usr/local/gump/public/workspace/beanshell/dist/bsh-bsf-11012006.jar:/usr/local/gump/public/workspace/beanshell/dist/bsh-11012006.jar:/usr/local/gump/public/workspace/beanshell/dist/bsh-core-11012006.jar:/usr/local/gump/public/workspace/beanshell/dist/bsh-reflect-11012006.jar:/usr/local/gump/public/workspace/jakarta-commons/codec/dist/commons-codec-11012006.jar
-
 

svn commit: r368015 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java

2006-01-11 Thread stevel
Author: stevel
Date: Wed Jan 11 04:04:05 2006
New Revision: 368015

URL: http://svn.apache.org/viewcvs?rev=368015&view=rev
Log:
use FileUtils

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java?rev=368015&r1=368014&r2=368015&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractCvsTask.java 
Wed Jan 11 04:04:05 2006
@@ -30,6 +30,7 @@
 import org.apache.tools.ant.types.Commandline;
 import org.apache.tools.ant.types.Environment;
 import org.apache.tools.ant.util.StringUtils;
+import org.apache.tools.ant.util.FileUtils;
 
 /**
  * original Cvs.java 1.20
@@ -397,21 +398,8 @@
 removeCommandline(cloned);
 }
 setCommand(savedCommand);
-
-if (outputStream != null) {
-try {
-outputStream.close();
-} catch (IOException e) {
-//ignore
-}
-}
-if (errorStream != null) {
-try {
-errorStream.close();
-} catch (IOException e) {
-//ignore
-}
-}
+FileUtils.close(outputStream);
+FileUtils.close(errorStream);
 }
 }
 



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



DO NOT REPLY [Bug 38220] - CVS task breaks on project names containing spaces

2006-01-11 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://issues.apache.org/bugzilla/show_bug.cgi?id=38220





--- Additional Comments From [EMAIL PROTECTED]  2006-01-11 13:02 ---
Do I detect some sarcasm there?

It looks more like (in AbstractCVSTask.configureCommandline() that the package
is being split, perhaps into a series of packages.

if (cvsPackage != null) {
c.createArgument().setLine(cvsPackage);
}

This may be by design, though if it is so, it should be documented with
examples. I note that the method does the same for CVSROOT:

if (cvsRoot != null) {
c.createArgument(true).setLine("-d" + cvsRoot);
}

Again, some more people will need to look at this to decide if its a bug or if
we are being "clever".

Now, have you tried escaping your package with single or double quotes (whatever
you are not using for your package:

package="'spaces in directories'"

The parsing logic should pick that up and treat it as a single thing.
-Steve

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



[EMAIL PROTECTED]: Project svn-antlib-test (in module ant-antlibs) failed

2006-01-11 Thread Gump Integration Build
To whom it may engage...

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

Project svn-antlib-test has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 89 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- svn-antlib-test :  Task and Type Libraries for Apache Ant


Full details are available at:
http://vmgump.apache.org/gump/public/ant-antlibs/svn-antlib-test/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Dependency on ant-testutil exists, no need to add for property 
ant-testutil.jar.
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/ant-antlibs/svn-antlib-test/gump_work/build_ant-antlibs_svn-antlib-test.html
Work Name: build_ant-antlibs_svn-antlib-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 2 mins 27 secs
Command Line: java -Djava.awt.headless=true 
-Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only 
-Dant-testutil.jar=/usr/local/gump/public/workspace/ant/build/lib/ant-testutil.jar
 test 
[Working Directory: /usr/local/gump/public/workspace/ant-antlibs/svn]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/ant-antlibs/svn/build/test-classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/ant/build/lib/ant-testutil.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/ant-antlibs/svn/build/ant-svn-11012006.jar
-

[junit] The ' characters around the executable and arguments are
[junit] not part of the command.
[junit] ]
[junit] at 
org.apache.ant.svn.AbstractSvnTask.runCommand(AbstractSvnTask.java:276)
[junit] at 
org.apache.ant.svn.AbstractSvnTask.execute(AbstractSvnTask.java:333)
[junit] at 
org.apache.ant.svn.SvnRevisionDiff.execute(SvnRevisionDiff.java:128)
[junit] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:324)
[junit] at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:104)
[junit] at org.apache.tools.ant.Task.perform(Task.java:365)
[junit] at org.apache.tools.ant.Target.execute(Target.java:356)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:384)
[junit] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1243)
[junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1212)
[junit] at 
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:276)
[junit] at 
org.apache.ant.svn.SvnRevisionDiffTest.executeTargetAndReadLogFully(SvnRevisionDiffTest.java:61)
[junit] at 
org.apache.ant.svn.SvnRevisionDiffTest.testDiffUrl(SvnRevisionDiffTest.java:52)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:324)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:23