ant-user mailing list archives

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

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

The backward slashes are converted to forward slashes by using the 'replace'
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?


View raw message