ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry V. Streepy, Jr." <stre...@healthlanguage.com>
Subject Re: Generation of paths
Date Wed, 30 May 2001 18:56:18 GMT
I have looked there and that is the root of the issue.  It is doing the
"right thing" for the current platform.  I need to specifically force it
to "pretend" to be on another platform, which you can't really do with
the JVM.  So, I'll need specific code to convert from one path structure
to another.

Thanks.

"Shaikh, Mehmood" wrote:
> 
> You might look into modifying source for Path.java where all of the business
> of path formatting resides. Besides, whether / is used as separator or \ is
> used, is decided by java itself, using File.separatorChar attribute.
> 
> -----Original Message-----
> From: Larry V. Streepy, Jr. [mailto:streepy@healthlanguage.com]
> Sent: May 30, 2001 10:31 AM
> To: ant user mail list
> Subject: Generation of paths
> 
> Before I head off and write this, I thought I'd ask if it's been done.
> 
> For our product we need to generate platform specific scripts that
> contain PATH and CLASSPATH settings.  I need to be able to generate
> these scripts from any build platform.  Thus, from a Windows platform I
> need to be able to generate paths that are legal on Unix platforms and
> vice-versa.
> 
> Since Ant works very hard to generate all paths in the "current"
> platform format, I have no easy way to generate the paths for the
> "other" platforms.  For example, I need to generate these two different
> paths:
> 
> d:\foo\bar;d:\baz\blah
> /foo/bar:/baz/blah
> 
> I've searched pretty hard and I see no way to make Ant generate both
> forms.  I was toying with the idea of writing a "pathconvert" task which
> would take a target platform and additional data (like drive letter
> mappings) and have it store the path in a property.
> 
> If anyone knows of a better (read already implemented) solution, please
> let me know.
> 
> Thanks.
> 
> --
> Larry V. Streepy, Jr.
> Chief Technical Officer and VP of Engineering
> 
> Health Language, Inc.  -- "We speak the language of healthcare"
> A subsidiary of CyberPlus Corp.
> 
> 970/626-5028 (office)           mailto:streepy@healthlanguage.com
> 970/626-4425 (fax)              http://www.healthlanguage.com

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

Health Language, Inc.  -- "We speak the language of healthcare"
A subsidiary of CyberPlus Corp.

970/626-5028 (office)           mailto:streepy@healthlanguage.com
970/626-4425 (fax)              http://www.healthlanguage.com

Mime
View raw message