Package org.exoplatform.crowdin.utils
Class ShellScriptUtils
java.lang.Object
org.exoplatform.crowdin.utils.ShellScriptUtils
This Util help execute .sh files that store in .jar file. These .sh files is resource of .jar file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intexecShellscript(String pathname) Execute Shell script without Argumentstatic intexecShellscript(String pathname, String fileArgument) Execute Shell script with Argumentstatic StringmakeFileFromResource(String resname) Copy file from .jar resource to system file
-
Constructor Details
-
ShellScriptUtils
public ShellScriptUtils()
-
-
Method Details
-
makeFileFromResource
Copy file from .jar resource to system file- Parameters:
resname-- Returns:
- Throws:
IOException
-
execShellscript
Execute Shell script without Argument- Parameters:
pathname-- Returns:
- Throws:
IOException
-
execShellscript
Execute Shell script with Argument- Parameters:
pathname-fileArgument-- Returns:
- Throws:
IOException
-