ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From René Ghosh <rene_gh...@yahoo.com>
Subject Re: Relative classpaths for a manifest
Date Sun, 06 Mar 2005 19:55:21 GMT

Ants' Pathconvert task will enable you to convert one path ointo another, and supports nested
mapper tasks that can do search&replace, or even (in version 1.6.2) "flatten" all paths
into sole
jar filenames for easy J2EE deployement.

--- Abbey Sparrow <abbeysparrow@mac.com> wrote:
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message