ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Hoendervangers" <Marco.Hoendervang...@OVSoftware.com>
Subject drive letter
Date Tue, 10 Apr 2001 09:09:19 GMT
Hi,

In my current project I'd like to transform a filename into a URL:
'C:\projects\currentproject\file.txt' should become
'/projects/currentproject/file.txt'

The backward slashes are converted to forward slashes by using the 'replace'
task.
To be drive independant it should be nice to be able to determine the drive.
So instead
of replacing the 'C:' by an empty string I want to replace the drive by an
empty string.
The system variable 'user.home' doesn't do the job.

Anyone any suggestions?

Thanks.
Marco



Mime
View raw message