|
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. -- |
- [CTJUG Forum] building httpunit with ant and jdk1.5 mogammad
