Changeset 6192


Ignore:
Timestamp:
04/26/10 12:45:23 (10 years ago)
Author:
curtis
Message:

Fix classpath problem with Windows batch files.

Location:
trunk/tools
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bfconvert.bat

    r6182 r6192  
    1414set PROG=loci.formats.tools.ImageConverter 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
  • trunk/tools/bfview.bat

    r6182 r6192  
    1414set PROG=loci.formats.gui.ImageViewer 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
  • trunk/tools/domainlist.bat

    r6182 r6192  
    1414set PROG=loci.formats.tools.PrintDomains 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
  • trunk/tools/editor.bat

    r6182 r6192  
    1515set PROG=loci.ome.editor.MetadataEditor 
    1616set DIR=%~dp0 
     17if "%DIR:~1%" == ":\" ( 
     18  set DIR1=%DIR% 
     19) else ( 
     20  rem Remove trailing backslash 
     21  set DIR1=%DIR:~0,-1% 
     22) 
    1723 
    1824if "%LOCI_DEVEL%" == "" ( 
     
    3238:found 
    3339rem Library found; try to launch 
    34 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% %* 
     40java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar";"%DIR%ome-editor.jar";"%DIR%ome-java.jar";"%DIR%ome-java-deprecated.jar" %PROG% %* 
    3541goto end 
    3642 
  • trunk/tools/formatlist.bat

    r6182 r6192  
    1414set PROG=loci.formats.tools.PrintFormatTable 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
  • trunk/tools/ijview.bat

    r6182 r6192  
    1515set PROG=loci.plugins.importer.Importer 
    1616set DIR=%~dp0 
     17if "%DIR:~1%" == ":\" ( 
     18  set DIR1=%DIR% 
     19) else ( 
     20  rem Remove trailing backslash 
     21  set DIR1=%DIR:~0,-1% 
     22) 
    1723 
    1824if "%LOCI_DEVEL%" == "" ( 
     
    3036:found 
    3137rem Library found; try to launch 
    32 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar";"%DIR%ij.jar" %PROG% %* 
     38java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar";"%DIR%ij.jar" %PROG% %* 
    3339goto end 
    3440 
  • trunk/tools/notes.bat

    r6182 r6192  
    1414set PROG=loci.ome.notes.Notes 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2935:found 
    3036rem Library found; try to launch 
    31 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar";"%DIR%ome-notes.jar" %PROG% %* 
     37java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar";"%DIR%ome-notes.jar" %PROG% %* 
    3238goto end 
    3339 
  • trunk/tools/omeul.bat

    r6182 r6192  
    1414set PROG=loci.formats.ome.OMEWriter 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
  • trunk/tools/showinf.bat

    r6182 r6192  
    1515set PROG=loci.formats.tools.ImageInfo 
    1616set DIR=%~dp0 
     17if "%DIR:~1%" == ":\" ( 
     18  set DIR1=%DIR% 
     19) else ( 
     20  rem Remove trailing backslash 
     21  set DIR1=%DIR:~0,-1% 
     22) 
    1723 
    1824if "%LOCI_DEVEL%" == "" ( 
     
    2935:found 
    3036rem Library found; try to launch 
    31 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     37java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3238goto end 
    3339 
  • trunk/tools/tiffcomment.bat

    r6182 r6192  
    1515set PROG=loci.formats.tools.TiffComment 
    1616set DIR=%~dp0 
     17if "%DIR:~1%" == ":\" ( 
     18  set DIR1=%DIR% 
     19) else ( 
     20  rem Remove trailing backslash 
     21  set DIR1=%DIR:~0,-1% 
     22) 
    1723 
    1824if "%LOCI_DEVEL%" == "" ( 
     
    2935:found 
    3036rem Library found; try to launch 
    31 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     37java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3238goto end 
    3339 
  • trunk/tools/xmlindent.bat

    r6182 r6192  
    1414set PROG=loci.formats.tools.XMLIndent 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
  • trunk/tools/xmlvalid.bat

    r6182 r6192  
    1414set PROG=loci.formats.tools.XMLValidate 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
Note: See TracChangeset for help on using the changeset viewer.