ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang, Ken" <Ken.Y...@gs.com>
Subject RE: Condition execution of a target or a task with in the target
Date Thu, 10 May 2001 21:19:25 GMT
Thanks. Again,
 
1) Where this section should be stick into the build xml? the <javac> part?
or the <property> part? In neiter case it worked for me.

2) In <classpath>
      <pathelement path="${classpath}"/>,
   how the ${classpath} itself gets defined? like
dir_name/A.jar;dir_name/B.jar ? (which did't work for me at all!)

   Can somebody actually have done this (include dozen of jar files as
classpath) give me an real example? If ant cannot even compile with the
required lib files, then it wound be good at all for real life projects.
Hope it's not like that.

  Regards
   
-----Original Message-----
From: David Scassa [mailto:dscassa@journee.com]
Sent: Thursday, May 10, 2001 4:50 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: Condition execution of a target or a task with in the
target


Look at the fileset instructions in the Ant manual.

An example would be:

<classpath>
      <pathelement path="${classpath}"/>
      <fileset dir="lib">
        <include name="**/*.jar"/>
      </fileset>
      <pathelement location="classes"/>
</classpath>


I'm not the expert on this, but thought I'd participate!

Have a good day.

Dave
-----Original Message-----
From: Yang, Ken [mailto:Ken.Yang@gs.com]
Sent: Thursday, May 10, 2001 3:40 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: Condition execution of a target or a task with in the
target


Hi all,

  I am evaluating ant for one of the project. the Ant document says you can
use <CLASSPATH> element tag. Can someone give me one example if there are
dozen jar files needs to be in classpath? Where exactly the <CLASSPATH>
needs to be? Ant 1.3 always complains the tag when I tried it. Also, in
<javac> tag, classpath=dir_name/*.jar doesn't work, neither does
classpath=dir_name/A.jar;dir_name/B.jar.;dir_name/C.jar.
  Thanks.

Mime
View raw message