Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#452 Add fork mode and jvm option to checkstyle task

release_4.3
open
nobody
5
2012-10-10
2007-02-13
Maarten Coene
No

Hi,

I have the same request as this one:
http://sourceforge.net/tracker/index.php?func=detail&aid=1212138&group_id=29721&atid=397081

My situation is like this:
- we have a build machine which is used to build all our projects
- this build machine uses Ant and JDK 1.4 for building the projects
- some projects are compiled with JDK 1.4 and some are compiled with JDK 1.5

When I check the sources of a project which was compiled with JDK 1.5, I get the following error on some checks: java.lang.UnsupportedClassVersionError: (Unsupported major.minor version 49.0)

This is caused because Ant is running on a JDK 1.4 and therefor cannot read the classes compiled with JDK 1.5.

What I need is something similar like the junit task has: a fork and jvm attribute. These attributes make it possible to tell checkstyle to run in a JDK1.5 JVM.

If you think this could be interesting, I'll try to produce a patch.

regards,
Maarten

Discussion

  • Oliver Burn
    Oliver Burn
    2007-02-13

    Logged In: YES
    user_id=218824
    Originator: NO

    Patches are always welcome. :-)