|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsptest.compiler.java.SunJavaC
public class SunJavaC
This implementation uses the java compiler from sun which ships with since the jdk since java 1.3. The code is inspired by the javac ant task implementation.
| Constructor Summary | |
|---|---|
SunJavaC()
|
|
| Method Summary | |
|---|---|
boolean |
compile(java.lang.String pathToJavaSource,
java.lang.String outputDirectory,
java.lang.String[] classpath)
Compiles the given .java source file into the given .class file using an explicitly set class path. |
boolean |
isAvailable()
Indicates whether this Java compiler implementation is available on the current system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SunJavaC()
| Method Detail |
|---|
public boolean compile(java.lang.String pathToJavaSource,
java.lang.String outputDirectory,
java.lang.String[] classpath)
throws java.lang.Exception
JavaCompiler
compile in interface JavaCompilerpathToJavaSource - Path to the source file to compile.outputDirectory - Path to the output directory under which to generate the
.class fileclasspath - The class path to use for compilation.
java.lang.Exceptionpublic boolean isAvailable()
JavaCompiler
isAvailable in interface JavaCompiler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||