Skip to content

Commit

Permalink
attempting to preserve relative links
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryGeorgist committed Sep 14, 2022
1 parent 457cd68 commit 3262c3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ publishing {
}

group 'mil.army.usace.hec'
version '0.0.9'
version '0.0.10'
}
9 changes: 8 additions & 1 deletion src/main/java/usace/wat/plugin/Utilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3262c3b

Please # to comment.