ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Convert property that is a path to a resource
Date Tue, 09 Jan 2007 16:39:07 GMT
Daffin, Miles (IT) wrote:
> Hi All,
>  
> I have a build with a number of properties that are paths to
> directories. I write these into a template script file using a filterset
> during a copy. The problem is that the properties have mixed windows and
> unix path separators, so when they are written into the scripts they are
> invalid. This does not matter when the properties are used in operations
> by ant (e.g. mkdir or copy) because ant/java normalises the property for
> the platform (i.e. changes all separators to '/' on unix or '\' on
> windows). Is there a way of making sure that the same thing happens when
> I use these properties to replace tokens in the filterset? Can I convert
> them somehow?
>  

<pathconvert> does all this fixup

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message