|
Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.cantaloop.cgimlet.lang.java.JCompiler
Constructor Summary | |
JCompiler()
|
Method Summary | |
void |
addToClasspath(java.io.File f)
Addes the given file to the classpath. used for this compilation process. |
void |
clearClasspath()
Removes all entries of the classpath. |
void |
compile(java.io.File inputFile)
Compiles the given file. |
void |
compile(java.util.List inputFiles)
Compiles the given list of files. |
java.util.List |
getClasspath()
Returns a (read-only) list with all entries of the classpath. |
org.cantaloop.tools.logging.Logger |
getLogger()
Returns the logger. |
java.io.File |
getTargetDir()
Returns the target directory of this compiler. |
void |
setForceToolsJar(boolean b)
Specify if the compiler should try to invoke javac
in an external process if tools.jar could not be
found. |
void |
setLogger(org.cantaloop.tools.logging.Logger l)
Sets the logger that should be used to log the messages of the compiler |
void |
setTargetDir(java.io.File targetDir)
Sets the directory under which the compiled files should be placed. |
void |
setUseToolsJar(boolean b)
Specifies if the compiler should try to use the javac compiler directly (that is, without starting another virtual machine). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JCompiler()
Method Detail |
public void setLogger(org.cantaloop.tools.logging.Logger l)
CodeCompiler
setLogger
in interface CodeCompiler
public org.cantaloop.tools.logging.Logger getLogger()
CodeCompiler
getLogger
in interface CodeCompiler
public void setTargetDir(java.io.File targetDir)
CodeCompiler
setTargetDir
in interface CodeCompiler
public java.io.File getTargetDir()
CodeCompiler
getTargetDir
in interface CodeCompiler
public void addToClasspath(java.io.File f)
public void clearClasspath()
public java.util.List getClasspath()
public void setUseToolsJar(boolean b)
tools.jar
cannot be found,
javac
is invoked in a separate process. You should
enable this option as it results in a faster compilation.
The default value of this option is true
.
Note: This method is mainly for testing purpose.
b
- true
if the compiler should try to use
tools.jar
first.setForceToolsJar(boolean)
public void setForceToolsJar(boolean b)
javac
in an external process if tools.jar
could not be
found. This option is set to false
by default.
Note: This method is mainly for testing purpose.
b
- true
if the compiler should not try to invoke
javac
in a separate process.setUseToolsJar(boolean)
public void compile(java.io.File inputFile)
CodeCompiler
compile
in interface CodeCompiler
public void compile(java.util.List inputFiles)
CodeCompiler
compile
in interface CodeCompiler
org.cantaloop.cgimlet.lang.CodeCompiler
l
- a List
of File
s.
|
Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |