FWIW, I did get pathconvert to address my immediate need although a few gyrations were required. I plan to get a much simpler method in place going forward - suggestions or examples welcome!
At the risk of broadcasting my ignorance of Ant idioms, attached is a build
descriptor that has the skeleton.
The gist of the process is to:
1) Determine the build platform
2) Set up a "template" based on that platform
3) Use the template to build the path
4) Use pathconvert to "canonicalize" the path to the platform.
Using the descriptor on NT 4.0 we see the following:
> ant -buildfile pathconvert.xml
Buildfile: pathconvert.xml
init:
gen_windows_classpath:
gen_unix_classpath:
generate_classpath:
[echo]
what.is.classpath=O:\lib\shared\jdsl-2.0.5\lib\jdsl.jar;O:\lib\shared\jdom-b6\build\jdom.jar
BUILD SUCCESSFUL
Total time: 1 second
On UNIX:
-> ant -buildfile pathconvert.xml
Buildfile: pathconvert.xml
init:
gen_windows_classpath:
gen_unix_classpath:
generate_classpath:
[echo]
what.is.classpath=/opt/lib/shared/jdsl-2.0.5/lib/jdsl.jar:/opt/lib/shared/jdom-b6/build/jdom.jar
BUILD SUCCESSFUL
Total time: 2 seconds
pathconvert.xml
Description: application/xml
========================================================================== J. Kenneth Gentle (Ken) | Phone: (610)255-0361 FAX:(610)255-0418 Gentle Software, LLC | Email: [EMAIL PROTECTED] ==========================================================================
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
