ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <nicolas.lale...@hibnet.org>
Subject Re: ProjectHelper2 fails to close input source after parsing imported document?
Date Wed, 26 Oct 2011 21:38:38 GMT

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

> On Tue, Oct 25, 2011 at 1:24 PM, Steele, Richard <rich@steelezone.net>wrote:
> 
>> On Tue, Oct 25, 2011 at 11:58 AM, Stefan Bodewig <bodewig@apache.org>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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message