source: trunk/tools/bfview @ 6182

Revision 6182, 878 bytes checked in by curtis, 10 years ago (diff)

Fix up logging with Bio-Formats command line tools.
This removes the hard dependency on log4j in Bio-Formats, so it should be
possible to log with other logging frameworks via SLF4J now. There is also
a log4j configuration filein the tools folder now, which should make it easier
to configure output for debugging, stack traces, etc.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# bfview: a script for displaying an image file in the image viewer
4
5# Required JARs: loci_tools.jar
6
7# JAR libraries must be in the same directory as this
8# command line script for the command to function.
9
10# If you are a developer working from source and have
11# the LOCI classes in your CLASSPATH, you can set the
12# LOCI_DEVEL environment variable to use them instead.
13
14PROG=loci.formats.gui.ImageViewer
15DIR=`dirname "$0"`
16
17if [ $LOCI_DEVEL ]
18then
19  java -mx512m $PROG "$@"
20elif [ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ]
21then
22  java -mx512m -cp "$DIR":"$DIR/bio-formats.jar":"$DIR/loci_tools.jar" $PROG "$@"
23else
24  echo "Required JAR libraries not found. Please download:"
25  echo "  loci_tools.jar"
26  echo "from:"
27  echo "  http://www.loci.wisc.edu/bio-formats/downloads"
28  echo "and place in the same directory as the command line tools."
29fi
Note: See TracBrowser for help on using the repository browser.