Package ch.raffael.meldioc.processor
Class Debug
java.lang.Object
ch.raffael.meldioc.processor.Debug
public class Debug
extends java.lang.Object
Provides an entry point for debugging the processor, holds some constants
to turn debugging features on and of.
It invokes javac with our processor using the tools API. A certain file structure (prepared by the Gradle build) is expected:
- baseDir/classpath.list: a file containing the classpath, one entry per line.
- baseDir/sources.list: a file containing the Java source files to be compiled, one entry per line.
The class will use baseDir/classes as compile output directory and baseDir/gensrc as the output directory for generated sources.
The basePath must be given as first argument on the command line, slashes will be replaced by the platform-specific file separator.
-
Field Summary
Fields Modifier and Type Field Description static booleanDEVEL_MODE -
Constructor Summary
Constructors Constructor Description Debug() -
Method Summary
Modifier and Type Method Description static voidmain(java.lang.String[] args)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEVEL_MODE
public static final boolean DEVEL_MODE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Debug
public Debug()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-