Class RunShLoader


  • public class RunShLoader
    extends Object
    Load and export run-java.sh script
    • Constructor Detail

      • RunShLoader

        public RunShLoader()
    • Method Detail

      • getReadme

        public static String getReadme()
        Load and return README from classpath
        Returns:
        readme as string
      • getRunScript

        public static String getRunScript()
        Get the run script it self
        Returns:
        runscript as file
      • copyRunScript

        public static File copyRunScript​(File destination)
                                  throws IOException
        Copy the run scripts to a destination in the file system
        Parameters:
        destination - where to copy run script. Must be a directory.
        Returns:
        the file to the script
        Throws:
        IOException
      • addExtraFiles

        public static void addExtraFiles​(File targetDir)
                                  throws IOException
        Ducktype interface method for creating the startup script together with docker-maven-plugin
        Throws:
        IOException