ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry V. Streepy, Jr." <>
Subject Re: Path separators in absolute paths
Date Fri, 15 Jun 2001 23:37:10 GMT
Take a look at the pathconvert task that I posted last week.  It can
take a path and convert it to "unix" format.  Also, I have an update to
it that I was about to post that makes it possible to specify the path
and dir sep characters instead of just picking a target os.

Robert Leftwich wrote:
> I have a requirement to put an absolute path into a configuration file
> prior to running a java app thru Ant. The only way I can see to get an
> absolute path (thru basedir or using a location property) supplies the path
> with the separators set to the current platform convention. Of course, I am
> running this on Windows and if I write the path to the config file then the
> single backslashes in the path are treated as escape characters by the app
> reading the file. What I need is the absolute path using forward slashes
> (or with double blackslashes) - is this possible ?
> Robert

Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"

970/626-5028 (office) 
970/626-4425 (fax)    

View raw message