summaryrefslogtreecommitdiffstats
path: root/idrop-lite
diff options
context:
space:
mode:
authorLISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2011-07-12 20:41:20 (GMT)
committer LISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2011-07-12 20:41:20 (GMT)
commit4538e32a22e08f51a8f6bb2394885ba38978c31c (patch)
tree2461eace831ce31f4c81c78b6200bccd6db080f6 /idrop-lite
parenta76555ca2ff61e67af005d3f54debcfed4aeba30 (diff)
downloadQCG-Data-4538e32a22e08f51a8f6bb2394885ba38978c31c.zip
QCG-Data-4538e32a22e08f51a8f6bb2394885ba38978c31c.tar.gz
QCG-Data-4538e32a22e08f51a8f6bb2394885ba38978c31c.tar.bz2
added correct code for put operation
Diffstat (limited to 'idrop-lite')
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSTreeTransferHandler.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSTreeTransferHandler.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSTreeTransferHandler.java
index 1e4d185..71a34a8 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSTreeTransferHandler.java
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSTreeTransferHandler.java
@@ -293,10 +293,14 @@ public class IRODSTreeTransferHandler extends TransferHandler {
String sourceResource = idropGui.getIrodsAccount().getDefaultStorageResource();
log.info("initiating put transfer");
try {
+ /*
idropGui.getiDropCore()
.getTransferManager()
.enqueueAPut(localSourceAbsolutePath, targetIrodsFileAbsolutePath, sourceResource,
idropGui.getIrodsAccount());
+ */
+ idropGui.getiDropCore().getTransferManager().putOperation(localSourceAbsolutePath,
+ targetIrodsFileAbsolutePath, sourceResource, idropGui, new TreeTransferControlBlock());
} catch (JargonException ex) {
java.util.logging.Logger.getLogger(LocalFileTree.class.getName()).log(
java.util.logging.Level.SEVERE, null, ex);
@@ -415,10 +419,14 @@ public class IRODSTreeTransferHandler extends TransferHandler {
for (File transferFile : sourceFiles) {
log.info("initiating put transfer for source file:{}", transferFile.getAbsolutePath());
try {
+ idropGui.getiDropCore().getTransferManager().putOperation(transferFile.getAbsolutePath(),
+ targetIrodsFileAbsolutePath, sourceResource, idropGui, new TreeTransferControlBlock());
+ /*
idropGui.getiDropCore()
.getTransferManager()
.enqueueAPut(transferFile.getAbsolutePath(), targetIrodsFileAbsolutePath,
sourceResource, idropGui.getIrodsAccount());
+ */
} catch (JargonException ex) {
java.util.logging.Logger.getLogger(LocalFileTree.class.getName()).log(
java.util.logging.Level.SEVERE, null, ex);