ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Roe" <d...@chartwelltechnology.com>
Subject Setting classpath.
Date Wed, 01 Aug 2001 20:06:07 GMT
HI, 

What am I doing wrong here? I have tried to set the classpath in the
environment as well as setting it in the build file, neither of them work.
Both samples have been included here.

Thank you very much. 

Regards,
David
**********************************************
Compile target. 
    <target name="compiletest">
      <echo message="------------------------------------"/>
      <echo message="TEST COMPILE..."/>
      <echo message="------------------------------------"/>
      <javac srcdir="${dist.src}/sploosh" destdir="${dist.build}" debug="on"
verbose="on">
        <classpath refid="classpath" />
        <include name="server\DataBaseException.java"/>
      </javac>
    </target>

*********************************************
Classpath set in environment. 
  <path id="classpath">
    <pathelement path="${java.class.path}/"/>
  </path>

*****
Classpath set in build file. 
  <path id="classpath">
    <pathelement path="${java.class.path}/"/>
    <pathelement location="${gaming}\bin\game"/>
    <pathelement location="d:\jdk1.2.2\jre\lib\rt.jar"/>
    <pathelement location="d:\jdk1.2.2\src.jar"/>
    <fileset dir="${path.bin.lib}">
      <include name="j2ee.jar"/>
      <include name="xerces.jar"/>
      <include name="jdom.jar"/>
    </fileset>
    <fileset dir="${path.bin.lib}">
      <include name="d:\JRun\lib\servlet.jar"/>
    </fileset>
    <fileset dir="${path.bin.lib}">
      <include name="jcert.jar"/>
      <include name="jnet.jar"/>
      <include name="jsse.jar"/>
    </fileset>
    <pathelement location="${gaming}/src"/>
  </path>


Mime
View raw message