Egowayne

DocFetcher.bat

Aug 20th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.93 KB | None | 0 0
  1. rem  Note: This file is an alternative launcher for DocFetcher. How to use it:
  2. rem  1) Modify this file as needed.
  3. rem  2) Move this file one level up into the DocFetcher folder.
  4. rem  3) Double-click on this file to launch DocFetcher.
  5. rem  
  6. rem  Common modifications:
  7. rem  1) Replace the "java" keyword in the last line with the full path to the
  8. rem  Java executable.
  9. rem  2) Give DocFetcher more memory with the setting -Xmx..m in the last line.
  10. rem  For example, with -Xmx512m, DocFetcher will use up to 512 MB of memory.
  11. rem  Using more memory than about 1 GB requires a 64-bit Java runtime.
  12.  
  13. @echo off
  14.  
  15. cd %~dp0
  16.  
  17. set libclasspath=
  18.  
  19. for %%f in (.\lib\*.jar) do (call :append_classpath %%f)
  20. goto :proceed
  21.  
  22. :append_classpath
  23. set libclasspath=%libclasspath%;%1
  24. goto :eof
  25.  
  26. :proceed
  27. java -enableassertions -Xmx512m -Xss2m -cp %libclasspath% -Djava.library.path=lib net.sourceforge.docfetcher.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
Advertisement
Add Comment
Please, Sign In to add comment