Class LinuxTargetConfiguration

    • Method Detail

      • compile

        public boolean compile()
                        throws java.io.IOException,
                               java.lang.InterruptedException
        Description copied from class: AbstractTargetConfiguration
        Compile sets the required command line arguments and runs native-image
        Specified by:
        compile in interface TargetConfiguration
        Overrides:
        compile in class AbstractTargetConfiguration
        Returns:
        true if the process ends successfully, false otherwise
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • link

        public boolean link()
                     throws java.io.IOException,
                            java.lang.InterruptedException
        Description copied from interface: TargetConfiguration
        Links a previously created objectfile with the required dependencies into a native executable or library
        Specified by:
        link in interface TargetConfiguration
        Overrides:
        link in class AbstractTargetConfiguration
        Returns:
        true if linking succeeded, false otherwise
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • install

        public boolean install()
                        throws java.io.IOException,
                               java.lang.InterruptedException
        Description copied from class: AbstractTargetConfiguration
        Installs the packaged application on the local system or on a device that is attached to the local system. By default, this method is no-op returning true.
        Specified by:
        install in interface TargetConfiguration
        Overrides:
        install in class AbstractTargetConfiguration
        Returns:
        true if installing succeeded or is a no-op, false if it failed.
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • runUntilEnd

        public boolean runUntilEnd()
                            throws java.io.IOException,
                                   java.lang.InterruptedException
        Description copied from class: AbstractTargetConfiguration
        Run the generated native image and returns true if the process ended successfully
        Specified by:
        runUntilEnd in interface TargetConfiguration
        Overrides:
        runUntilEnd in class AbstractTargetConfiguration
        Returns:
        true if the process ended successfully, false otherwise
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getLinkerLibraryPaths

        protected java.util.List<java.nio.file.Path> getLinkerLibraryPaths()
                                                                    throws java.io.IOException
        Description copied from class: AbstractTargetConfiguration
        Creates a list of Paths that will be added to the library search path for the linker. Targets are allowed to override this, e.g. in case they don't want the static JDK directory on the library path (see https://github.com/gluonhq/substrate/issues/879) Note: we should probably invert this logic: the static library path should not be used as linkLibraryPath unless explicitly asked by the target.
        Overrides:
        getLinkerLibraryPaths in class AbstractTargetConfiguration
        Returns:
        a list of Paths to add to the library search path
        Throws:
        java.io.IOException
      • getTargetSpecificCCompileFlags

        protected java.util.List<java.lang.String> getTargetSpecificCCompileFlags()