diff --git a/src/main/java/org/sead/uploader/dataverse/DVUploader.java b/src/main/java/org/sead/uploader/dataverse/DVUploader.java index c4c9789..92578ec 100644 --- a/src/main/java/org/sead/uploader/dataverse/DVUploader.java +++ b/src/main/java/org/sead/uploader/dataverse/DVUploader.java @@ -517,7 +517,7 @@ protected void postProcessChildren(Resource dir) { MultipartEntityBuilder meb = MultipartEntityBuilder.create(); for (Resource file : dir.listResources()) { if (!file.isDirectory()) { - println("Adding " + file.getName() + " to list: " + file.getMetadata().toString(2)); + //println("Adding " + file.getName() + " to list: " + file.getMetadata().toString(2)); jsonData.put(file.getMetadata()); } @@ -534,7 +534,7 @@ protected void postProcessChildren(Resource dir) { HttpEntity postEntity = postResponse.getEntity(); if (postEntity != null) { postRes = EntityUtils.toString(postEntity); - println("Raw response: " +postRes); + //println("Raw response: " +postRes); } if (postStatus == 200) { @@ -932,7 +932,7 @@ private String multipartDirectFileUpload(Resource file, String path, int retries jsonResponse = EntityUtils.toString(resEntity); } if (status == 200) { - println(jsonResponse); + //println(jsonResponse); JSONObject uploadResponse = (new JSONObject(jsonResponse)).getJSONObject("data"); //Along with the parts, which should be listed numerically, we get convenience URLs to call on Dataverse to abort or complete the multipart upload //backwards compat in testing diff --git a/src/main/java/org/sead/uploader/util/FileResource.java b/src/main/java/org/sead/uploader/util/FileResource.java index 6bea872..ca2f2da 100644 --- a/src/main/java/org/sead/uploader/util/FileResource.java +++ b/src/main/java/org/sead/uploader/util/FileResource.java @@ -171,7 +171,7 @@ public JSONObject getMetadata() { @Override public void setMetadata(JSONObject jo) { - System.out.println("Storing " + jo.toString(2) ); + //System.out.println("Storing " + jo.toString(2) ); metadata=jo; }