org.enhydra.xml.xmlc.codegen
Class JavaCompile
java.lang.Object
|
+--org.enhydra.xml.xmlc.misc.ProcessRunner
|
+--org.enhydra.xml.xmlc.codegen.JavaCompile
- public class JavaCompile
- extends ProcessRunner
Run a Java compiler as a child process.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaCompile
public JavaCompile(ErrorReporter errorReporter,
String javac)
- Construct a javac runner, specifying a java compiler.
setClassOutputRoot
public void setClassOutputRoot(String root)
- Set the class output root.
addArg
public void addArg(String arg)
- Add an argument.
addArg
public void addArg(String arg,
String value)
- Add an argument and associate value.
addArgs
public void addArgs(String[] args)
- Add an array of arguments.
addSrc
public void addSrc(String srcFile)
- Add a source file to compile.
compile
public void compile(PrintWriter verboseOut)
throws XMLCException
- Run the javac process. Stdout/stderr are written to the standard
descriptors.
- Parameters:
metaData
- Document metadata.errorReporter
- Write errors to this object.verboseOut
- Write verbose message to this file if not null.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.