I have used following approach to compile several classes with libraries located in 
different places:

    <property name="src" location="src"/>
    <property name="lib" location="../lib" />
    <property name="your_property_path" location="some_valid_path"/>    

    <path id="project.class.path">
        <fileset dir="${lib}">
            <include name="**/*.jar"/>
            <include name="**/*.zip"/>
        </fileset>
        <pathelement location="src"/> <!-- here there are several .class files-->
          <pathelement location="your_property_path"/>
    </path>

    <target name="rebuild" description="Rebuilds all eDocs project">
       <antcall target="cleanup"/>
        <javac srcdir="${build}" destdir="${build}"
               fork="true"
               executable="${jdk13.home}/bin/javac.exe">
            <!-- I am able to find all classes / jar / zip files required
                 with the line below -->
            <classpath refid="project.class.path"/> 
        </javac>
    </target>

HTH

Luis 
--------------
There are 10 kinds of programmers:
* Those who know binary code
* Those who does not


-----Original Message-----
From: priya pallavi [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 9:49 AM
To: [EMAIL PROTECTED]
Subject: structure of .JAR/.WAR Files


Hi friends this is Priya again with a request,
 
Iam using the following code to compile my files in EJB Module ,as it is depending on 
some classes in Webmodule i have included web modules .war in my classpath.But still 
its unable to locate those files. Can some one suggest me how it looks for a 
particular file when we provide .jar/.war in a classpath??
 

<target name="compileejb">

<!-- Compile the java code from ${source} into ${build} -->

<javac srcdir="${source}\AutobahnEJB" destdir="${build}\ejb" 
classpath="${build}\test.war"/>

<classpath>

<pathelement 
location="C:\WSAD_WORKSPACES\Autobahn\AutoabhnEAR\META-INF\build\web\com\ibm\autobahn\core\foundation\*.*"/>

</classpath>

</target>

 

Thanks 

 

Priya



---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Reply via email to