diff --git a/build.gradle b/build.gradle index 696ab0d..4b12ae1 100644 --- a/build.gradle +++ b/build.gradle @@ -51,5 +51,5 @@ publishing { } group 'mil.army.usace.hec' - version '0.0.9' + version '0.0.10' } diff --git a/src/main/java/usace/wat/plugin/Utilities.java b/src/main/java/usace/wat/plugin/Utilities.java index a53e6aa..fd6b4f1 100644 --- a/src/main/java/usace/wat/plugin/Utilities.java +++ b/src/main/java/usace/wat/plugin/Utilities.java @@ -336,7 +336,14 @@ public static Boolean CopyPayloadInputsLocally(ModelPayload payload, String loca byte[] body = DownloadObject(input.getResourceInfo()); InputStream stream = new ByteArrayInputStream(body); try { - writeInputStreamToDisk(stream, localroot + input.getResourceInfo().getPath()); + String path = localroot + input.getFileName(); + Message message = Message.BuildMessage() + .withMessage("writing locally: " + e.getMessage()) + .withErrorLevel(Level.ERROR) + .fromSender("Plugin Services") + .build(); + Log(message); + writeInputStreamToDisk(stream, path);//input.getResourceInfo().getPath()); } catch (IOException e) { // TODO Auto-generated catch block //log an error message.