public class JschScpFileCopier extends BaseFileCopier implements FileCopier, Describable, DestinationFileCopier
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERVICE_PROVIDER_TYPE |
DEFAULT_UNIX_FILE_EXT, DEFAULT_WINDOWS_FILE_EXT, FILE_COPY_DESTINATION_DIR, FRAMEWORK_FILE_COPY_DESTINATION_DIR, PROJECT_FILE_COPY_DESTINATION_DIR| Constructor and Description |
|---|
JschScpFileCopier(Framework framework) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
copyFile(ExecutionContext context,
java.io.File scriptfile,
INodeEntry node)
Copy the contents of an input stream to the node
|
java.lang.String |
copyFile(ExecutionContext context,
java.io.File file,
INodeEntry node,
java.lang.String destination)
Copy the contents of an input stream to the node
|
java.lang.String |
copyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node)
Copy the contents of an input stream to the node
|
java.lang.String |
copyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node,
java.lang.String destination)
Copy the contents of an input stream to the node
|
java.lang.String |
copyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node)
Copy the contents of an input stream to the node
|
java.lang.String |
copyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node,
java.lang.String destination)
Copy the contents of an input stream to the node
|
Description |
getDescription() |
appendRemoteFileExtension, defaultRemoteFileExtensionForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, getRemoteDirForNode, getRemoteDirForNode, writeLocalFile, writeTempFilepublic static final java.lang.String SERVICE_PROVIDER_TYPE
public JschScpFileCopier(Framework framework)
public Description getDescription()
getDescription in interface Describablepublic java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node) throws FileCopierException
FileCopiercopyFileStream in interface FileCopiercontext - contextinput - the input streamnode - nodeFileCopierException - if an error occurspublic java.lang.String copyFile(ExecutionContext context, java.io.File scriptfile, INodeEntry node) throws FileCopierException
FileCopiercopyFile in interface FileCopiercontext - contextscriptfile - local file tocopynode - nodeFileCopierException - if an error occurspublic java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node) throws FileCopierException
FileCopiercopyScriptContent in interface FileCopiercontext - contextscript - file content stringnode - nodeFileCopierException - if an error occurspublic java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopiercopyFileStream in interface DestinationFileCopiercontext - contextinput - the input streamnode - nodedestination - the full path destination for the fileFileCopierException - if an error occurspublic java.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopiercopyFile in interface DestinationFileCopiercontext - contextfile - local file tocopynode - nodedestination - the full path destination for the fileFileCopierException - if an error occurspublic java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destination) throws FileCopierException
DestinationFileCopiercopyScriptContent in interface DestinationFileCopiercontext - contextscript - file content stringnode - nodedestination - the full path destination for the fileFileCopierException - if an error occurs