From 3172c23f79cc2fba37af31d55679060551887cd6 Mon Sep 17 00:00:00 2001 From: Reguel Wermelinger Date: Tue, 19 Dec 2023 15:46:09 +0100 Subject: [PATCH] XIVY-12549 adapt: new IRequest api --- .../com/axonivy/connectivity/rest/client/file/FileUpload.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java b/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java index 41b0734ba..599b65a7d 100644 --- a/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java +++ b/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java @@ -22,6 +22,7 @@ import org.glassfish.jersey.media.multipart.file.FileDataBodyPart; import ch.ivyteam.ivy.environment.Ivy; +import ch.ivyteam.ivy.project.IIvyProject; /** *

@@ -86,7 +87,7 @@ public static File toTempIoFile(IFile resource) throws IOException */ public static IFile getHdResource(String dialogId, String pathToFileInDialog) throws FileNotFoundException { - IProject eclipseProject = Ivy.request().getProject().getProject(); + IProject eclipseProject = IIvyProject.of(Ivy.request().project()).getProject(); String dialogPath = dialogId.replace(".", "/"); IFolder dialogDir = eclipseProject.getFolder("src_hd").getFolder(dialogPath);