ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye huaiguang <>
Subject Does "property" could have several values?
Date Sat, 03 Dec 2005 02:54:03 GMT
I'm a newbie of Ant, now I have a question, I want to define classpath, but
they aren't in one place, like this

<!-- lib directory-->
 <property name="lib.dir" value="D:/Java/hibernate" />
<!-- define classpath -->
 <path id="project.class.path">
  <fileset dir="${lib.dir}">
   <include name="*.jar"/>
  <pathelement location="${ class.dir}" />

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" />
            <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!

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