public void setLocalTodir(String aToUri) {
setToUri(aToUri);
this.isToRemote = false;
}
/**
* Similiar to {@link #setTodir setTodir} but explicitly states
* that the directory is a remote.
* @param aToUri a string representing the target of the copy.
* @since Ant 1.6.2
*/
public void setRemoteTodir(String aToUri) {
setToUri(aToUri);
this.isToRemote = true
public void setLocalTofile(String aToUri) {
setToUri(aToUri);
this.isToRemote = false;
}
/**
* Changes the file name to the given name while sending it,
* only useful if sending a single file.
* @param aToUri a string representing the target of the copy.
* @since Ant 1.6.2
*/
public void setRemoteTofile(String aToUri) {
setToUri(aToUri);
this.isToRemote = true
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void setLocalTodir(String aToUri) {↵ | | 1 | public void setLocalTofile(String aToUri) {↵
|
2 | setToUri(aToUri);↵ | | 2 | setToUri(aToUri);↵
|
3 | this.isToRemote = false;↵ | | 3 | this.isToRemote = false;↵
|
4 | }↵ | | 4 | }↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Similiar to {@link #setTodir setTodir} but explicitly states↵ | | 6 | * ↵
|
7 | * that the directory is a remot↵ | | 7 | Changes the file name to the given name while sending it,↵
|
8 | e.↵ | | 8 | * only useful if sending a single file.↵
|
9 | * @param aToUri a string representing the target of the copy.↵ | | 9 | * @param aToUri a string representing the target of the copy.↵
|
10 | * @since Ant 1.6.2↵ | | 10 | * @since Ant 1.6.2↵
|
11 | */↵ | | 11 | */↵
|
12 | public void setRemoteTodir(String aToUri) {↵ | | 12 | public void setRemoteTofile(String aToUri) {↵
|
13 | setToUri(aToUri);↵ | | 13 | setToUri(aToUri);↵
|
14 | this.isToRemote = true | | 14 | this.isToRemote = true
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |