ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Making URIs from locations
Date Tue, 08 Apr 2003 08:33:01 GMT
[was Re: Using files in classpath in task file="", changed subject to
attract more comments]

On Mon, 7 Apr 2003, Jose Alberto Fernandez <>

... about a new attribute to <property> that would set the property to
the URI of a file that get's resolved relative to basedir.

> Pick the name you think it is more appropriate.
> Some thoughts:
> 	<property name="x" uriOfFile="${fileName}"/>
> 	<property name="x" valueAsUri="${fileName}"/>
> 	<property name="x" locationAsUri="${fileName}"/>
> 	<property name="x" uriForLocation="${fileName}"/>
> Alternatively, we could have something more general that you can
> pass a URI and knows how to use it, but alternatively if the value
> if that of a file, then it construct a URI for it.
> 	<property name="x" uri="${fileName}"/>
> As long as we get the expected behavior I do not mind.

What do others think of this?  Maybe we shouldn't add yet another
attribute but a complete new task?

<seturi property="x" location="build.xml"/>
<seturi property="x"
<seturi property="x" url=""/>


View raw message