source: trunk/tools/showinf @ 6182

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