Thanks for the suggestion for turning on debug in ANT. I wasn't aware of
that feature.
I *was* running into a couple of troubles that I have been able to resolve
with that additional feedback. One of the things that was thwarting my
attempts was a reference to a directory not set in a <fileset> on line
"158". It turns out that it was on about line 90 that the problem existed,
so it was a wild goose chase for awhile. ...just a heads-up for other
neophytes on that issue.

As for the classpath, so far - for my "test compile" - it is working.

Thanks for your help once again, Conor.
Regards,
David


-----Original Message-----
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: RE: Setting classpath.


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:[EMAIL PROTECTED]]
> 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>
>

Reply via email to