ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: Setting classpath.
Date Wed, 01 Aug 2001 23:24:11 GMT
David,

How don't they work?

Run ant with -debug and look for the javac command that it generates. Check
out if the classpath is valid. Try a hand compile with the classath as it
appears there. Does it work?

Conor


>  -----Original Message-----
> From: 	David Roe [mailto:droe@chartwelltechnology.com]
> Sent:	Thursday, 2 August 2001 6:06 AM
> To:	Ant-User@Jakarta. Apache. Org
> Subject:	Setting classpath.
>
> 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