Package org.apache.ivy.plugins.resolver
Class SshResolver
- All Implemented Interfaces:
Validatable
,DependencyResolver
,HasLatestStrategy
Resolver for SSH resolver for ivy
-
Field Summary
Fields inherited from class org.apache.ivy.plugins.resolver.BasicResolver
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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"void
setExistCommand
(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"void
setFileSeparator
(String sep) sets the path separator used on the target system.void
setListCommand
(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.void
setPublishPermissions
(String permissions) A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions of the published files.Methods inherited from class org.apache.ivy.plugins.resolver.AbstractSshBasedResolver
setAllowedAgentUse, setHost, setKeyFile, setKeyFilePassword, setPassfile, setPort, setSettings, setSshConfig, setUser, setUserPassword
Methods inherited from class org.apache.ivy.plugins.resolver.RepositoryResolver
download, dumpSettings, exist, findResourceUsingPattern, findTokenValues, get, getDestination, getRepository, getResource, isAlwaysCheckExactRevision, listResources, listTokenValues, publish, put, putChecksum, putSignature, setAlwaysCheckExactRevision, setName, setRepository, setSettings, setSigner
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver
addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2CriteriaForResourceSearch, convertM2IdForResourceSearch, convertM2OrganizationForResourceSearch, convertM2ResourceSearchIdToNormal, convertM2TokenValuesForResourceSearch, findArtifactNames, findArtifactRef, findIvyFileRef, findIvyNames, findNames, findResource, findResourceUsingPatterns, getArtifactPatterns, getIvyPatterns, getModuleDescriptorExtension, isM2compatible, listTokenValues, setArtifactPatterns, setIvyPatterns, setM2compatible
Methods inherited from class org.apache.ivy.plugins.resolver.BasicResolver
acceptLatest, checkModuleDescriptorRevision, clearArtifactAttempts, clearIvyAttempts, doFindArtifactRef, download, exists, filterNames, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getDependency, getPublicationDate, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isEnvDependent, isForce, listModules, listOrganisations, listRevisions, listTokenValues, locate, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, setAllownomd, setCheckconsistency, setChecksums, setDescriptor, setEnvDependent, setForce, setWorkspaceName, shouldReturnResolvedModule, toString
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResolver
abortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, getTimeoutConstraint, hidePassword, isAfter, isValidate, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setNamespace, setRepositoryCacheManager, setTimeoutConstraint, setValidate, toSystem, toSystem, toSystem, toSystem, toSystem, toSystem, validate
-
Constructor Details
-
SshResolver
public SshResolver()
-
-
Method Details
-
setPublishPermissions
A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions of the published files.- Parameters:
permissions
- String
-
setFileSeparator
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
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
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
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
-
getTypeName
- Specified by:
getTypeName
in classAbstractSshBasedResolver
-