Class SshResolver

    • Constructor Detail

      • SshResolver

        public SshResolver()
    • Method Detail

      • setPublishPermissions

        public void setPublishPermissions​(java.lang.String permissions)
        A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions of the published files.
        Parameters:
        permissions - String
      • setFileSeparator

        public void setFileSeparator​(java.lang.String sep)
        sets the path separator used on the target system. Not sure if this is used or if '/' is used on all implementation. default is to use '/'
        Parameters:
        sep - file separator to use on the target system
      • setListCommand

        public void setListCommand​(java.lang.String cmd)
        set the command to get a directory listing the command has to be a shell command working on the target system and has to produce a listing of filenames, with each filename on a new line the term %arg can be used in the command to substitute the path to be listed (e.g. "ls -1 %arg | grep -v CVS" to get a listing without CVS directory) if %arg is not part of the command, the path will be appended to the command default is: "ls -1"
        Parameters:
        cmd - String
      • setExistCommand

        public void setExistCommand​(java.lang.String cmd)
        set the command to check for existence of a file the command has to be a shell command working on the target system and has to create an exit status of 0 for an existent file and <> 0 for a non existing file given as argument the term %arg can be used in the command to substitute the path to be listed if %arg is not part of the command, the path will be appended to the command default is: "ls"
        Parameters:
        cmd - String
      • setCreateDirCommand

        public void setCreateDirCommand​(java.lang.String cmd)
        set the command to create a directory on the target system the command has to be a shell command working on the target system and has to create a directory with the given argument the term %arg can be used in the command to substitute the path to be listed if %arg is not part of the command, the path will be appended to the command default is: "mkdir"
        Parameters:
        cmd - String