File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
api-src/org/labkey/api/sequenceanalysis/run
src/org/labkey/sequenceanalysis/pipeline Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ public PicardWrapper(@Nullable Logger logger)
3030
3131 public String getVersion () throws PipelineJobException
3232 {
33+ if (!jarExists ())
34+ {
35+ throw new PipelineJobException ("Unable to find picard.jar" );
36+ }
37+
3338 List <String > params = new LinkedList <>();
3439 params .add (SequencePipelineService .get ().getJava8FilePath ());
3540 params .add ("-jar" );
@@ -77,13 +82,18 @@ public void setStringency(ValidationStringency stringency)
7782
7883 abstract protected String getToolName ();
7984
80- protected List <String > getBaseArgs ()
85+ protected List <String > getBaseArgs () throws PipelineJobException
8186 {
8287 return getBaseArgs (false );
8388 }
8489
85- protected List <String > getBaseArgs (boolean basicArgsOnly )
90+ protected List <String > getBaseArgs (boolean basicArgsOnly ) throws PipelineJobException
8691 {
92+ if (!jarExists ())
93+ {
94+ throw new PipelineJobException ("Unable to find picard.jar" );
95+ }
96+
8797 List <String > params = new LinkedList <>();
8898 params .add (SequencePipelineService .get ().getJava8FilePath ());
8999 params .addAll (SequencePipelineService .get ().getJavaOpts ());
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ public RecordedActionSet run() throws PipelineJobException
353353 CreateSequenceDictionaryWrapper wrapper = new CreateSequenceDictionaryWrapper (getJob ().getLogger ());
354354 wrapper .execute (fasta , true );
355355 }
356- catch (PipelineJobException e )
356+ catch (PipelineJobException | IllegalArgumentException e )
357357 {
358358 getJob ().getLogger ().warn ("Unable to create sequence dictionary" );
359359 }
You can’t perform that action at this time.
0 commit comments