ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Using files in classpath in task file=""
Date Fri, 04 Apr 2003 15:26:56 GMT
OK, me too I wish Ant was using more URLs instead of files... Using my
little resource: custom URL protocol, I could then easily reference any
resource in $ANT_HOME/lib. Right now though, you can turn around the current
limitations but first doing a <get> of the URL you want (and with resource:
URLs, you can get resources too), and then use it as a file.

Not ideal, but would work in most cases. What would be useful then if
facilities within Ant to easily deal with the temporary files created, so
that there's clean up automatically for example once the build terminates.

As Stefan pointed out, making Ant use URLs instead of File in many tasks
would be a major backward-incompatible undertaking. --DD

-----Original Message-----
From: Stefan Bodewig [] 
Sent: Friday, April 04, 2003 9:22 AM
Subject: Re: Using files in classpath in task file=""

On Fri, 04 Apr 2003, Nicola Ken Barozzi <> wrote:

> What I mean is not to change the passing of a File object.  I mean
> that we can *wrap* an URL in a File. So we pass a File, and use an
> URL, getting a Virtual File System.

How so - put the URI into the name and abuse File as a String?  I'd
really like to understand that.

We are talking about here 8-)


View raw message