Package io.fabric8.runsh
Class RunShLoader
- java.lang.Object
-
- io.fabric8.runsh.RunShLoader
-
public class RunShLoader extends Object
Load and export run-java.sh script
-
-
Constructor Summary
Constructors Constructor Description RunShLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddExtraFiles(File targetDir)Ducktype interface method for creating the startup script together with docker-maven-pluginstatic FilecopyRunScript(File destination)Copy the run scripts to a destination in the file systemstatic StringgetReadme()Load and return README from classpathstatic StringgetRunScript()Get the run script it selfstatic voidmain(String[] args)Copy over the run script to a given location If called with --run-java-help print out the README.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException, InterruptedException
Copy over the run script to a given location If called with --run-java-help print out the README.- Parameters:
args- args given to the script- Throws:
IOExceptionInterruptedException
-
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
-
-