com.izforge.izpack.installer
Class CompileWorker.CompilationJob
java.lang.Object
com.izforge.izpack.installer.CompileWorker.CompilationJob
- Enclosing class:
- CompileWorker
private static class CompileWorker.CompilationJob
- extends java.lang.Object
a compilation job
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listener
private CompileHandler listener
name
private java.lang.String name
files
private java.util.ArrayList files
classpath
private java.util.ArrayList classpath
langpack
private LocaleDatabase langpack
MAX_CMDLINE_SIZE
private static final int MAX_CMDLINE_SIZE
- See Also:
- Constant Field Values
CompileWorker.CompilationJob
public CompileWorker.CompilationJob(CompileHandler listener,
LocaleDatabase langpack,
java.util.ArrayList files,
java.util.ArrayList classpath)
CompileWorker.CompilationJob
public CompileWorker.CompilationJob(CompileHandler listener,
LocaleDatabase langpack,
java.lang.String name,
java.util.ArrayList files,
java.util.ArrayList classpath)
getName
public java.lang.String getName()
getSize
public int getSize()
perform
public CompileResult perform(java.lang.String compiler,
java.util.ArrayList arguments)
checkCompiler
public CompileResult checkCompiler(java.lang.String compiler,
java.util.ArrayList arguments)
- Check whether the given compiler works.
This performs two steps:
- check whether we can successfully call "compiler -help"
- check whether we can successfully call "compiler -help arguments" (not all compilers
return an error here)
On failure, the method CompileHandler#errorCompile is called with a descriptive error
message.
- Parameters:
compiler
- the compiler to usearguments
- additional arguments to pass to the compiler
- Returns:
- false on error