You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by James THOMAS <Ja...@enovia.com> on 2001/09/28 17:28:22 UTC

Re: newbie needs help: jar / fileset search path?

I was afraid I'd get an answer like that after I sent the mail.  Here's a
better example that demonstrates my challenge.

<classpath>
    <fileset searchpath="/tmp/some_jars;/user/theman/some_more_jars">
              <include name="jar1.jar"/>
              <include name="jar2.jar"/>
    </fileset>
</classpath>


I cannot make any assumptions about the search path directory names.  They
can be anything.


Thanks.


--- James THOMAS <Ja...@enovia.com> wrote:
> Is there a way to specify as part of the classpath a jar file and a
> search path for the jar file?
>
> Here's an illegal example which demonstrates what I'm looking for:
>
> <classpath>
>      <fileset searchpath="/tmp/some_jars;/tmp/some_more_jars">
>                <include name="jar1.jar"/>
>                <include name="jar2.jar"/>
>      </fileset>
> </classpath>

You'd need to do it as:
  <classpath>
    <fileset dir="/tmp/some_jars">
      <include name="jar1.jar"/>
      <include name="jar2.jar"/>
    </fileset>
    <fileset dir="/tmp/some_more_jars">
      <include name="jar1.jar"/>
      <include name="jar2.jar"/>
    </fileset>
  </classpath>

Diane



=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com