Re: Exceptions running ant war from latest source

On Mon, 27 Oct 2014, Jaime Iniesta wrote:

> 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"/>

Fixed, thanks for spotting it.

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

>    [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

This usually means that you are building it with a jdk6 or lower. As the 
diamond operator is used, you need to use jdk7 or higher for this.
Thanks,

-- 
Baroula que barouleras, au tiƩu toujou t'entourneras.

         ~~Yves

Received on Tuesday, 28 October 2014 16:40:53 UTC