pleasure

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of mogammad
Sent: Thursday, January 12, 2006 2:53 PM
To: [email protected]
Subject: [CTJUG Forum] Re: building httpunit with ant and jdk1.5

 

That worked thanx

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Leon van der Merwe
Sent: Thursday, January 12, 2006 2:30 PM
To: [email protected]
Subject: [CTJUG Forum] Re: building httpunit with ant and jdk1.5

 

Enumeration enum = HTMLParserFactory.getHTMLParserListeners.

 

enum is a keyword change the variable name

 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of mogammad
Sent: Thursday, January 12, 2006 2:26 PM
To: [email protected]
Subject: [CTJUG Forum] building httpunit with ant and jdk1.5

 

Hi there

 

I am havin a problem building httpunit 1.6 with ant.  I am running jdk1.5

This is the error I get

 

 

C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6>ant jar

Buildfile: build.xml

 

prepare:

    [mkdir] Created dir: C:\Development Frameworks\testing\blackbox\httpunit-1.6

\httpunit-1.6\build

 

check_for_optional_packages:

 

compile:

    [mkdir] Created dir: C:\Development Frameworks\testing\blackbox\httpunit-1.6

\httpunit-1.6\build\classes

    [javac] Compiling 129 source files to C:\Development Frameworks\testing\blac

kbox\httpunit-1.6\httpunit-1.6\build\classes

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\JTidyPrintWriter.java:201: as of release 1.5

, 'enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         Enumeration enum = HTMLParserFactory.getHTMLParserListeners(

).elements();

    [javac]                     ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\JTidyPrintWriter.java:202: as of release 1.5

, 'enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         while (enum.hasMoreElements()) {

    [javac]                ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\JTidyPrintWriter.java:203: as of release 1.5

, 'enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]             ((HTMLParserListener) enum.nextElement()).error( _url, m

sg, line, column );

    [javac]                                   ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\JTidyPrintWriter.java:209: as of release 1.5

, 'enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         Enumeration enum = HTMLParserFactory.getHTMLParserListeners(

).elements();

    [javac]                     ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\JTidyPrintWriter.java:210: as of release 1.5

, 'enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         while (enum.hasMoreElements()) {

    [javac]                ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\JTidyPrintWriter.java:211: as of release 1.5

, 'enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]             ((HTMLParserListener) enum.nextElement()).warning( _url,

 msg, line, column );

    [javac]                                   ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\NekoDOMParser.java:145: as of release 1.5, '

enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         Enumeration enum = HTMLParserFactory.getHTMLParserListeners(

).elements();

    [javac]                     ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\NekoDOMParser.java:146: as of release 1.5, '

enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         while (enum.hasMoreElements()) {

    [javac]                ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\NekoDOMParser.java:147: as of release 1.5, '

enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]             ((HTMLParserListener) enum.nextElement()).warning( _url,

 warningException.getMessage(), warningException.getLineNumber(), warningExcepti

on.getColumnNumber() );

    [javac]                                   ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\NekoDOMParser.java:153: as of release 1.5, '

enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         Enumeration enum = HTMLParserFactory.getHTMLParserListeners(

).elements();

    [javac]                     ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\NekoDOMParser.java:154: as of release 1.5, '

enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]         while (enum.hasMoreElements()) {

    [javac]                ^

    [javac] C:\Development Frameworks\testing\blackbox\httpunit-1.6\httpunit-1.6

\src\com\meterware\httpunit\parsing\NekoDOMParser.java:155: as of release 1.5, '

enum' is a keyword, and may not be used as an identifier

    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)

    [javac]             ((HTMLParserListener) enum.nextElement()).error( _url, e

rrorException.getMessage(), errorException.getLineNumber(), errorException.getCo

lumnNumber() );

    [javac]                                   ^

    [javac] 12 errors

 

BUILD FAILED

file:C:/Development%20Frameworks/testing/blackbox/httpunit-1.6/httpunit-1.6/buil

d.xml:84: Compile failed; see the compiler error output for details.

 

Total time: 2 seconds

 

 

Does any body have any ideas how 2 fix this??

 

Any help would be much appreciated.


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/227 - Release Date: 1/11/2006


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/227 - Release Date: 1/11/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/227 - Release Date: 1/11/2006

Reply via email to