DO NOT REPLY [Bug 37554] New: - The 'style' task doesn't support the wrap attribute on the pre tag

2005-11-17 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=37554

   Summary: The 'style' task doesn't support the wrap attribute on
the pre tag
   Product: Ant
   Version: 1.6.5
  Platform: PC
OS/Version: Windows NT
Status: NEW
  Severity: minor
  Priority: P3
 Component: Other
AssignedTo: dev@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


The  tag in HTML supports a WRAP attribute that will wrap lines when they
have become to long. The style task doesn't support this attribute. It stops
with these messages.
[style] Processing C:\Trimergo-H\changelog.xml to 
C:\Trimergo-H\ChangeLog.html
[style] Loading stylesheet C:\Trimergo-H\changelog.xsl
[style] [Fatal Error] changelog.xsl:104:18: Attribute name "wrap" associated
with an element type "pre" must be followed by the ' = ' character.
[style] : Fatal Error! org.xml.sax.SAXParseException: Attribute name "wrap"
associated with an element type "pre" must be followed by the ' = ' character.
Cause: org.xml.sax.SAXParseException: Attribute name "wrap" associated with an
element type "pre" must be followed by the ' = ' character.
[style] Failed to process C:\Trimergo-H\changelog.xml


To reproduce the problem just use the changelog.xsl supplied with ANT and change
the  line in there to .

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



AW: Pack200?

2005-11-17 Thread Jan.Materne
Because Pack200 is part of "standard" java and it should improve java apps
(especially WebStart) I think we should have something like a  ...

But when JDK 1.5 came out (as beta I think) we had a discussion [1] already...

Searching [2] the mailinglist I found a note to an external library [3] which 
could
produce a pack200 file. Not sure if it´s usable like  but I would spend 
some
time to check  before writing my own implementation ;-)

But back to the discussion. Main points were
- core task / optional task / antlib
- enhance existing  or create a new task
But time goes on (that dicussion was in February 2004) and now we should have 
to think
about implementing the things around ResourceCollections [4,5] on that.


Jan


[1] http://marc.theaimsgroup.com/?l=ant-dev&m=107641573712503&w=2
[2] http://marc.theaimsgroup.com/?l=ant-dev&w=2&r=1&s=pack200&q=b
[3] http://ant-jnlp-war.sourceforge.net/
[4] 
http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java
[5] 
http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/CompressedResource.java

>-Ursprüngliche Nachricht-
>Von: Lilianne E. Blaze [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 18. November 2005 00:29
>An: Ant Developers List
>Betreff: Re: Pack200?
>
>Hello,
>
>Greg Winton wrote:
>> I found this link...
>>
>> https://java-pack200-ant-task.dev.java.net/
>>
>> I didn't look any further, but perhaps this is what you are 
>looking for?
>>
>> Greg
>>   
>To be honest, it seems pretty rudimentary.
>
>I'm working on my own version, with support for s, 
>checking dates to avoid repacking unmodified files and support 
>for defaults provided by properties. So far it's working 
>correctly used in two of my projects, I just need a couple of 
>days to do more tests and polish the code. Would it be a 
>welcome addition to Ant? I'd prefer to finish and contribute 
>it than to make it into a separate project.
>
>Greetings, Lilianne E. Blaze
>
>
>-
>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: Any use for an optional template copy task?

2005-11-17 Thread Martijn Kruithof

Rob Harvey wrote:


Hi,
I wrote a Task recently that alters files as they are copied to
different directories. I used it to create a website and it serves we
quite well - I imagine it would be useful for other applications where
more complex copying operations are required.
It basically works like this:
   
   
 
   
   
 
   

What it is saying is, for every file in the include list, make a token
replacement copy of the file "templatefile" to "outdir" with the
appropriate extension. So if srcdir contained 10 *.tmpl files, then 10
files (with the default *.html extension) will end up in the outdir
location, where the values in the *.tmpl files are inserted into the
base "templatefile".

In other words, I have one templatefile that contains generic
information plus some tokens:

 
  @TITLE@
 
 
  Some general info
  @CONTENT@
 


and then some others - let's say "welcome.tmpl" - that contain only
token, value pairs:

@TITLE@
 Welcome page
@CONTENT@
   Welcome to my page

Then the resulting page would be "welcome.html" in the outdir directory.

Is there any interest in including this with optional tasks?

-rob
 

What would be the added value over the current copy task with the use of 
a filterset?


Martijn

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



Any use for an optional template copy task?

2005-11-17 Thread Rob Harvey
Hi,
I wrote a Task recently that alters files as they are copied to
different directories. I used it to create a website and it serves we
quite well - I imagine it would be useful for other applications where
more complex copying operations are required.
It basically works like this:


  


  


What it is saying is, for every file in the include list, make a token
replacement copy of the file "templatefile" to "outdir" with the
appropriate extension. So if srcdir contained 10 *.tmpl files, then 10
files (with the default *.html extension) will end up in the outdir
location, where the values in the *.tmpl files are inserted into the
base "templatefile".

In other words, I have one templatefile that contains generic
information plus some tokens:
 
  
   @TITLE@
  
  
   Some general info
   @CONTENT@
  
 

and then some others - let's say "welcome.tmpl" - that contain only
token, value pairs:

@TITLE@
  Welcome page
@CONTENT@
Welcome to my page

Then the resulting page would be "welcome.html" in the outdir directory.

Is there any interest in including this with optional tasks?

 -rob

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



Re: Pack200?

2005-11-17 Thread Lilianne E. Blaze

Hello,

Greg Winton wrote:

I found this link...

https://java-pack200-ant-task.dev.java.net/

I didn't look any further, but perhaps this is what you are looking for?

Greg
  

To be honest, it seems pretty rudimentary.

I'm working on my own version, with support for s, checking 
dates to avoid repacking unmodified files and support for defaults 
provided by properties. So far it's working correctly used in two of my 
projects, I just need a couple of days to do more tests and polish the 
code. Would it be a welcome addition to Ant? I'd prefer to finish and 
contribute it than to make it into a separate project.


Greetings, Lilianne E. Blaze


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



DO NOT REPLY [Bug 37546] - compilerarg doesn't support 'modern' compiler

2005-11-17 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=37546


[EMAIL PROTECTED] changed:

   What|Removed |Added

 AssignedTo|dev@ant.apache.org  |[EMAIL PROTECTED]




-- 
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: svn commit: r344333 - in /ant/core/trunk: docs/manual/CoreTasks/xmlproperty.html src/etc/testcases/taskdefs/xmlproperty.xml src/main/org/apache/tools/ant/taskdefs/XmlProperty.java src/testcases/or

2005-11-17 Thread Matt Benson
--- Steve Loughran <[EMAIL PROTECTED]> wrote:

> Antoine Levy-Lambert wrote:
> > Dale Anson wrote:
> > 
> > 
> >>Thanks!  How close is 1.7 to release?
> >>
> > 
> > Hello Dale,
> > 
> > I don't know. I would not be surprised if we
> release 1.7 only in 6
> > months. But this is just me.
> > 
> > Maybe we could produce an alpha night build ?
> 
> 
> I think we should stick out an alpha as a sign of
> progress; it will 
> generate bugreps and things, but that is good.

+1.  Is this a "Release Plan" vote?

-Matt

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




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: svn commit: r344333 - in /ant/core/trunk: docs/manual/CoreTasks/xmlproperty.html src/etc/testcases/taskdefs/xmlproperty.xml src/main/org/apache/tools/ant/taskdefs/XmlProperty.java src/testcases/or

2005-11-17 Thread Steve Loughran

Antoine Levy-Lambert wrote:

Dale Anson wrote:



Thanks!  How close is 1.7 to release?



Hello Dale,

I don't know. I would not be surprised if we release 1.7 only in 6
months. But this is just me.

Maybe we could produce an alpha night build ?



I think we should stick out an alpha as a sign of progress; it will 
generate bugreps and things, but that is good.


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



Re: svn commit: r344333 - in /ant/core/trunk: docs/manual/CoreTasks/xmlproperty.html src/etc/testcases/taskdefs/xmlproperty.xml src/main/org/apache/tools/ant/taskdefs/XmlProperty.java src/testcases/or

2005-11-17 Thread Antoine Levy-Lambert
Dale Anson wrote:

> Thanks!  How close is 1.7 to release?
>
Hello Dale,

I don't know. I would not be surprised if we release 1.7 only in 6
months. But this is just me.

Maybe we could produce an alpha night build ?

Cheers,

Antoine

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



DO NOT REPLY [Bug 37547] - MailTask eats smtp errors, only reports "Failed to send email"

2005-11-17 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=37547


[EMAIL PROTECTED] changed:

   What|Removed |Added

 AssignedTo|dev@ant.apache.org  |[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2005-11-17 21:39 ---
Hello Gernot,
thanks for the suggestions concerning the code.

Now concerning your problem :
- do you have mail.jar and activation.jar in the classpath ?
if you have them, then ant will use them rather than the lightweight mail
implementation that ant has
- can you telnet to your smtp server on port 25 ? is there a problem of proxy ?
Cheers,
Antoine

-- 
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 37548] - Jar manifest lines too long

2005-11-17 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=37548


[EMAIL PROTECTED] changed:

   What|Removed |Added

 AssignedTo|dev@ant.apache.org  |[EMAIL PROTECTED]




-- 
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: gump?

2005-11-17 Thread Stefan Bodewig
On Thu, 17 Nov 2005, Steve Loughran <[EMAIL PROTECTED]> wrote:
> Stefan Bodewig wrote:
>> On Wed, 16 Nov 2005, Steve Loughran <[EMAIL PROTECTED]> wrote:
>>
>>>where is vmgump these days?
>> Dead, I killed it.  The vmware instance doesn't boot up, I lack any
>> experience with vmware to help out and Leo seems to be burdened.
> 
> which vmware version?

Dunno, but as I type this rescue is near.  The machine is somewhat up
and may get back to work soon.

Stefan

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



DO NOT REPLY [Bug 37548] - Jar manifest lines too long

2005-11-17 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=37548





--- Additional Comments From [EMAIL PROTECTED]  2005-11-17 19:23 ---
For example these lines:

*Name: org/bouncycastle/jce/provider/JCERSACipher$SHA512OAEPPadding.cla*
* ss*
*SHA1-Digest: mqoIoBS35xqt/Pd6T9ZXd54jxCg=*

become:

*Name: org/bouncycastle/jce/provider/JCERSACipher$SHA512OAEPPadding.class*
*SHA1-Digest: mqoIoBS35xqt/Pd6T9ZXd54jxCg=*

(I added stars for line start and line end in case they are not preserved)

Manifest file can't have lines longer than 72 bytes by specification.

org.apache.tools.ant.taskdefs.Manifest.Attribute method checks for 72 bytes 
limit but on strings without cr lf. In situations when line is 71 or 72 
characters (without cr lf) long, resulting line will be 73 or 74 bytes long 
respecteivly.

I changed this method and it now works for me, but I am not sure if it works 
for all situations. This is source code of method when I changed it. Line with 
stars is changed. (I am not familiar with diff and that is why I didn't use it)


private void writeValue(PrintWriter writer, String value)
 throws IOException {

String line = name + ": " + value;

while (line.getBytes("UTF-8").length > MAX_SECTION_LENGTH) {
// try to find a MAX_LINE_LENGTH byte section
int breakIndex = line.length() > MAX_SECTION_LENGTH ?
MAX_SECTION_LENGTH : line.length();
String section = line.substring(0, breakIndex);
while (section.getBytes("UTF-8").length > MAX_SECTION_LENGTH
 && breakIndex > 0) {
breakIndex--;
section = line.substring(0, breakIndex);
}
if (breakIndex == 0) {
throw new IOException("Unable to write manifest line "
+ name + ": " + value);
}
writer.print(section + EOL);
line = " " + line.substring(breakIndex);
}
writer.print(line + EOL);
}
}

-- 
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 37548] - Jar manifest lines too long

2005-11-17 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=37548





--- Additional Comments From [EMAIL PROTECTED]  2005-11-17 19:11 ---
Created an attachment (id=16989)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16989&action=view)
example manifest


-- 
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: gump?

2005-11-17 Thread Steve Loughran

Stefan Bodewig wrote:

On Wed, 16 Nov 2005, Steve Loughran <[EMAIL PROTECTED]> wrote:



where is vmgump these days?



Dead, I killed it.  The vmware instance doesn't boot up, I lack any
experience with vmware to help out and Leo seems to be burdened.


which vmware version?


gump.zones.apache.org is the fallback, but it currently doesn't build
too much because sourceforge's anon-CVS doesn't work for project names
starting with j (since about three weeks).



oh, the irony. everything that uses junit not being buildable. that is, 
only the stuff without tests building.


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



DO NOT REPLY [Bug 37548] - Jar manifest lines too long

2005-11-17 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=37548





--- Additional Comments From [EMAIL PROTECTED]  2005-11-17 17:36 ---
I'm not sure I understand the problem.  Is this an encoding issue i.e. "71 or 72
characters are not shortened to 72 bytes"?  Or what?  Can you attach the
manifest to show what you mean?

-- 
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: Expand cleanup

2005-11-17 Thread Antoine Levy-Lambert
Hello Kev,
thanks again,

Cheers,
Antoine

Kev Jackson wrote:

> - remove unused imports
> - use fileutils



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



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

2005-11-17 Thread antoine
Author: antoine
Date: Thu Nov 17 07:35:08 2005
New Revision: 345265

URL: http://svn.apache.org/viewcvs?rev=345265&view=rev
Log:
cleanup of imports, use FileUtils.close, submitted by Kevin Jackson

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java?rev=345265&r1=345264&r2=345265&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java Thu Nov 
17 07:35:08 2005
@@ -28,7 +28,6 @@
 import java.util.Vector;
 
 import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.DirectoryScanner;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.Task;
 import org.apache.tools.ant.types.FileSet;
@@ -281,13 +280,7 @@
 fos.close();
 fos = null;
 } finally {
-if (fos != null) {
-try {
-fos.close();
-} catch (IOException e) {
-// ignore
-}
-}
+FileUtils.close(fos);
 }
 }
 



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



Re: [patch] checksum cleanup

2005-11-17 Thread Antoine Levy-Lambert
Hello Kev,

thanks, patch submitted.

Cheers,
Antoine

Kev Jackson wrote:

> - remove unused imports
> - use FileUtils.close
>
>
>


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



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

2005-11-17 Thread antoine
Author: antoine
Date: Thu Nov 17 07:29:33 2005
New Revision: 345260

URL: http://svn.apache.org/viewcvs?rev=345260&view=rev
Log:
cleanup of imports, use FileUtils.close, submitted by Kevin Jackson

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java?rev=345260&r1=345259&r2=345260&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java Thu Nov 
17 07:29:33 2005
@@ -28,7 +28,6 @@
 import java.io.IOException;
 import java.util.HashMap;
 import java.util.Map;
-import java.util.Vector;
 import java.util.Iterator;
 import java.util.Hashtable;
 import java.util.Enumeration;
@@ -38,12 +37,10 @@
 import java.text.ParseException;
 
 import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.DirectoryScanner;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.taskdefs.condition.Condition;
 import org.apache.tools.ant.types.EnumeratedAttribute;
 import org.apache.tools.ant.types.FileSet;
-import org.apache.tools.ant.types.Resource;
 import org.apache.tools.ant.types.ResourceCollection;
 import org.apache.tools.ant.types.resources.Union;
 import org.apache.tools.ant.types.resources.Restrict;
@@ -621,13 +618,7 @@
 } catch (ParseException e) {
 throw new BuildException("Couldn't read checksum file " + f, e);
 } finally {
-if (diskChecksumReader != null) {
-try {
-diskChecksumReader.close();
-} catch (IOException e) {
-// ignore
-}
-}
+   FileUtils.close(diskChecksumReader);
 }
 }
 



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



svn commit: r345256 - in /ant/core/trunk/src: etc/testcases/taskdefs/optional/ etc/testcases/taskdefs/optional/xml/ main/org/apache/tools/ant/util/ testcases/org/apache/tools/ant/taskdefs/optional/

2005-11-17 Thread antoine
Author: antoine
Date: Thu Nov 17 07:08:15 2005
New Revision: 345256

URL: http://svn.apache.org/viewcvs?rev=345256&view=rev
Log:
add a test case for bugrep 37348 in the xslt task, also remove 
unneeded imports in FileUtils

Added:
ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/apache.xsl
ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml
ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/entity.xml
Modified:
ant/core/trunk/src/etc/testcases/taskdefs/optional/xslt.xml
ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java

ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/XsltTest.java

Added: ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/apache.xsl
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/apache.xsl?rev=345256&view=auto
==
--- ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/apache.xsl (added)
+++ ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/apache.xsl Thu Nov 
17 07:08:15 2005
@@ -0,0 +1,19 @@
+
+http://www.w3.org/1999/XSL/Transform";
+version="1.0">
+
+  
+
+  
+
+
+
+  
+  
+
+  
+
+  
+
+   
+

Added: ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml?rev=345256&view=auto
==
--- ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml 
(added)
+++ ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml 
Thu Nov 17 07:08:15 2005
@@ -0,0 +1,13 @@
+
+
+]>
+
+   &globaldefinitions;
+   
+   
+   
+   
+   
+   
+
\ No newline at end of file

Added: ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/entity.xml
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/entity.xml?rev=345256&view=auto
==
--- ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/entity.xml (added)
+++ ant/core/trunk/src/etc/testcases/taskdefs/optional/xml/entity.xml Thu Nov 
17 07:08:15 2005
@@ -0,0 +1,3 @@
+   
+   
+   

Modified: ant/core/trunk/src/etc/testcases/taskdefs/optional/xslt.xml
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/taskdefs/optional/xslt.xml?rev=345256&r1=345255&r2=345256&view=diff
==
--- ant/core/trunk/src/etc/testcases/taskdefs/optional/xslt.xml (original)
+++ ant/core/trunk/src/etc/testcases/taskdefs/optional/xslt.xml Thu Nov 17 
07:08:15 2005
@@ -1,12 +1,24 @@
 
 
 
+  
   
   
   
 
+  
+  
+  
+
+  
+  
+
+  
+  
+
   
   
+  
   
   
   
@@ -60,6 +72,11 @@

 
   
-
-  
+  
+  
+
+
+  
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java?rev=345256&r1=345255&r2=345256&view=diff
==
--- ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java Thu Nov 17 
07:08:15 2005
@@ -17,34 +17,25 @@
 
 package org.apache.tools.ant.util;
 
-import java.io.BufferedInputStream;
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
 import java.io.Reader;
 import java.io.Writer;
 import java.io.OutputStream;
 import java.net.MalformedURLException;
 import java.net.URL;
-import java.text.CharacterIterator;
 import java.text.DecimalFormat;
-import java.text.StringCharacterIterator;
 import java.util.Random;
 import java.util.Stack;
 import java.util.StringTokenizer;
 import java.util.Vector;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
-import org.apache.tools.ant.filters.util.ChainReaderHelper;
 import org.apache.tools.ant.taskdefs.condition.Os;
 import org.apache.tools.ant.types.FilterSetCollection;
 import org.apache.tools.ant.types.resources.FileResource;
 import org.apache.tools.ant.launch.Locator;
-import org.apache.xerces.util.URI;
 
 /**
  * This class also encapsulates methods which allow Files to be

Modified: 
ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/XsltTest.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/XsltTest.java?rev=345256&r1=345255&r2=345256&view=diff
==

DO NOT REPLY [Bug 37548] - Jar manifest lines too long

2005-11-17 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=37548





--- Additional Comments From [EMAIL PROTECTED]  2005-11-17 12:55 ---
Are all information in the manifest and the lines are only splitted? See the 
manual of  [1] and the according jar specification [2].

[1] http://ant.apache.org/manual/CoreTasks/manifest.html
[2] http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html

-- 
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 37548] New: - Jar manifest lines too long

2005-11-17 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=37548

   Summary: Jar manifest lines too long
   Product: Ant
   Version: 1.6.5
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


I was merging multiple manifests into one with jar task. Lines that have 71 or 
72 characters are not shortened to 72 bytes. I think that the problem is in 
org.apache.tools.ant.taskdefs.Manifest.Attribute class in method writeValue. 
Variable value does not have crlf at the end of the string (at least in my 
situation).

I encountered this bug when I used bouncycastle's bcprov-jdk14-130.jar.

-- 
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 37547] New: - MailTask eats smtp errors, only reports "Failed to send email"

2005-11-17 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=37547

   Summary: MailTask eats smtp errors, only reports "Failed to send
email"
   Product: Ant
   Version: 1.6.5
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


I wanted to use the "mail" core task, and in my configuration there must be 
some problem with the mail server.
However I have no chance to find out, even when I tried running with "ant -
debug", because EmailTask eats the true cause and only writes a generic warning 
message, even at the highest trace level.

thus my enhancement suggestions:
1. in EmailTask it says
} catch (BuildException e) {
log("Failed to send email", Project.MSG_WARN);
here it would be nice to have 
log("Failed to send email, reason: "+e.getMessage(), 
Project.MSG_WARN);
or better yet an additional line with the stack trace of e.getCause()
and two lines down same thing.

2. in MimeMailer there is also such a catch block:
} catch (MessagingException e) {
throw new BuildException("Problem while sending mime mail:", e);
} catch (IOException e) {
throw new BuildException("Problem while sending mime mail:", e);
}
perhaps you could make this a new BuildException("Problem while sending mime 
mail: "+e.getMessage(), e);


3. IF Ant's global log level is set to DEBUG, I would love to see the debug 
messages of java mail as well, i.e. in MimeMailer (and perhaps somewhere else) 
add 
props.put("mail.debug", "true");
(no idea where JavaMail debug output goes to, sorry)


Thanks from Vienna,
 Gernot

-- 
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 28046] - Ant includes JARs in working directory

2005-11-17 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=28046





--- Additional Comments From [EMAIL PROTECTED]  2005-11-17 11:41 ---
(In reply to comment #15)
> With -lib changed to -cp, I'm getting:
> 
> $ ant
> Unknown argument: -cp

I had the same problem using Fedora Core 4.
If you are using Linux and you have an older version of Ant installed with an
RPM package check /etc/ant.conf.
 
Try also to run so that Ant will not read the /etc/ant.conf file:
ant --noconfig -version

-- 
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 37546] New: - compilerarg doesn't support 'modern' compiler

2005-11-17 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=37546

   Summary:  compilerarg doesn't support 'modern' compiler
   Product: Ant
   Version: 1.6.5
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi,

I'm having problems with the compilerarg element in combination with 
the 'modern' compiler.

I have this added to my javac element:




If I run this in verbose mode, I get this on the console (using JDK1.4)

[javac] Using modern compiler
[javac] Compilation arguments:
[javac] '-d'
[javac] 'C:\test\build\classes'
[javac] '-classpath'
[javac] '...'
[javac] '-sourcepath'
[javac] 'C:\test\src'
[javac] '-g'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.

As you can see, the '-nowarn' option is lost!

However, if I change the 'modern' compiler to 'javac1.4', it works:




[javac] Using modern compiler
[javac] Compilation arguments:
[javac] '-d'
[javac] 'C:\test\build\classes'
[javac] '-classpath'
[javac] '...'
[javac] '-sourcepath'
[javac] 'C:\test\src'
[javac] '-g'
[javac] '-nowarn'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.

Can you please fix this?

regards,
Maarten

-- 
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: svn commit: r345141 - in /ant/core/trunk: WHATSNEW src /main/org/apache/tools/ant/util/FileUtils.java src/testcas es/org/apache/tools/ant/util/FileUtilsTest.java

2005-11-17 Thread Antoine Levy-Lambert
Good catch Stefan,
will fix this ASAP.
Antoine
> --- Ursprüngliche Nachricht ---
> Von: Stefan Bodewig <[EMAIL PROTECTED]>
> An: dev@ant.apache.org
> Betreff: Re: svn commit: r345141 - in /ant/core/trunk: WHATSNEW
> src/main/org/apache/tools/ant/util/FileUtils.java
> src/testcases/org/apache/tools/ant/util/FileUtilsTest.java
> Datum: Thu, 17 Nov 2005 06:00:03 +0100
> 
> On Wed, 16 Nov 2005, <[EMAIL PROTECTED]> wrote:
> 
> > fix for bug report 37348
> > encode non ascii characters in FileUtils.toURI()
> 
> +1, but
> 
> > +import org.apache.xerces.util.URI;
> 
> -1
> 
> there is no guarantee Xerces is around when Ant is run.
> 
> 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]



[Ant Wiki] Update of "Jonas" by Jonas

2005-11-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ant Wiki" for change 
notification.

The following page has been changed by Jonas:
http://wiki.apache.org/ant/Jonas

--
  ==This is a test==
+ 
+ CategoryTemplate
  

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



[Ant Wiki] Update of "Jonas" by Jonas

2005-11-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ant Wiki" for change 
notification.

The following page has been changed by Jonas:
http://wiki.apache.org/ant/Jonas

--
+ ==This is a test==
- ##language:en
- == Template for Help Pages ==
- Text.
  
- === Example ===
- {{{
- xxx
- }}} 
- 
- === Display ===
- xxx
- 
- 

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



[Ant Wiki] Update of "Jonas" by Jonas

2005-11-17 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ant Wiki" for change 
notification.

The following page has been changed by Jonas:
http://wiki.apache.org/ant/Jonas

--
+ deleted
- ##language:en
- == Template for Help Pages ==
- Text.
  
- === Example ===
- {{{
- xxx
- }}} 
- 
- === Display ===
- xxx
- 
- 

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