Skip to content

Commit

Permalink
FileSystemLike and FileLike interfaces
Browse files Browse the repository at this point in the history
(it compiles)
  • Loading branch information
labkey-matthewb committed Sep 26, 2024
1 parent b000cbf commit dc911ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tcrdb/src/org/labkey/tcrdb/pipeline/MiXCRWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import org.labkey.api.reader.Readers;
import org.labkey.api.sequenceanalysis.pipeline.SequencePipelineService;
import org.labkey.api.sequenceanalysis.run.AbstractCommandWrapper;
import org.labkey.api.util.Path;
import org.labkey.vfs.FileLike;

import java.io.BufferedReader;
import java.io.File;
Expand Down Expand Up @@ -353,11 +355,10 @@ private List<String> getBaseArgs()

private File getJAR()
{
File jar = new File(ModuleLoader.getInstance().getWebappDir().getPath().toFile(), "WEB-INF/lib");
jar = new File(jar, "mixcr.jar");
FileLike jar = ModuleLoader.getInstance().getWebappDir().resolveFile(new Path("WEB-INF","lib","mixcr.jar"));
if (jar.exists())
{
return jar;
return jar.toNioPathForRead().toFile();
}

return SequencePipelineService.get().getExeForPackage("mixcr", "mixcr.jar");
Expand Down

0 comments on commit dc911ce

Please sign in to comment.