List of usage examples for org.apache.commons.lang SystemUtils IS_JAVA_1_3
boolean IS_JAVA_1_3
To view the source code for org.apache.commons.lang SystemUtils IS_JAVA_1_3.
Click Source Link
Is true
if this is Java version 1.3 (also 1.3.x versions).
The field will return false
if #JAVA_VERSION is null
.
From source file:org.apache.cocoon.components.language.programming.java.Javac.java
/** * Compile a source file yielding a loadable class file. * * <code>null</code> if it is the platform's default encoding * @exception IOException If an error occurs during compilation */// w ww . j av a 2 s. c o m public boolean compile() throws IOException { ByteArrayOutputStream err = new ByteArrayOutputStream(); boolean result; if (!SystemUtils.IS_JAVA_1_3) { // For Java 1.4 and 1.5 PrintWriter pw = new PrintWriter(err); result = com.sun.tools.javac.Main.compile(toStringArray(fillArguments(new ArrayList())), pw) == 0; } else { sun.tools.javac.Main compiler = new sun.tools.javac.Main(err, "javac"); result = compiler.compile(toStringArray(fillArguments(new ArrayList()))); } this.errors = new ByteArrayInputStream(err.toByteArray()); return result; }