net.sf.jsptest.compiler.java
Interface JavaCompiler

All Known Implementing Classes:
CommandLineJavac, SunJavaC

public interface JavaCompiler

The interface for Java compiler implementations.

Author:
Lasse Koskela

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.
 

Method Detail

compile

boolean compile(java.lang.String pathToJavaSource,
                java.lang.String outputDirectory,
                java.lang.String[] classpath)
                throws java.lang.Exception
Compiles the given .java source file into the given .class file using an explicitly set class path.

Parameters:
pathToJavaSource - Path to the source file to compile.
outputDirectory - Path to the output directory under which to generate the .class file
classpath - The class path to use for compilation.
Throws:
java.lang.Exception

isAvailable

boolean isAvailable()
Indicates whether this Java compiler implementation is available on the current system.



Copyright © 2006-2008 JspTest developers. All Rights Reserved.