ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: using loadfile to generate classpathref
Date Thu, 13 Nov 2003 12:39:28 GMT
Your dependency file lists the jars relative to that file - not relative to
the buildfile (or do you have the build.xml in the /config ?)
So you have to solve that:
a) edit the content of the file
b) replace the ../ by ./ while reading the file
   <loadfile><filterchain><replaceregexp/> should help here


Jan

> -----Original Message-----
> From: Euan Guttridge [mailto:EGuttridge@buildonline.com]
> Sent: Thursday, November 13, 2003 1:02 PM
> To: 'Ant Users List'
> Subject: RE: using loadfile to generate classpathref
> 
> 
> Hi,
> 
> This did not work. To clarify I have a text file which 
> contains a list of
> dependency jars including path relative to the text file - I 
> need Ant to use
> this as a classpathref. 
> 
> Example:
> 
> -config
> --dependencies.txt
> -lib
> --javax-media-jai/jai_codec-1.1.1_01.jar
> --javax-media-jai/jai_core-1.1.1_01.jar
> --javax-media-jai/mlibwrapper_jai-1.1.1_01.jar
> -src
> -web
> -etc
> 
> 
> dependencies.txt contents:
> ../lib/javax-media-jai/jai_codec-1.1.1_01.jar
> ../lib/javax-media-jai/jai_core-1.1.1_01.jar
> ../lib/javax-media/mlibwrapper_jai-1.1.1_01.jar
> 
> 
> Thanks
> Euan
> 
> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org] 
> Sent: 13 November 2003 11:37
> To: user@ant.apache.org
> Subject: Re: using loadfile to generate classpathref
> 
> 
> On Thu, 13 Nov 2003, Euan Guttridge <EGuttridge@buildonline.com>
> wrote:
> 
> > How can I use loadfile to generate a classpathref from a 
> text file of 
> > dependencies. Example file contents:
> 
> Don't use loadfile 8-)
> 
> <path id="...">
>   <fileset dir="." includesfile="your-file-here"/>
> </path>
> 
> should work.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message