Java Doc for Scp.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » ssh » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.taskdefs.optional.ssh 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.taskdefs.optional.ssh.SSHBase
   org.apache.tools.ant.taskdefs.optional.ssh.Scp

Scp
public class Scp extends SSHBase (Code)
Ant task for sending files to remote machine over ssh/scp.
since:
   Ant 1.6




Method Summary
public  voidaddFileset(FileSet set)
     Adds a FileSet tranfer to remote host.
public  voidexecute()
     Execute this task.
public  voidinit()
     Initialize this task.
public  voidsetFile(String aFromUri)
     Sets the file to be transferred.
public  voidsetLocalFile(String aFromUri)
     Similiar to Scp.setFile setFile but explicitly states that the file is a local file.
public  voidsetLocalTodir(String aToUri)
     Similiar to Scp.setTodir setTodir but explicitly states that the directory is a local.
public  voidsetLocalTofile(String aToUri)
     Changes the file name to the given name while receiving it, only useful if receiving a single file.
public  voidsetRemoteFile(String aFromUri)
     Similiar to Scp.setFile setFile but explicitly states that the file is a remote file.
public  voidsetRemoteTodir(String aToUri)
     Similiar to Scp.setTodir setTodir but explicitly states that the directory is a remote.
public  voidsetRemoteTofile(String aToUri)
     Changes the file name to the given name while sending it, only useful if sending a single file.
public  voidsetSftp(boolean yesOrNo)
     Setting this to true to use sftp protocol.
public  voidsetTodir(String aToUri)
     Sets the location where files will be transferred to.



Method Detail
addFileset
public void addFileset(FileSet set)(Code)
Adds a FileSet tranfer to remote host. NOTE: Either addFileSet() or setFile() are required. But, not both.
Parameters:
  set - FileSet to send to remote host.



execute
public void execute() throws BuildException(Code)
Execute this task.
throws:
  BuildException - on error



init
public void init() throws BuildException(Code)
Initialize this task.
throws:
  BuildException - on error



setFile
public void setFile(String aFromUri)(Code)
Sets the file to be transferred. This can either be a remote file or a local file. Remote files take the form:
user:password@host:/directory/path/file.example
Files to transfer can also include a wildcard to include all files in a remote directory. For example:
user:password@host:/directory/path/*

Parameters:
  aFromUri - a string representing the file to transfer.



setLocalFile
public void setLocalFile(String aFromUri)(Code)
Similiar to Scp.setFile setFile but explicitly states that the file is a local file. This is the only way to specify a local file with a @ character.
Parameters:
  aFromUri - a string representing the source of the copy.
since:
   Ant 1.6.2



setLocalTodir
public void setLocalTodir(String aToUri)(Code)
Similiar to Scp.setTodir setTodir but explicitly states that the directory is a local. This is the only way to specify a local directory with a @ character.
Parameters:
  aToUri - a string representing the target of the copy.
since:
   Ant 1.6.2



setLocalTofile
public void setLocalTofile(String aToUri)(Code)
Changes the file name to the given name while receiving it, only useful if receiving a single file.
Parameters:
  aToUri - a string representing the target of the copy.
since:
   Ant 1.6.2



setRemoteFile
public void setRemoteFile(String aFromUri)(Code)
Similiar to Scp.setFile setFile but explicitly states that the file is a remote file.
Parameters:
  aFromUri - a string representing the source of the copy.
since:
   Ant 1.6.2



setRemoteTodir
public void setRemoteTodir(String aToUri)(Code)
Similiar to Scp.setTodir setTodir but explicitly states that the directory is a remote.
Parameters:
  aToUri - a string representing the target of the copy.
since:
   Ant 1.6.2



setRemoteTofile
public void setRemoteTofile(String aToUri)(Code)
Changes the file name to the given name while sending it, only useful if sending a single file.
Parameters:
  aToUri - a string representing the target of the copy.
since:
   Ant 1.6.2



setSftp
public void setSftp(boolean yesOrNo)(Code)
Setting this to true to use sftp protocol.
Parameters:
  yesOrNo - if true sftp protocol will be used.



setTodir
public void setTodir(String aToUri)(Code)
Sets the location where files will be transferred to. This can either be a remote directory or a local directory. Remote directories take the form of:
user:password@host:/directory/path/
This parameter is required.
Parameters:
  aToUri - a string representing the target of the copy.



Methods inherited from org.apache.tools.ant.taskdefs.optional.ssh.SSHBase
public boolean getFailonerror()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
protected SSHUserInfo getUserInfo()(Code)(Java Doc)
public boolean getVerbose()(Code)(Java Doc)
public void init() throws BuildException(Code)(Java Doc)
protected Session openSession() throws JSchException(Code)(Java Doc)
public void setFailonerror(boolean failure)(Code)(Java Doc)
public void setHost(String host)(Code)(Java Doc)
public void setKeyfile(String keyfile)(Code)(Java Doc)
public void setKnownhosts(String knownHosts)(Code)(Java Doc)
public void setPassphrase(String passphrase)(Code)(Java Doc)
public void setPassword(String password)(Code)(Java Doc)
public void setPort(int port)(Code)(Java Doc)
public void setTrust(boolean yesOrNo)(Code)(Java Doc)
public void setUsername(String username)(Code)(Java Doc)
public void setVerbose(boolean verbose)(Code)(Java Doc)

w_ww_.__j___a__va___2__s__.___c_o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.