Skip to content

Commit ca6905e

Browse files
committed
Show EclipseHelper banner only once
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent f525405 commit ca6905e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/scijava/annotations/EclipseHelper.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
public class EclipseHelper extends DirectoryIndexer {
9797

9898
static Set<URL> indexed = new HashSet<URL>();
99+
private boolean bannerShown;
99100

100101
private static boolean debug =
101102
"debug".equals(System.getProperty("scijava.log.level"));
@@ -216,7 +217,10 @@ private void index(File directory, ClassLoader loader) {
216217
try {
217218
discoverAnnotations(directory, "", loader);
218219
if (!jsonDirectory.exists() && !foundAnnotations()) return;
219-
System.err.println("[ECLIPSE HELPER] Indexing annotations...");
220+
if (!bannerShown) {
221+
System.err.println("[ECLIPSE HELPER] Indexing annotations...");
222+
bannerShown = true;
223+
}
220224
write(directory);
221225
}
222226
catch (IOException e) {

0 commit comments

Comments
 (0)