-
- All Known Implementing Classes:
AbstractTargetConfiguration,AndroidTargetConfiguration,IosTargetConfiguration,LinuxTargetConfiguration,MacOSTargetConfiguration,WebTargetConfiguration,WindowsTargetConfiguration
public interface TargetConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancompile()Compiles the classes to objectcode for this TargetConfiguration.booleancreateSharedLib()Creates a native image that can be used as shared librarybooleancreateStaticLib()Creates a static librarybooleaninstall()Installs the packaged application on the local system or on a device that is attached to the local system.booleanlink()Links a previously created objectfile with the required dependencies into a native executable or librarybooleanpackageApp()Creates a package of the application (including at least executable and other possible files) in a given format.java.lang.Stringrun()Runs the application, and if successful, returns the last line printed out by the processbooleanrunUntilEnd()Runs the application, and if successful, returns true
-
-
-
Method Detail
-
compile
boolean compile() throws java.lang.ExceptionCompiles the classes to objectcode for this TargetConfiguration.- Returns:
- true if compilation succeeded, false if it failed.
- Throws:
java.lang.Exception
-
link
boolean link() throws java.io.IOException, java.lang.InterruptedExceptionLinks a previously created objectfile with the required dependencies into a native executable or library- Returns:
- true if linking succeeded, false otherwise
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
packageApp
boolean packageApp() throws java.io.IOException, java.lang.InterruptedExceptionCreates a package of the application (including at least executable and other possible files) in a given format. This operation has to be called only after link has successfully produced a valid application- Returns:
- true if packaging succeeded or is a no-op, false if it failed.
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
install
boolean install() throws java.io.IOException, java.lang.InterruptedExceptionInstalls the packaged application on the local system or on a device that is attached to the local system. This operation has to be called only afterpackageApp()has successfully produced a valid package.- Returns:
- true if installing succeeded or is a no-op, false if it failed.
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
run
java.lang.String run() throws java.io.IOException, java.lang.InterruptedExceptionRuns the application, and if successful, returns the last line printed out by the process- Returns:
- A string (it can be empty) or null if the process failed
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
runUntilEnd
boolean runUntilEnd() throws java.io.IOException, java.lang.InterruptedExceptionRuns the application, and if successful, returns true- Returns:
- true if the process succeeded or false if the process failed
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
createSharedLib
boolean createSharedLib() throws java.io.IOException, java.lang.InterruptedExceptionCreates a native image that can be used as shared library- Returns:
- true if the process succeeded or false if the process failed
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
createStaticLib
boolean createStaticLib() throws java.io.IOException, java.lang.InterruptedExceptionCreates a static library- Returns:
- true if the process succeeded or false if the process failed
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-