Skip to content

Commit c540e99

Browse files
committed
Rework action to repair improper SBT outputs
1 parent c58ba3d commit c540e99

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

primeseq/src/org/labkey/primeseq/PrimeseqController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
import org.labkey.api.data.SqlExecutor;
3838
import org.labkey.api.data.TableSelector;
3939
import org.labkey.api.exp.api.ExpData;
40+
import org.labkey.api.exp.api.ExpRun;
41+
import org.labkey.api.exp.api.ExperimentService;
4042
import org.labkey.api.module.Module;
4143
import org.labkey.api.module.ModuleLoader;
4244
import org.labkey.api.pipeline.PipeRoot;
@@ -825,7 +827,10 @@ public boolean handlePost(Object o, BindException errors) throws Exception
825827
return;
826828
}
827829

828-
File root = f.getParentFile().getParentFile();
830+
ExpRun run = ExperimentService.get().getExpRun(so.getRunId());
831+
PipelineStatusFile sf = PipelineService.get().getStatusFile(run.getJobId());
832+
File logFile = new File(sf.getFilePath());
833+
File root = logFile.getParentFile();
829834
File [] dirs = root.listFiles(fn -> {
830835
return fn.isDirectory() & !fn.getName().equalsIgnoreCase("Shared");
831836
});

0 commit comments

Comments
 (0)