ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Trouble getting classpath to work...
Date Fri, 08 Dec 2000 08:17:00 GMT
Michael Farmer <mfarmer8@bellsouth.net> wrote:

> ARGH...  I can't figure this out. The following is a javac tag, with
> a classpath defined for it.

[...]

> <fileset dir="${lib.dir}"> 
>   <include name="Vbjorb.jar,Vbjapp.jar" /> 
> </fileset>

[...]

> SO, why isn't Vbjorb.jar and Vbjapp.jar not getting added to my
> classpath parameter for the compiler?

The name attribute of <include> accepts a _single_ pattern. If you
want to specify more than one pattern, you have two options:

(1) old style, not recommended

<fileset dir="${lib.dir}" includes="Vbjorb.jar,Vbjapp.jar" />

(2) recommended

<fileset dir="${lib.dir}"> 
  <include name="Vbjorb.jar" /> 
  <include name="Vbjapp.jar" /> 
</fileset>

(1) is not recommended as you cannot specify patterns containing
spaces or commas that way.

Stefan

Mime
View raw message