ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (PS, GNF, Contractor)" <>
Subject RE: structure of .JAR/.WAR Files
Date Fri, 20 Feb 2004 16:00:52 GMT
I have used following approach to compile several classes with libraries located in different

    <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"/>
        <pathelement location="src"/> <!-- here there are several .class files-->
	  <pathelement location="your_property_path"/>

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


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

-----Original Message-----
From: priya pallavi []
Sent: Friday, February 20, 2004 9:49 AM
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"/>


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







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

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