I have been looking at pathconvert, on jeffery and martin's suggestion (and am a little amazed I didn't see it earlier), however... it seems I either have to standardize on the platform ant is running on or create some logic to convert the os.name property to the valid target strings for the pathconvert task. Am I wrong about this? If so, I'm not entirely convinced the conversion would be more effective than what I'm doing, since currently, both paths are compared and substituted in their native form.

Thanks for your input and suggestions,

        -Abbey Hawk Sparrow

On Mar 6, 2005, at 4:35 PM, Jeffrey E Care wrote:

<pathconvert>

--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


Abbey Sparrow <[EMAIL PROTECTED]> wrote on 03/06/2005 03:01:15 AM:

I am currently jumping through a couple of hoops in order to get
relative classpaths in my manifest:

   <!-- Set Classpath -->
   <path id="project.class.path" >
         <fileset dir="${thirdPartyLibraries}">
             <include name="**/*.jar"/>
         </fileset>
         <pathelement location="${libraries}/Apollo.jar"/>
         <pathelement location="${libraries}/Sphinx.jar"/>
         <pathelement location="${libraries}/JSphinx.jar"/>
         <pathelement location="${libraries}/JHotep.jar"/>
         <pathelement location="${libraries}/JCereal.jar"/>
     </path>

     <!-- Make Classpath Relative -->
     <path id="root.path">
         <pathelement path="${antRoot}"/>
     </path>
     <record name="cp.txt" action="start" emacsmode="true" />
         <echo>${toString:project.class.path}</echo>
     <record name="cp.txt" action="stop"/>
     <replace
         file="cp.txt"
         token="${toString:root.path}"
         value=".."
     />
     <loadfile property="classpath" srcFile="cp.txt"/>
      <echo>${classpath}</echo>

Is this the only way to do this, or is there some other, better method
I am missing?


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to