net.sf.jsptest.compiler.java
Class CommandLineJavac

java.lang.Object
  extended by net.sf.jsptest.compiler.java.CommandLineJavac
All Implemented Interfaces:
JavaCompiler

public class CommandLineJavac
extends java.lang.Object
implements JavaCompiler

Author:
Lasse Koskela

Constructor Summary
CommandLineJavac()
           
 
Method Summary
 boolean compile(java.lang.String srcFile, java.lang.String destDir, 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

CommandLineJavac

public CommandLineJavac()
Method Detail

compile

public boolean compile(java.lang.String srcFile,
                       java.lang.String destDir,
                       java.lang.String[] classpath)
                throws java.lang.Exception
Description copied from interface: JavaCompiler
Compiles the given .java source file into the given .class file using an explicitly set class path.

Specified by:
compile in interface JavaCompiler
Parameters:
srcFile - Path to the source file to compile.
destDir - 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

public boolean isAvailable()
Description copied from interface: JavaCompiler
Indicates whether this Java compiler implementation is available on the current system.

Specified by:
isAvailable in interface JavaCompiler


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