source: trunk/tools/xmlindent @ 3144

Revision 3144, 805 bytes checked in by curtis, 12 years ago (diff)

Add command line tool for indenting XML.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# xmlindent: a script for prettifying blocks of XML
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.tools.XMLIndent
15
16if [ $LOCI_DEVEL ]
17then
18  java -mx512m $PROG "$@"
19elif [ -e loci_tools.jar ] || [ -e bio-formats.jar ]
20then
21  java -mx512m -cp bio-formats.jar:loci_tools.jar $PROG "$@"
22else
23  echo "Required JAR libraries not found. Please download:"
24  echo "  loci_tools.jar"
25  echo "from:"
26  echo "  http://www.loci.wisc.edu/ome/formats.html"
27  echo "and place in the same directory as the command line tools."
28fi
Note: See TracBrowser for help on using the repository browser.