You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Ian P. Springer" <ip...@fpk.hp.com> on 2000/11/08 00:27:30 UTC

ant bootstrap build fails on hp-ux 11.0

I am trying to build ant 1.2 on HP-UX 11.0.  I get the below error.  Can anyone
help?

Thanks
Ian

[wolverin]# ./bootstrap.sh
... Bootstrapping Ant Distribution
... Compiling Ant Classes
... Copying Required Files
... Building Ant Distribution
Searching for build.xml ...
Buildfile: /tmp/jak/build.xml

clean:
   [delete] Deleting directory /tmp/build/ant

prepare:
    [mkdir] Created dir: /tmp/build/ant

check_for_optional_packages:

compile:
    [mkdir] Created dir: /tmp/build/ant/classes
    [javac] Compiling 121 source files to /tmp/build/ant/classes
    [javac]
/tmp/jak/src/main/org/apache/tools/ant/taskdefs/optional/Script.java:106: Wrong
number of arguments in method.
    [javac]                 manager.declareBean(key, value, value.getClass());
    [javac]                                    ^
    [javac] 1 error

BUILD FAILED

/tmp/jak/build.xml:87: Compile failed, messages should have been provided.

Total time: 27 seconds
... Cleaning Up Build Directories
chmod: can't access bin/ant
chmod: can't access bin/antRun
... Done Bootstrapping Ant Distribution


Re: ant bootstrap build fails on hp-ux 11.0

Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: "Ian P. Springer" <ip...@fpk.hp.com>
To: <an...@jakarta.apache.org>
Sent: Wednesday, November 08, 2000 12:27 AM
Subject: ant bootstrap build fails on hp-ux 11.0


> compile:
>     [mkdir] Created dir: /tmp/build/ant/classes
>     [javac] Compiling 121 source files to /tmp/build/ant/classes
>     [javac]
> /tmp/jak/src/main/org/apache/tools/ant/taskdefs/optional/Script.java:106:
Wrong
> number of arguments in method.
>     [javac]                 manager.declareBean(key, value,
value.getClass());
>     [javac]                                    ^
>     [javac] 1 error
>

Seems that you have BSF (Bean Scripting Framework) on your classpath. Since
IBM does not seem to have all versions in CVS (or there is/was only one)
it's not possible to tell if this method ever changed.

Can you try to remove BSF from your CLASSPATH and build ant?  Do you need
BSF? - If not you are done, if yes you should maybe try to get the latest
version from IBM.

Nico