ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <>
Subject RE: HELP :javac classpath
Date Tue, 09 Aug 2005 15:21:22 GMT
You need something like the following to define the classpath:

<!-- A class path for the Java compiler. -->
<path id="classpath.compile">
  <fileset dir="./${build.pkg}">
    <include name="**/*.class"/>
  <fileset dir="./${src.lib}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
  <pathelement location="."/>

Then when you use it use something like this in the <javac> task:
<classpath refid="classpath.compile"/>

Setting the value of the file name in a property won't do it for you.
HTH Bill

-----Original Message-----
From: Arti Singh [] 
Sent: Tuesday, August 09, 2005 8:11 AM
Subject: HELP :javac classpath

 Hi ,

        I just want to clarify a few things.I am trying to compile a few
java files in my ant build script using a classpath variable to point to
required libraries.I tried the approach below.I tried to define my classpath
in properties and then used them in javac, but that doesnt seep to help.Can
someone please point me in the right direction.?


<property name="autoplugin.classpath" value="C:/Program

<property name="sdk.dir" value="C:/Program Files/OMS/SDK"/>

<property name="auto_plugin.classpath" value=



<javac srcdir="${taskcontext.emul.srcdir}"
  <include name="com/mslv/oms/sample/taskcontext/*.java"/>

Find your next car at Yahoo! Canada Autos

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message