CloneSet25


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
77210.985class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17769
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
27749
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessageBySftp.java
Next
Last
Clone Instance
1
Line Count
77
Source Line
69
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java

/**
 * Constructor for a local file to remote.
 * @param verbose if true do verbose logging
 * @param session the scp session to use
 * @param aLocalFile the local file
 * @param aRemotePath the remote path
 * @since Ant 1.6.2
 */
public ScpToMessage(boolean verbose, Session session, File aLocalFile, String aRemotePath) {
  this(verbose, session, aRemotePath);
  this.localFile = aLocalFile;
}

/**
 * Constructor for a local directories to remote.
 * @param verbose if true do verbose logging
 * @param session the scp session to use
 * @param aDirectoryList a list of directories
 * @param aRemotePath the remote path
 * @since Ant 1.6.2
 */
public ScpToMessage(boolean verbose, Session session, List aDirectoryList, String aRemotePath) {
  this(verbose, session, aRemotePath);
  this.directoryList = aDirectoryList;
}

/**
 * Constructor for ScpToMessage.
 * @param verbose if true do verbose logging
 * @param session the scp session to use
 * @param aRemotePath the remote path
 * @since Ant 1.6.2
 */
private ScpToMessage(boolean verbose, Session session, String aRemotePath) {
  super(verbose, session);
  this.remotePath = aRemotePath;
}

/**
 * Constructor for ScpToMessage.
 * @param session the scp session to use
 * @param aLocalFile the local file
 * @param aRemotePath the remote path
 */
public ScpToMessage(Session session, File aLocalFile, String aRemotePath) {
  this(false, session, aLocalFile, aRemotePath);
}

/**
 * Constructor for ScpToMessage.
 * @param session the scp session to use
 * @param aDirectoryList a list of directories
 * @param aRemotePath the remote path
 */
public ScpToMessage(Session session, List aDirectoryList, String aRemotePath) {
  this(false, session, aDirectoryList, aRemotePath);
}

/**
 * Carry out the transfer.
 * @throws IOException on i/o errors
 * @throws JSchException on errors detected by scp
 */
public void execute() throws IOException, JSchException {
  if (directoryList != null) {
    doMultipleTransfer();
  }
  if (localFile != null) {
    doSingleTransfer();
  }
  log("done.\n");
}


First
Previous
Clone Instance
2
Line Count
77
Source Line
49
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessageBySftp.java

/**
 * Constructor for a local file to remote.
 * @param verbose if true do verbose logging
 * @param session the scp session to use
 * @param aLocalFile the local file
 * @param aRemotePath the remote path
 * @since Ant 1.7
 */
public ScpToMessageBySftp(boolean verbose, Session session, File aLocalFile, String aRemotePath) {
  this(verbose, session, aRemotePath);
  this.localFile = aLocalFile;
}

/**
 * Constructor for a local directories to remote.
 * @param verbose if true do verbose logging
 * @param session the scp session to use
 * @param aDirectoryList a list of directories
 * @param aRemotePath the remote path
 * @since Ant 1.7
 */
public ScpToMessageBySftp(boolean verbose, Session session, List aDirectoryList, String aRemotePath) {
  this(verbose, session, aRemotePath);
  this.directoryList = aDirectoryList;
}

/**
 * Constructor for ScpToMessage.
 * @param verbose if true do verbose logging
 * @param session the scp session to use
 * @param aRemotePath the remote path
 * @since Ant 1.6.2
 */
private ScpToMessageBySftp(boolean verbose, Session session, String aRemotePath) {
  super(verbose, session);
  this.remotePath = aRemotePath;
}

/**
 * Constructor for ScpToMessage.
 * @param session the scp session to use
 * @param aLocalFile the local file
 * @param aRemotePath the remote path
 */
public ScpToMessageBySftp(Session session, File aLocalFile, String aRemotePath) {
  this(false, session, aLocalFile, aRemotePath);
}

/**
 * Constructor for ScpToMessage.
 * @param session the scp session to use
 * @param aDirectoryList a list of directories
 * @param aRemotePath the remote path
 */
public ScpToMessageBySftp(Session session, List aDirectoryList, String aRemotePath) {
  this(false, session, aDirectoryList, aRemotePath);
}

/**
 * Carry out the transfer.
 * @throws IOException on i/o errors
 * @throws JSchException on errors detected by scp
 */
public void execute() throws IOException, JSchException {
  if (directoryList != null) {
    doMultipleTransfer();
  }
  if (localFile != null) {
    doSingleTransfer();
  }
  log("done.\n");
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Constructor for a local file to remote.
     * @param verbose if true do verbose logging
     * @param session the scp session to use
     * @param aLocalFile the local file
     * @param aRemotePath the remote path
     * @since Ant 1.6.2
     */
/**
     * Constructor for a local file to remote.
     * @param verbose if true do verbose logging
     * @param session the scp session to use
     * @param aLocalFile the local file
     * @param aRemotePath the remote path
     * @since Ant 1.7
     */
public [[#variablef750640]](boolean verbose, Session session, File aLocalFile, String aRemotePath) {
  this(verbose, session, aRemotePath);
  this.localFile = aLocalFile;
}

/**
     * Constructor for a local directories to remote.
     * @param verbose if true do verbose logging
     * @param session the scp session to use
     * @param aDirectoryList a list of directories
     * @param aRemotePath the remote path
     * @since Ant 1.6.2
     */
/**
     * Constructor for a local directories to remote.
     * @param verbose if true do verbose logging
     * @param session the scp session to use
     * @param aDirectoryList a list of directories
     * @param aRemotePath the remote path
     * @since Ant 1.7
     */
public [[#variablef750640]](boolean verbose, Session session, List aDirectoryList, String aRemotePath) {
  this(verbose, session, aRemotePath);
  this.directoryList = aDirectoryList;
}

/**
     * Constructor for ScpToMessage.
     * @param verbose if true do verbose logging
     * @param session the scp session to use
     * @param aRemotePath the remote path
     * @since Ant 1.6.2
     */
private [[#variablef750640]](boolean verbose, Session session, String aRemotePath) {
  super(verbose, session);
  this.remotePath = aRemotePath;
}

/**
     * Constructor for ScpToMessage.
     * @param session the scp session to use
     * @param aLocalFile the local file
     * @param aRemotePath the remote path
     */
public [[#variablef750640]](Session session, File aLocalFile, String aRemotePath) {
  this(false, session, aLocalFile, aRemotePath);
}

/**
     * Constructor for ScpToMessage.
     * @param session the scp session to use
     * @param aDirectoryList a list of directories
     * @param aRemotePath the remote path
     */
public [[#variablef750640]](Session session, List aDirectoryList, String aRemotePath) {
  this(false, session, aDirectoryList, aRemotePath);
}

/**
     * Carry out the transfer.
     * @throws IOException on i/o errors
     * @throws JSchException on errors detected by scp
     */
public void execute() throws IOException, JSchException {
  if (directoryList != null) {
    doMultipleTransfer();
  }
  if (localFile != null) {
    doSingleTransfer();
  }
  log("done.\n");
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#f750640]]
ScpToMessage 
12[[#f750640]]
ScpToMessageBySftp