Thanks, Materne

2005/12/5, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> A fileset [1] has exactly one root directory. Because d:\ and e:\ doesnt
> have that
> (windows shows them only under a common place) you have to use two
> different
> filesets.
> A path [2] on the other hand can contain multiple filesets, so you´ll get
>
> <path id="project.classpath">
>    <fileset dir="D:\java\lib" includes="**/*.jar"/>
>    <fileset dir="e:\java\lib" includes="**/*.jar"/>
> </path>
>
>
> Jan
>
>
> [1] http://ant.apache.org/CoreTypes/fileset.html
> [2] http://ant.apache.org/manual/using.html#path
>
>
> >-----Ursprüngliche Nachricht-----
> >Von: ye huaiguang [mailto:[EMAIL PROTECTED]
> >Gesendet: Sonntag, 4. Dezember 2005 02:36
> >An: Ant Users List
> >Betreff: Re: does "property" could have several values?
> >
> >hi
> >Thanks ddevienne, now I can resolve my problem, but I still
> >have a question, if my JARs even in a drivers, like
> >"D:\java\lib" & "e:\java\lib", How could I do in this situation?
> >
> >
> >2005/12/4, Dominique Devienne <[EMAIL PROTECTED]>:
> >>
> >> > but now my value should be "D:/Java/hibernate"
> >> &="D:/Java/hibernate/lib",
> >> > should I write them like this?
> >> >           <property name="lib.dir"
> >> > value="D:/Java/hibernate;D:/Java/hibernate/lib" /> or
> >> >            <property name="lib.dir" value="D:/Java/hibernate" />
> >> >            <property name="lib.dir"
> >value="D:/Java/hibernate/lib" />
> >> >
> >> > I know I could copy all the jars to one directory, but I think it's
> >> quirk,
> >> > so I came here to find better way.Thanks!
> >>
> >> A property is just a string. You can put whatever you want
> >in it. But
> >> <fileset dir=...> on the other hand expects a directory name, so if
> >> you pass it a string that doesn't correspond to a dir name, then it
> >> will fail.
> >>
> >> Here one way (among several) that you can achieve what you want:
> >>
> >> <property name="lib.dir" value="D:/Java/hibernate" /> <path
> >> id="project.class.path"> <fileset dir="${lib.dir}">
> >>    <include name="*.jar"/>
> >>    <include name="lib/*.jar"/>
> >> </fileset>
> >> <pathelement location="${class.dir}" /> </path>
> >>
> >> --DD
> >>
> >> ---------------------------------------------------------------------
> >> 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