Class ShellScriptUtils

java.lang.Object
org.exoplatform.crowdin.utils.ShellScriptUtils

public class ShellScriptUtils extends Object
This Util help execute .sh files that store in .jar file. These .sh files is resource of .jar file
  • Constructor Details

    • ShellScriptUtils

      public ShellScriptUtils()
  • Method Details

    • makeFileFromResource

      public static String makeFileFromResource(String resname) throws IOException
      Copy file from .jar resource to system file
      Parameters:
      resname -
      Returns:
      Throws:
      IOException
    • execShellscript

      public static int execShellscript(String pathname) throws IOException
      Execute Shell script without Argument
      Parameters:
      pathname -
      Returns:
      Throws:
      IOException
    • execShellscript

      public static int execShellscript(String pathname, String fileArgument) throws IOException
      Execute Shell script with Argument
      Parameters:
      pathname -
      fileArgument -
      Returns:
      Throws:
      IOException