You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Hugo Garcia <hu...@mail.office.com> on 2001/01/24 22:11:13 UTC

Trying to bootstrap Ant for compiling

Hello

This is my classpath :

echo $CLASSPATH
.:/export/home1/hgarcia/bin/Netscape/java/classes/java40.jar:/expo
rt/home3/voadmin/lib/jakarta-oro-2.0.1/jakarta-oro-2.0.1.jar:/expo
rt/home3/voadmin/lib/NetComponents-1.3.8a/NetComponents.jar:/expor
t/home3/voadmin/lib/xerces-1_2_3/xerces.jar:/export/home3/voadmin/
lib/xalan-j_1_2_2/xalan.jar:/export/home3/voadmin/lib/junit3.5/src
.jar:/export/home3/voadmin/lib/junit3.5/junit.jar:/export/home3/vo
admin/lib/j2eeunit-22-0.5.jar

When I type $ bootstrap.sh I get the following output :

officedev:/export/home3/voadmin/temp[161]$ bootstrap.sh
... Bootstrapping Ant Distribution
... Compiling Ant Classes
... Copying Required Files
... Building Ant Distribution
Searching for build.xml ...
Buildfile: /export/home3/voadmin/temp/build.xml

clean:

prepare:
    [mkdir] Created dir: /export/home3/voadmin/build/ant

check_for_optional_packages:

compile:
    [mkdir] Created dir: /export/home3/voadmin/build/ant/classes
    [javac] Compiling 132 source files to
/export/home3/voadmin/build/ant/classes
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/PlainJUnitResultFormatter.java:71: class
org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultForma
tter must be declared abstract. It does not define void
addFailure(junit.framework.Test,
junit.framework.AssertionFailedError) from interface
junit.framework.TestListener.
    [javac] public class PlainJUnitResultFormatter implements
JUnitResultFormatter {
    [javac]              ^
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/SummaryJUnitResultFormatter.java:70: class
org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFor
matter must be declared abstract. It does not define void
addFailure(junit.framework.Test,
junit.framework.AssertionFailedError) from interface
junit.framework.TestListener.
    [javac] public class SummaryJUnitResultFormatter implements
JUnitResultFormatter {
    [javac]              ^
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/JUnitTestRunner.java:81: class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner must
be declared abstract. It does not define void
addFailure(junit.framework.Test,
junit.framework.AssertionFailedError) from interface
junit.framework.TestListener.
    [javac] public class JUnitTestRunner implements TestListener {
    [javac]              ^
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/JUnitTestRunner.java:324: class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner is an
abstract class. It can't be instantiated.
    [javac]         JUnitTestRunner runner = new
JUnitTestRunner(t, haltError, haltFail);
    [javac]                                  ^
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/JUnitTask.java:231: class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner is an
abstract class. It can't be instantiated.
    [javac]                     runner = new JUnitTestRunner(test,
test.getHaltonerror(),
    [javac]                              ^
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/JUnitTask.java:234: class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner is an
abstract class. It can't be instantiated.
    [javac]                     runner = new JUnitTestRunner(test,
test.getHaltonerror(),
    [javac]                              ^
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/JUnitTask.java:242: class
org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFor
matter is an abstract class. It can't be instantiated.
    [javac]                         new
SummaryJUnitResultFormatter();
    [javac]                         ^
    [javac]
/export/home3/voadmin/temp/src/main/org/apache/tools/ant/taskdefs/
optional/junit/XMLJUnitResultFormatter.java:75: class
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatt
er must be declared abstract. It does not define void
addFailure(junit.framework.Test,
junit.framework.AssertionFailedError) from interface
junit.framework.TestListener.
    [javac] public class XMLJUnitResultFormatter implements
JUnitResultFormatter {
    [javac]              ^
    [javac] 8 errors

BUILD FAILED


________________________

Can anyone tell me what I am doing wrong?

thanks

-H


Upgrading the source to JUnit 3.5

Posted by Hugo Garcia <hu...@mail.office.com>.
Anybody doing this? Need help?

If not then I would like to do it.

-H

RE: Trying to bootstrap Ant for compiling

Posted by Hugo Garcia <hu...@mail.office.com>.
that's what I suspected. thanks for the confirmation.

Anybody working on the fix?

Need help?

-H


> -----Original Message-----
> From: Nico Seessle [mailto:Nico.Seessle@epost.de]
> Sent: Wednesday, January 24, 2001 5:28 PM
> To: ant-dev@jakarta.apache.org
> Subject: Re: Trying to bootstrap Ant for compiling
>
>
> ----- Original Message -----
> From: "Hugo Garcia" <hu...@mail.office.com>
> To: <an...@jakarta.apache.org>
> Sent: Wednesday, January 24, 2001 10:11 PM
> Subject: Trying to bootstrap Ant for compiling
>
> [Compiler errors with JUnit-task]
>
> > Can anyone tell me what I am doing wrong?
> >
>
> Nothing. They (the JUnit-team) changed the Interface
> TestListener between
> Release 3.4 and 3.5.
>
>   public void addFailure(Test test, Throwable t);
>
> now got
>
>  public void addFailure(Test test, AssertionFailedError t);
>
> If you need it fast you should rebuild with the
> junit.jar included in CVS or
> Download JUnit 3.4
>
> Nico
>
>
>
> --------------------------------------------------------
> -------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org
>


Re: Trying to bootstrap Ant for compiling

Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: "Hugo Garcia" <hu...@mail.office.com>
To: <an...@jakarta.apache.org>
Sent: Wednesday, January 24, 2001 10:11 PM
Subject: Trying to bootstrap Ant for compiling

[Compiler errors with JUnit-task]

> Can anyone tell me what I am doing wrong?
>

Nothing. They (the JUnit-team) changed the Interface TestListener between
Release 3.4 and 3.5.

  public void addFailure(Test test, Throwable t);

now got

 public void addFailure(Test test, AssertionFailedError t);

If you need it fast you should rebuild with the junit.jar included in CVS or
Download JUnit 3.4

Nico