ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fergus Gallagher <Fergus.Gallag...@OrbisUK.com>
Subject Problem building ant with JDK1.3 modern
Date Fri, 04 Feb 2000 14:38:31 GMT
I tried changing build.compiler to "modern" in build.xml but the
generated lib\ant.jar is tiny and doesn't contain any classes - just the
properties.  The problem's presumably in the javac since the build
directory doesn't contain any classes.

Changing things back to "classic" & running bootstrap brings things back
fine.

Can anybody else replicate this?  I am using JDK 1.3 rc1 on NT

Fergus

======= OUTPUT ===============

H:\cvswork\jakarta-ant>build
Buildfile: build.xml
Detected Java Version: 1.3
Project base dir set to: H:\cvswork\jakarta-ant
Executing Target: init
Executing Target: prepare
Created dir: H:\cvswork\jakarta-ant\build
Executing Target: compile
Created dir: H:\cvswork\jakarta-ant\build\classes
Compiling 39 source files to H:\cvswork\jakarta-ant\build\classes
Performing a Modern Compile
Copying 3 support files to H:\cvswork\jakarta-ant\build\classes
Executing Target: jar
Building jar: H:\cvswork\jakarta-ant\lib\ant.jar
Executing Target: main
Completed in 6 seconds

H:\cvswork\jakarta-ant>build
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/
Main

H:\cvswork\jakarta-ant>jar -tvf lib\ant.jar
     0 Fri Feb 04 14:25:24 GMT+00:00 2000 META-INF/
    62 Fri Feb 04 14:25:24 GMT+00:00 2000 META-INF/MANIFEST.MF
     0 Fri Feb 04 14:25:24 GMT+00:00 2000 org/
     0 Fri Feb 04 14:25:24 GMT+00:00 2000 org/apache/
     0 Fri Feb 04 14:25:24 GMT+00:00 2000 org/apache/tools/
     0 Fri Feb 04 14:25:24 GMT+00:00 2000 org/apache/tools/ant/
     0 Fri Feb 04 14:25:24 GMT+00:00 2000 org/apache/tools/ant/taskdefs/
  1120 Fri Feb 04 14:25:24 GMT+00:00 2000
org/apache/tools/ant/taskdefs/defaults
.properties
    22 Fri Feb 04 14:25:24 GMT+00:00 2000
org/apache/tools/ant/defaultManifest.m
f
    37 Fri Feb 04 14:25:24 GMT+00:00 2000
org/apache/tools/ant/parser.properties

H:\cvswork\jakarta-ant>dir *.class /s
 Volume in drive H is fgallagh
 Volume Serial Number is 1568-256C

File Not Found



-- 
Fergus Gallagher          Tel: +44 (20) 89 87 07 17
Orbis                     Fax: +44 (20) 87 42 26 49
The Swan Centre           email: Fergus.Gallagher@orbisuk.com
Fishers Lane              Web: http://www.orbisuk.com
London W4 1RX / UK

Mime
View raw message