|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.izforge.izpack.installer.CompileWorker.CompilationJob
private static class CompileWorker.CompilationJob
a compilation job
| Field Summary | |
|---|---|
private java.util.ArrayList |
classpath
|
private java.util.ArrayList<java.io.File> |
files
|
private AutomatedInstallData |
idata
|
private LocaleDatabase |
langpack
|
private CompileHandler |
listener
|
private static int |
MAX_CMDLINE_SIZE
|
private java.lang.String |
name
|
| Constructor Summary | |
|---|---|
CompileWorker.CompilationJob(CompileHandler listener,
AutomatedInstallData idata,
java.lang.String name,
java.util.ArrayList<java.io.File> files,
java.util.ArrayList classpath)
Construct new compilation job. |
|
| Method Summary | |
|---|---|
CompileResult |
checkCompiler(java.lang.String compiler,
java.util.ArrayList<java.lang.String> arguments)
Check whether the given compiler works. |
java.lang.String |
getName()
Get the name of the job. |
int |
getSize()
Get the number of files in this job. |
CompileResult |
perform(java.lang.String compiler,
java.util.ArrayList<java.lang.String> arguments)
Perform this job - start compilation. |
private int |
runCompiler(FileExecutor executor,
java.lang.String[] output,
java.util.List<java.lang.String> cmdline)
Internal helper method. |
private int |
runEclipseCompiler(java.lang.String[] output,
java.util.List<java.lang.String> cmdline)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CompileHandler listener
private java.lang.String name
private java.util.ArrayList<java.io.File> files
private java.util.ArrayList classpath
private LocaleDatabase langpack
private AutomatedInstallData idata
private static final int MAX_CMDLINE_SIZE
| Constructor Detail |
|---|
public CompileWorker.CompilationJob(CompileHandler listener,
AutomatedInstallData idata,
java.lang.String name,
java.util.ArrayList<java.io.File> files,
java.util.ArrayList classpath)
listener - The listener to report progress to.idata - The installation data.name - The name of the job.files - The files to compile.classpath - The class path to use.| Method Detail |
|---|
public java.lang.String getName()
public int getSize()
public CompileResult perform(java.lang.String compiler,
java.util.ArrayList<java.lang.String> arguments)
compiler - The compiler to use.arguments - The compiler arguments to use.
private int runCompiler(FileExecutor executor,
java.lang.String[] output,
java.util.List<java.lang.String> cmdline)
executor - The executor, only used when using external compiler.output - The output from the compiler ([0] = stdout, [1] = stderr)
private int runEclipseCompiler(java.lang.String[] output,
java.util.List<java.lang.String> cmdline)
public CompileResult checkCompiler(java.lang.String compiler,
java.util.ArrayList<java.lang.String> arguments)
compiler - the compiler to usearguments - additional arguments to pass to the compiler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||