Class GeneratedScriptBuilder

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static GeneratedScript command​(java.lang.String... command)
      Create a command
      java.lang.String[] getArgs()
      Return arguments to the script
      java.lang.String[] getCommand()
      Return the command to execute
      java.lang.String getFileExtension()  
      java.lang.String getScript()
      Return the script to execute
      static GeneratedScript script​(java.lang.String script, java.lang.String[] args)
      Create a script
      static GeneratedScript script​(java.lang.String script, java.lang.String[] args, java.lang.String fileExtension)
      Create a script
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getScript

        public java.lang.String getScript()
        Description copied from interface: GeneratedScript
        Return the script to execute
        Specified by:
        getScript in interface GeneratedScript
        Returns:
        the script
      • getArgs

        public java.lang.String[] getArgs()
        Description copied from interface: GeneratedScript
        Return arguments to the script
        Specified by:
        getArgs in interface GeneratedScript
        Returns:
        the args
      • getCommand

        public java.lang.String[] getCommand()
        Description copied from interface: GeneratedScript
        Return the command to execute
        Specified by:
        getCommand in interface GeneratedScript
        Returns:
        the command
      • script

        public static GeneratedScript script​(java.lang.String script,
                                             java.lang.String[] args)
        Create a script
        Parameters:
        script - the script text
        args - the arguments for the script
        Returns:
        the generated script
      • script

        public static GeneratedScript script​(java.lang.String script,
                                             java.lang.String[] args,
                                             java.lang.String fileExtension)
        Create a script
        Parameters:
        script - the script text
        args - the arguments for the script
        fileExtension - file extension
        Returns:
        the generated script
      • command

        public static GeneratedScript command​(java.lang.String... command)
        Create a command
        Parameters:
        command - the command and arguments
        Returns:
        the generated script