On 20/03/2019 22:51, Mark Thomas wrote:
> Something is going to have to give:
> 
> Tomcat 7.0.x needs to build with Java 6.
>  - The last version of Checkstyle to run on Java 6 is 6.1.1
> 
> Gump uses the latest snapshot build of checkstyle
>  - currently 8.19-SNAPSHOT
> 
> Checkstyle 6.1.1 expects cacheFile to be configured under the TreeWalker
> 
> Checkstyle moved cacheFile to Checker in 6.16 as a breaking change
> 
> Checkstyle finally cacheFile from TreeWalker a few days ago
> 
> Checkstyle fails if the configuration is invalid.
> 
> I can't see a way to have the build work with Checkstyle when building
> locally with Java 6 and on Gump.
> 
> Currently validate works on Gump but fails locally.
> 
> I was thinking about running the validate task with Checkstyle 6.16 or
> later under Java 7 but I don't see an obvious way to do that. It is
> probably possible via an exec task or similar.
> 
> Any suggestions?

Of course:
https://github.com/rnveach/checkstyle-backport-jre6

I'll switch Tomcat 7 to use this shortly. Gump can carry on using
standard Checkstyle.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to