Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/src/org/labkey/api/exp/XarSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public XarSource(PipelineJob job)

public abstract Path getRootPath();

public Path getJobRootPath() { return getRootPath(); }

/**
* Should be true if this was uploaded XML that was not part of a full XAR
*/
Expand Down
2 changes: 1 addition & 1 deletion experiment/src/org/labkey/experiment/XarReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ private void loadExperimentRun(ExperimentRunType a, List<ExpMaterial> startingMa
vals.setProtocolLSID(protocol.getLSID());
vals.setComments(trimString(a.getComments()));

vals.setFilePathRoot(FileUtil.getAbsolutePath(_xarSource.getRootPath())); // FileUtil.getAbsolutePath(runContext.getContainer(), _job.getPipeRoot().getRootNioPath()));
vals.setFilePathRoot(FileUtil.getAbsolutePath(_xarSource.getJobRootPath()));
vals.setContainer(getContainer());
String workflowTaskLSID = a.getWorkflowTaskLSID();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ public Path getRootPath()
return FileUtil.stringToPath(_sourceContainer, _root);
}

@Override
public Path getJobRootPath()
{
var pipelineJob = getXarContext().getJob();
return pipelineJob != null
? pipelineJob.getPipeRoot().getRootFileLike().toNioPathForRead()
: super.getJobRootPath();
}

@Override
public boolean shouldIgnoreDataFiles()
{
Expand Down