You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Scott Sutherland <su...@ncs.com> on 2000/08/08 05:55:39 UTC
javac, jdk1.3, Win32
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
Re: javac, jdk1.3, Win32
Posted by Stefan Bodewig <bo...@bost.de>.
Thanks, should be fixed now.
For some reason I forgot I had -Dbuild.compiler=jikes in my .antrc
when I tested my changes using JDK 1.3, sorry.
Stefan