ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Johnson <tdjohn...@ajile.com>
Subject Have you been able to use Ant with BOOTCLASSPATH successfully?
Date Mon, 23 Oct 2000 21:59:20 GMT
I've set up a pretty simple build.xml file to build a tree of Java sources "from scratch".
The messages that I get from the (ant-driven) compiles seem to indicate that the class
files in the bootclasspath are not always found.

Here is the section of the build.xml file that applies:

  <target name="build">
    <property file="default_build.properties" />
    <javac srcdir="." destdir="../rts" includes="**/*.java" classpath="."
bootclasspath="${bootclasspath}"/>
  </target>

Here are the contents of the default_build.properties file:

  bootclasspath=d:/J2ME_CLDC_1.0_FCS/bin/api/classes

However, *some* of the .java files *do* get compiled successfully.  Following is what appear
to
be relevant sections of the messages generated by Ant.  What I'd like to know is whether others
have had success using Ant with bootclasspath, or if there are "gotchas" I'm not aware of.

FYI, I could not get to the Ant FAQ.

D:\test_runtime_cldc\SRC>ant -verbose
Buildfile: build.xml
Setting project property: ant.java.version -> 1.3
Detected Java Version: 1.3
Detected OS: Windows NT
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand

  <MANY MESSAGES DELETED HERE ABOUT TASKS AND PROPERTIES>

Setting project property: basedir -> D:\test_runtime_cldc\Src
Project base dir set to: D:\test_runtime_cldc\Src
 +Target: init
   +Task: tstamp
Setting project property: DSTAMP -> 20001023
Setting project property: TSTAMP -> 1631
Setting project property: TODAY -> October 23 2000
   +Task: property
 [property] Loading default_build.properties
Setting project property: bootclasspath -> d:/J2ME_CLDC_1.0_FCS/bin/api/classes
 +Target: build
   +Task: javac
 +Target: clean
 +Target: doclean
   +Task: deltree
 +Target: mkdir
   +Task: mkdir
Build sequence for target `build' is [build]
Complete build sequence is [build, init, doclean, clean, mkdir]
    [javac] Compiling 186 source files to D:\test_runtime_cldc\rts
    [javac] Using classic compiler
    [javac] Compilation args: [-d, D:\test_runtime_cldc\rts, -classpath,
D:\test_runtime_cldc\rts;D:\test_runtime_cldc\Src;D:\ant\lib\ant.jar;D:\ant\lib\jaxp.jar;D:\ant\lib\parser.jar;D:\jdk1.2.2\lib\tools.jar,
-sourcepath, ., -bootclasspath, d:\J2ME_CLDC_1.0_FCS\bin\api\classes]
    [javac] Files to be compiled:

 <LIST OF FILES TO BE COMPILE WAS REMOVED, BUT LOOKS FINE>

    [javac] D:\test_runtime_cldc\Src\com\ajile\drivers\ethernet\Debug.java:28: Can't access
class
java.lang.Object. Class or interface must be public, in s
ame package, or an accessible member class.
    [javac] public class Debug {
    [javac]              ^

 <DOZENS OF SIMILAR ERROR MESSAGES DELETED>

    [javac]              ^
    [javac] Too many errors.  (The limit
    [javac] 101 errors, 1 warning

BUILD FAILED

build.xml:10: Compile failed

Total time: 5 seconds
D:\test_runtime_cldc\SRC>

--
Tom Johnson
Technical Staff
aJile Systems, Inc.     http://www.ajile.com/
tdjohnson@ajile.com     319 378 3941



Mime
View raw message