Re: obtain java spec version from Forked VM

2016-08-24 Thread Tibor Digana
No problem. I will change logic and i will run my test. Unfortunately JDK9 cannot be used in Jenkins because java compiler 1.5 is unsupported by jigsaw jdk however in plugin 3.0 it would be just fine. Checking module-info.class that exists makes sense to me. Cheers Tibor On Tue, Aug 23, 2016 at

Re: obtain java spec version from Forked VM

2016-08-23 Thread Robert Scholte
All other cases check the Java runtime instead the forked instance, that's much easier. The -Xpatch is only interesting if target/classes/module-info.class exists. So I'd go for that strategy. In fact, that's what the maven-compiler-plugin will do too to decide if it should use classpath or

obtain java spec version from Forked VM

2016-08-23 Thread Tibor Digana
I want to obtain java.specification.version from forked JVM started from Toolchain. I need to know if the JDK is Jigsaw 9 or lower. Robert gave me advise to run "java -version" and parse the string but the problem is that it is VM version and not the specification version of Java language, and

obtain java spec version from Forked VM

2016-08-23 Thread Tibor Digana
I want to obtain java.specification.version from forked JVM started from Toolchain. I need to know if the JDK is Jigsaw 9 or lower. Robert gave me advise to run "java -version" and parse the string but the problem is that it is VM version and not the specification version of Java language, and