Loading...

user@ant.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: ProjectHelper2 fails to close input source after parsing imported document? Nicolas Lalevée Mon Oct 31 14:01:01 2011

Le 26 oct. 2011 à 14:18, Steele, Richard a écrit :

> On Tue, Oct 25, 2011 at 1:24 PM, Steele, Richard <[EMAIL PROTECTED]>wrote:
> 
>> On Tue, Oct 25, 2011 at 11:58 AM, Stefan Bodewig <[EMAIL PROTECTED]>wrote:
>> 
>> You could try using a different XML parser (Saxon's AElfred, maybe).
>>> 
>> 
>> I might do that just to prove my analysis, but I was hoping to avoid having
>> to require everyone to use an extension to Ant.
>> 
> 
> Sigh.  Another yak shaving exercise.
> 
> I tried AElfred but it fails during the Ivy xml parsing because it's not a
> validating parser.

If you're willing to, there a way to not validate ivy files.
See "validate" there:
http://ant.apache.org/ivy/history/latest-milestone/settings/settings.html

Nicolas

>  I also tried the latest version of Xerces because the
> release notes specifically mention a fix for leaking file descriptors.  In
> fact, some code appears in the newer version of XMLEntityManager to close
> the reader.  I had to build locally with debug enabled (why do they release
> it without debug?) but unfortunately the new version doesn't fix my problem.
> 
> I think I've convinced myself that there will always be some kind of issue
> trying to delete jars that were (once) needed from a classpath, especially
> on Windows, so I'm going to take a different approach: copy the artifacts I
> need to a temp dir and classload them from there and never clean them up.
> 
> Thanks for your help and sympathy.  :-)
> 
> Rich


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