Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 23763 invoked by uid 500); 30 May 2001 18:56:17 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 23736 invoked from network); 30 May 2001 18:56:15 -0000 Message-ID: <3B154252.ECAAB00F@healthlanguage.com> Date: Wed, 30 May 2001 12:56:18 -0600 From: "Larry V. Streepy, Jr." Organization: Health Language, Inc. X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: Generation of paths References: <7FA5870AACE7D211AF37000629B37F7902AB1178@SH24X692> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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