Skip to content

Commit 295163a

Browse files
Adopt FileLike for more pipeline APIs (#856)
1 parent ef41998 commit 295163a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

snprc_ehr/src/org/labkey/snprc_ehr/controllers/FeeScheduleController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ public class ImportFeeScheduleAction extends SimpleRedirectAction<PipelinePathFo
7575
public ActionURL getRedirectURL(PipelinePathForm form) throws Exception
7676
{
7777
Container c = getContainer();
78-
File file = form.getValidatedSingleFile(c);
78+
FileLike file = form.getValidatedSingleFile(c);
7979

8080
if (!file.exists())
8181
{
8282
throw new Exception("File not found");
8383
}
8484

8585
ActionURL url = new ActionURL(FeeScheduleImportAction.class, c);
86-
url.addParameter("filePath", file.getAbsolutePath());
86+
url.addParameter("filePath", file.toNioPathForRead().toFile().getAbsolutePath());
8787
//url.addParameter("tabPage", "");
8888
//form.getRequest().getSession().setAttribute("tabPage", "");
8989
return url;

snprc_ehr/src/org/labkey/snprc_ehr/pipeline/FeeSchedulePipelineJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public FeeSchedulePipelineJob(Container c, User user, ActionURL url, PipeRoot pi
4949
super(null, new ViewBackgroundInfo(c, user, url), pipeRoot);
5050
_importFile = importFile;
5151
FileLike logFile = pipeRoot.getLogDirectoryFileLike(true).resolveChild(FileUtil.makeFileNameWithTimestamp("FeeSchedulePipeline", "log"));
52-
setLogFile(logFile.toNioPathForWrite());
52+
setLogFile(logFile);
5353
_form = form;
5454
_container = c;
5555
_user = user;

0 commit comments

Comments
 (0)