Okay, here are the snippets of my build.xml and the output from ant
<<<build.xml>>>
<path id="project.class.path">
<pathelement location="${javaHome}/lib/tools/jar" />
<pathelement location="${weblogicHome}/lib/weblogicaux.jar" />
<pathelement location="${weblogicHome}/license" />
<pathelement location="${weblogicHome}/classes" />
<pathelement location="${sybaseHome}/${sybaseJar}" />
<pathelement location="${armHome}/${armJar}" />
<pathelement location="${classes}" />
</path>
<target name="compileCommon"
depends="prepare "
description="Build the common transfer object class files">
<echo message="Building Common: Missing JAR?
=${weblogicHome}/lib/weblogicaux.jar" />
<javac srcdir ="${src}"
destdir="${classes}"
debug="${build.mode}"
verbose="${build.verbose}"
deprecation="${build.deprecation}"
includes="com/capgroup/opac/common/**/*">
<classpath refid="project.class.path"/>
</javac>
</target>
<<<Invocation and Output>>>
g:\apps\opac\build\main\buildScripts>ant -buildfile
build.xml -verbose -Dserver=OpacDvl compileCommon
Ant version 1.2 compiled on October 24 2000
....
[mkdir] Created dir: G:\APPS\OPAC\build\main\classes
Building Common: Missing JAR? =G:/APPS/weblogic/lib/weblogicaux.jar
[javac] Compiling 92 source files to G:\APPS\OPAC\build\main\classes
[javac] Using modern compiler
[javac] Compilation args: -deprecation -d
G:\APPS\OPAC\build\main\classes -classpath
G:\APPS\OPAC\build\main\classes;G:\Apps\opac\build\main\buildScripts;G:\Apps
\opac\build\main;G:\Apps\jdk1.3\jre\lib\rt.jar;G:\Apps\jdk1.3\jre\lib\i18n.j
ar;G:\apps\ant1.2\lib\ant.jar;G:\apps\ant1.2\lib\jaxp.jar;G:\apps\ant1.2\lib
\optional.jar;G:\apps\ant1.2\lib\parser.jar;E:\Oracle\Ora81\jdbc\lib\classes
111.zip;E:\CitiDirect\Development\com\classes;E:\OtnSamples\classes;E:\Apach
eGroup\JServ1.1\ApacheJServ.jar;E:\jsdk2.1\servlet.jar;E:\jpda1.0\lib\jpda.j
ar;G:\Apps\Ant1.2\lib\ant.jar;G:\Apps\Ant1.2\lib\jaxp.jar;G:\Apps\Ant1.2\lib
\optional.jar;G:\Apps\Ant1.2\lib\parser.jar;G:\Apps\jdk1.3\lib\tools.jar -so
urcepath G:\APPS\OPAC\build\main\java -g -verbose
[javac]
G:\APPS\OPAC\build\main\java\com\capgroup\opac\common\cachemgr\CacheMgr.java
:8: package javax.ejb does not exist
[javac] import javax.ejb.*;
[javac] ^
The java.ejb.* package is MOST definitely contained within the
weblogicaux.jar; No doubt about it.
Note that classpath as passed to the javac task DOES NOT MATCH the path
specified in the class path
reference in any way whatsoever?
ALSO: How do I get ant to supress the use of the value of ${java.class.path}
(picked up from the CLASSPATH
in the OS?). The classpath passed to the javac ant task maps to the
CLASSPATH (${java.class.path} with the
${classes} and current ("build") directory prepended to it........Still
mostly confused.
-----Original Message-----
From: K Plummer [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 21, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: Ant 1.2 javac classpath and classpath reference problems.
Hello,
I using ANT 1.2 (WNT/W2KPRO)and Javasoft 1.3.0c and seem to be
having problems getting the JAVAC task to take the classpath. I first tried
using a
CLASSPATH reference giving the ID. Didn't seem to work, but I wasn't
sure I understand the syntax so....
Next, I tried setting the classpath property and then
using the classpath="${classpath}" construction in the javac.
Also appeared not to work.
It seems that whatever I may try, ANT 1.2 javac desires/requires
classpath be set via the OS CLASSPATH, always ignoring any and
everything specified in the buildfile by any and every possible means.
When I enable verbose to javac and peek at the output the
-classpath ant1.2 sends to java always seems to be that of the
CLASSPATH environmental, even if I use classpath=" " (no classpath
passed to the ant 1.2 javac task.
Most confused.... please help if possible.