Skip to content

Commit a4f485f

Browse files
committed
Update logic in JBrowseMaintenanceTask
1 parent b4b7543 commit a4f485f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

jbrowse/src/org/labkey/jbrowse/JBrowseMaintenanceTask.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,21 @@ private void processContainer(Container c, Logger log) throws IOException
264264
{
265265
File expectedFile = j.getLocationOfProcessedTrack(false);
266266
boolean error = false;
267-
if (expectedFile != null && !expectedFile.exists())
267+
if (j.shouldBeCopiedToProcessDir() && expectedFile != null && !expectedFile.exists())
268268
{
269269
log.error("Missing expected file: " + expectedFile.getPath());
270270
error = true;
271271
}
272272

273273
if (!j.doExpectedSearchIndexesExist())
274274
{
275-
log.error("Missing search indexes: " + expectedFile.getPath());
275+
log.error("Missing trix search indexes: " + expectedFile.getPath());
276+
error = true;
277+
}
278+
279+
if (j.shouldHaveFreeTextSearch() && !j.getExpectedLocationOfLuceneIndex(false).exists())
280+
{
281+
log.error("Missing lucene search indexes: " + expectedFile.getPath());
276282
error = true;
277283
}
278284

jbrowse/src/org/labkey/jbrowse/model/JsonFile.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,11 @@ public boolean needsProcessing()
774774
return (needsGzip() && !isGzipped()) || doIndex() || shouldHaveFreeTextSearch();
775775
}
776776

777+
public boolean shouldBeCopiedToProcessDir()
778+
{
779+
return (needsGzip() && !isGzipped());
780+
}
781+
777782
public boolean isGzipped()
778783
{
779784
String fn = getSourceFileName();

0 commit comments

Comments
 (0)