Exceptions running ant war from latest source

I get into two errors when following the instructions at
https://github.com/tlvince/w3c-css-validator-guide

1) build.xml specifies a wrong version of htmlparser to unzip:

    <unzip src="tmp/htmlparser-1.3.1.zip" dest="tmp"/>

2) But even if I fix that, "ant war" complains with this:

##############

$ ant war
Buildfile: /home/user/build/2002/css-validator/build.xml

prepare.check:

prepare:
      [get] Getting: http://jigsaw.w3.org/Distrib/jigsaw_2.2.6.tar.gz
      [get] To: /home/user/build/2002/css-validator/tmp/jigsaw_2.2.6.tar.gz
      [get] Not modified - so not downloaded
      [get] Getting:
http://www.apache.org/dist/commons/collections/binaries/commons-collections-3.2.1-bin.zip
      [get] To:
/home/user/build/2002/css-validator/tmp/commons-collections-3.2.1-bin.zip
      [get] Not modified - so not downloaded
      [get] Getting:
https://archive.apache.org/dist/commons/digester/binaries/commons-digester-1.8.1-bin.zip
      [get] To:
/home/user/build/2002/css-validator/tmp/commons-digester-1.8.1-bin.zip
      [get] Not modified - so not downloaded
      [get] Getting:
http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.6-bin.zip
      [get] To:
/home/user/build/2002/css-validator/tmp/commons-lang-2.6-bin.zip
      [get] Not modified - so not downloaded
      [get] Getting:
http://www.apache.org/dist/velocity/engine/1.7/velocity-1.7.tar.gz
      [get] To: /home/user/build/2002/css-validator/tmp/velocity-1.7.tar.gz
      [get] Not modified - so not downloaded
      [get] Getting:
http://www.apache.org/dist/velocity/tools/2.0/velocity-tools-2.0.tar.gz
      [get] To:
/home/user/build/2002/css-validator/tmp/velocity-tools-2.0.tar.gz
      [get] Not modified - so not downloaded
      [get] Getting:
http://www.apache.org/dist/xerces/j/binaries/Xerces-J-bin.2.11.0.tar.gz
      [get] To:
/home/user/build/2002/css-validator/tmp/Xerces-J-bin.2.11.0.tar.gz
      [get] Not modified - so not downloaded
      [get] Getting:
http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.jar
      [get] To:
/home/user/build/2002/css-validator/tmp/servlet-api-2.5-6.0.0.jar
      [get] Not modified - so not downloaded
      [get] Getting: http://about.validator.nu/htmlparser/htmlparser-1.4.zip
      [get] To: /home/user/build/2002/css-validator/tmp/htmlparser-1.4.zip
      [get] Not modified - so not downloaded
    [untar] Expanding:
/home/user/build/2002/css-validator/tmp/jigsaw_2.2.6.tar.gz into
/home/user/build/2002/css-validator/tmp
    [unzip] Expanding:
/home/user/build/2002/css-validator/tmp/commons-collections-3.2.1-bin.zip
into /home/user/build/2002/css-validator/tmp
    [unzip] Expanding:
/home/user/build/2002/css-validator/tmp/commons-digester-1.8.1-bin.zip into
/home/user/build/2002/css-validator/tmp
    [unzip] Expanding:
/home/user/build/2002/css-validator/tmp/commons-lang-2.6-bin.zip into
/home/user/build/2002/css-validator/tmp
    [unzip] Expanding:
/home/user/build/2002/css-validator/tmp/htmlparser-1.4.zip into
/home/user/build/2002/css-validator/tmp
    [untar] Expanding:
/home/user/build/2002/css-validator/tmp/velocity-1.7.tar.gz into
/home/user/build/2002/css-validator/tmp
    [untar] Expanding:
/home/user/build/2002/css-validator/tmp/velocity-tools-2.0.tar.gz into
/home/user/build/2002/css-validator/tmp
    [untar] Expanding:
/home/user/build/2002/css-validator/tmp/Xerces-J-bin.2.11.0.tar.gz into
/home/user/build/2002/css-validator/tmp
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib
      [get] Getting: http://home.ccil.org/~cowan/XML/tagsoup/tagsoup-1.2.jar
      [get] To: /home/user/build/2002/css-validator/lib/tagsoup-1.2.jar
     [copy] Copying 1 file to /home/user/build/2002/css-validator/lib

build:
    [javac] /home/user/build/2002/css-validator/build.xml:91: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
    [javac] Compiling 1144 source files to
/home/user/build/2002/css-validator/build
    [javac] javac: invalid target release: 1.7
    [javac] Usage: javac <options> <source files>
    [javac] use -help for a list of possible options

BUILD FAILED
/home/user/build/2002/css-validator/build.xml:91: Compile failed; see the
compiler error output for details.

##############

The above mentioned guide has always been a great help, can't figure out
what has changed in the build now, can you help?

Thanks!
Jaime Iniesta

Received on Monday, 27 October 2014 15:03:35 UTC