Interface TargetConfiguration

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean compile()
      Compiles the classes to objectcode for this TargetConfiguration.
      boolean createSharedLib()
      Creates a native image that can be used as shared library
      boolean createStaticLib()
      Creates a static library
      boolean install()
      Installs the packaged application on the local system or on a device that is attached to the local system.
      boolean link()
      Links a previously created objectfile with the required dependencies into a native executable or library
      boolean packageApp()
      Creates a package of the application (including at least executable and other possible files) in a given format.
      java.lang.String run()
      Runs the application, and if successful, returns the last line printed out by the process
      boolean runUntilEnd()
      Runs the application, and if successful, returns true
    • Method Detail

      • compile

        boolean compile()
                 throws java.lang.Exception
        Compiles 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.InterruptedException
        Links a previously created objectfile with the required dependencies into a native executable or library
        Returns:
        true if linking succeeded, false otherwise
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • packageApp

        boolean packageApp()
                    throws java.io.IOException,
                           java.lang.InterruptedException
        Creates 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.IOException
        java.lang.InterruptedException
      • install

        boolean install()
                 throws java.io.IOException,
                        java.lang.InterruptedException
        Installs 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 after packageApp() has successfully produced a valid package.
        Returns:
        true if installing succeeded or is a no-op, false if it failed.
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • run

        java.lang.String run()
                      throws java.io.IOException,
                             java.lang.InterruptedException
        Runs 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.IOException
        java.lang.InterruptedException
      • runUntilEnd

        boolean runUntilEnd()
                     throws java.io.IOException,
                            java.lang.InterruptedException
        Runs the application, and if successful, returns true
        Returns:
        true if the process succeeded or false if the process failed
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • createSharedLib

        boolean createSharedLib()
                         throws java.io.IOException,
                                java.lang.InterruptedException
        Creates 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.IOException
        java.lang.InterruptedException
      • createStaticLib

        boolean createStaticLib()
                         throws java.io.IOException,
                                java.lang.InterruptedException
        Creates a static library
        Returns:
        true if the process succeeded or false if the process failed
        Throws:
        java.io.IOException
        java.lang.InterruptedException