ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Sutherland <sut...@ncs.com>
Subject javac, jdk1.3, Win32
Date Tue, 08 Aug 2000 03:55:39 GMT
When I fetched the lastest ant from anoncvs tonight, bootstraped and
built I started running into the following problem:

Here's the relevent section of build.xml:

<target name="CompPackDist" depends="MakePackDistDest">
  <!-- Compiles the source code -->
  <echo message="destdir=${class.dir}"/>
  <javac srcdir="${src.dir}" destdir="${class.dir}" classpath="${classpath}" debug="on"
deprecation="on" excludes="com/ncs/pd/ejb/**, com/ncs/pd/servlets/**, com/ncs/pd/managers/PreId*,
com/ncs/pd/managers/Imports/**"/>
</target>

All properties are defined correctly (I believe =) Breaking the target
down into pieces didn't seem to affect anything...  The same script
runs correctly for jdk1.2.2

Here's the environment:

D:\usr\src\pd2.1>java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Server VM (build 2.0fcs-E, mixed mode)

D:\usr\src\pd2.1>ant -version
Ant version 1.2alpha compiled on August 7 2000

D:\usr\src\pd2.1>ant clean AccountBean
Buildfile: build.xml

clean:
  [deltree] Deleting: D:\usr\src\pd2.1\lib
  [deltree] Deleting: D:\usr\src\pd2.1\packdist_classes
  [deltree] Deleting: D:\usr\src\pd2.1\servlets_classes
  [deltree] Deleting: D:\usr\src\pd2.1\AccountEJB

init:

prepare:
classpath=.\syslog.jar;.\xml4j-3.0.1.jar;.\classes12.zip;.\weblogicaux.jar;.\wl-5.1.0-classes.jar;.\activation.jar;.\mail.jar;.\fooware.jar;.\Java

MakePackDistDest:
    [mkdir] Created dir: D:\usr\src\pd2.1\packdist_classes

CompPackDist:
destdir=packdist_classes
    [javac] Compiling 176 source files to D:\usr\src\pd2.1\packdist_classes

BUILD FAILED

build.xml:55: java.lang.IllegalArgumentException: wrong number of
arguments
java.lang.IllegalArgumentException: wrong number of arguments
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Javac.doModernCompile(Javac.java:497)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:326)
        at org.apache.tools.ant.Target.execute(Target.java:132)
        at org.apache.tools.ant.Project.runTarget(Project.java:720)
        at
org.apache.tools.ant.Project.executeTarget(Project.java:451)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:425)
        at org.apache.tools.ant.Main.runBuild(Main.java:298)
        at org.apache.tools.ant.Main.main(Main.java:119)

Total time: 4 seconds

Looking at doModernCompile didn't help me, however, a verbose
execution of the same build.xml file looked to produce a valid set of
arguments.

Any help would be great!

Scott

-- 
Scott Sutherland                          National Computer Systems
(319) 354-9200                        Measurement Services Division
suthsc@ncs.com                                        Iowa City, Ia
import my.standard.disclaimer.*;                        GO HAWKS!!!

  "Coding in windows is sort of like writing a biography about a
  person who won't tell you anything about themselves." - jheart8


Mime
View raw message