com.izforge.izpack.panels.compile
Class CompileWorker

java.lang.Object
  extended by com.izforge.izpack.panels.compile.CompileWorker
All Implemented Interfaces:
Runnable

public class CompileWorker
extends Object
implements Runnable

This class does alle the work for compiling sources.

It responsible for

Author:
Tino Schwarze

Constructor Summary
CompileWorker(InstallData installData, CompileHandler handler, VariableSubstitutor variableSubstitutor, Resources resources, PlatformModelMatcher matcher)
          The constructor.
 
Method Summary
 ArrayList<String> getAvailableArguments()
          Return list of compiler arguments to choose from.
 ArrayList<String> getAvailableCompilers()
          Return list of compilers to choose from.
 String getCompiler()
          Get the compiler used.
 String getCompilerArguments()
          Get the compiler arguments used.
 CompileResult getResult()
          Get the result of the compilation.
 void run()
          This is called when the compilation thread is activated.
 void setCompiler(String compiler)
          Set the compiler to use.
 void setCompilerArguments(String arguments)
          Set the compiler arguments to use.
 void startThread()
          Start the compilation in a separate thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompileWorker

public CompileWorker(InstallData installData,
                     CompileHandler handler,
                     VariableSubstitutor variableSubstitutor,
                     Resources resources,
                     PlatformModelMatcher matcher)
              throws IOException
The constructor.

Parameters:
installData - the installation data
handler - the handler to notify of progress
variableSubstitutor - the variable substituter
resources - the resources
matcher - The platform-model matcher
Throws:
IOException - for any I/O error
Method Detail

getAvailableCompilers

public ArrayList<String> getAvailableCompilers()
Return list of compilers to choose from.

Returns:
ArrayList of String

setCompiler

public void setCompiler(String compiler)
Set the compiler to use.

The compiler is checked before compilation starts.

Parameters:
compiler - compiler to use (not checked)

getCompiler

public String getCompiler()
Get the compiler used.

Returns:
the compiler.

getAvailableArguments

public ArrayList<String> getAvailableArguments()
Return list of compiler arguments to choose from.

Returns:
ArrayList of String

setCompilerArguments

public void setCompilerArguments(String arguments)
Set the compiler arguments to use.

Parameters:
arguments - The argument to use.

getCompilerArguments

public String getCompilerArguments()
Get the compiler arguments used.

Returns:
The arguments used for compiling.

getResult

public CompileResult getResult()
Get the result of the compilation.

Returns:
The result.

startThread

public void startThread()
Start the compilation in a separate thread.


run

public void run()
This is called when the compilation thread is activated.

Can also be called directly if asynchronous processing is not desired.

Specified by:
run in interface Runnable


Copyright © 2018. All rights reserved.