Class JavaCompilerComponent
- java.lang.Object
-
- com.zfabrik.impl.components.java.jdt.JavaCompilerComponent
-
- All Implemented Interfaces:
com.zfabrik.components.java.build.ICompiler
public class JavaCompilerComponent extends java.lang.Object implements com.zfabrik.components.java.build.ICompiler
-
-
Constructor Summary
Constructors Constructor Description JavaCompilerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compile(java.lang.String compName, java.io.File[] src, java.io.File dest, java.lang.ClassLoader cl)
A general purpose compiler api using a class loader as class path abstraction.void
init(com.zfabrik.components.java.build.ICompilerContext context)
Compiler initialization
-
-
-
Method Detail
-
init
public void init(com.zfabrik.components.java.build.ICompilerContext context)
Description copied from interface:com.zfabrik.components.java.build.ICompiler
Compiler initialization- Specified by:
init
in interfacecom.zfabrik.components.java.build.ICompiler
-
compile
public boolean compile(java.lang.String compName, java.io.File[] src, java.io.File dest, java.lang.ClassLoader cl)
Description copied from interface:com.zfabrik.components.java.build.ICompiler
A general purpose compiler api using a class loader as class path abstraction. Returns true if the compilation passed otherwise it returns false.- Specified by:
compile
in interfacecom.zfabrik.components.java.build.ICompiler
- Parameters:
compName
- the name of the componentsrc
- folder containing the source filesdest
- destination folder will contain compile resultscl
- class loader as class path abstraction- Returns:
- true, iff compilation succeeds
-
-