source: trunk/tools/editor @ 6182

Revision 6182, 1.5 KB 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# editor: a script for launching the OME Metadata Editor
4
5# Required JARs: loci_tools.jar, ome-editor.jar,
6#                ome-java.jar, ome-java-deprecated.jar
7
8# JAR libraries must be in the same directory as this
9# command line script for the command to function.
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
15PROG=loci.ome.editor.MetadataEditor
16DIR=`dirname "$0"`
17
18if [ $LOCI_DEVEL ]
19then
20  java -mx512m $PROG "$@"
21elif \
22  ([ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/bio-formats.jar" ]) && \
23  [ -e "$DIR/ome-editor.jar" ] && \
24  [ -e "$DIR/ome-java.jar" ] && \
25  [ -e "$DIR/ome-java-deprecated.jar" ]
26then
27  java -mx512m -cp "$DIR":"$DIR/bio-formats.jar":"$DIR/loci_tools.jar":"$DIR/ome-editor.jar":"$DIR/ome-java.jar":"$DIR/ome-java-deprecated.jar" $PROG "$@"
28else
29  echo "Required JAR libraries not found. Please download:"
30  echo "  loci_tools.jar"
31  echo "from:"
32  echo "  http://www.loci.wisc.edu/bio-formats/downloads"
33  echo "as well as the OME Metadata Notebook JARs from:"
34  echo "  http://www.loci.wisc.edu/software/daily/ome-editor.jar"
35  echo "  http://www.loci.wisc.edu/software/daily/ome-java.jar"
36  echo "  http://www.loci.wisc.edu/software/daily/ome-java-deprecated.jar"
37  echo "and place in the same directory as the command line tools."
38  echo ""
39  echo "Please note that the OME Metadata Notebook is legacy software that "
40  echo "has been discontinued. Use at your own risk."
41fi
Note: See TracBrowser for help on using the repository browser.