source: trunk/tools/tiffcomment.bat @ 3474

Revision 3474, 1.1 KB checked in by curtis, 12 years ago (diff)

Move TiffComment utility into command line tools suite as "tiffcomment."

Line 
1@echo off
2
3rem tiffcomment.bat: a batch file for extracting the comment
4rem (OME-XML block or otherwise) from a TIFF file
5
6rem Required JARs: loci_tools.jar
7
8rem JAR libraries must be in the same directory as this
9rem command line script for the command to function. 
10
11rem If you are a developer working from source and have
12rem the LOCI classes in your CLASSPATH, you can set the
13rem LOCI_DEVEL environment variable to use them instead.
14
15set PROG=loci.formats.tools.TiffComment
16
17if "%LOCI_DEVEL%" == "" (
18  rem Developer environment variable unset; look for proper libraries
19  if exist loci_tools.jar goto found
20  if exist bio-formats.jar goto found
21  goto missing
22) else (
23  rem Developer environment variable set; try to launch
24  java -mx512m %PROG% %*
25  goto end
26)
27
28:found
29rem Library found; try to launch
30java -mx512m -cp bio-formats.jar;loci_tools.jar %PROG% %*
31goto end
32
33:missing
34echo Required JAR libraries not found. Please download:
35echo   loci_tools.jar
36echo from:
37echo   http://www.loci.wisc.edu/ome/formats.html
38echo and place in the same directory as the command line tools.
39
40:end
Note: See TracBrowser for help on using the repository browser.