Changeset 6192 for trunk/tools/notes.bat


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

Fix classpath problem with Windows batch files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.