org.apache.sling.commons.compiler
Interface JavaCompiler
- All Known Implementing Classes:
- EclipseJavaCompiler
public interface JavaCompiler
The JavaCompiler
provides platform independant Java
compilation support.
compile
CompilationResult compile(CompilationUnit[] units,
Options options)
- Compile the compilation units.
This method checks if the compilation is necessary by using
last modified check of the source to compile and the class
file (if available).
The compiler compiles all sources if at least one of the
class files is out dated!
- Parameters:
units
- The compilation units.options
- The compilation options - this object is optional
- Returns:
- The compilation result with more information.
- Since:
- 2.0
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.