org.objectweb.speedo.generation.compiler
Class Compiler
java.lang.Object
|
+--org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
|
+--org.objectweb.speedo.generation.compiler.Compiler
- All Implemented Interfaces:
- GeneratorComponent
- public class Compiler
- extends AbstractGeneratorComponent
Compiles all generated .java
files.
This class is based on Ant that is a Java-based build tool (see http://jakarta.apache.org/ant for more information).
- Author:
- Y. Devaux
Field Summary |
protected org.apache.tools.ant.taskdefs.Javac |
compiler
Ant Task intended to java compilation |
static java.lang.String |
LOGGER_NAME
|
static char |
separator
System separator character (e.g '/' under Unix systems) |
Method Summary |
void |
init()
Initializes this Compiler. |
void |
process()
Tries to process the compilation internally. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER_NAME
public static final java.lang.String LOGGER_NAME
separator
public static final char separator
- System separator character (e.g '/' under Unix systems)
compiler
protected org.apache.tools.ant.taskdefs.Javac compiler
- Ant Task intended to java compilation
Compiler
public Compiler()
init
public void init()
- Initializes this Compiler.
- Initializes the Ant Task Javac so that it could compiles all generated classes.
- Sets the classpath, the source files, the destination directory and the other parameters.
- Overrides:
init
in class AbstractGeneratorComponent
process
public void process()
throws SpeedoException
- Tries to process the compilation internally.
- Overrides:
process
in class AbstractGeneratorComponent
- Throws:
SpeedoException
- if compilation fails