1 | @echo off
|
---|
2 | set GLILANG=en
|
---|
3 |
|
---|
4 |
|
---|
5 | :: -------- Generate documentation for the Greenstone Librarian Interface --------
|
---|
6 |
|
---|
7 | :: This script must be run from within the directory in which it lives
|
---|
8 | if exist document.bat goto findJavadoc
|
---|
9 | if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides.
|
---|
10 | if "%GLILANG%" == "es" echo Este gui¢n deber ejecutarse desde el directorio en el que reside.
|
---|
11 | if "%GLILANG%" == "fr" echo Ce script doit tre excut
|
---|
12 | partir du rpertoire dans lequel il se trouve.
|
---|
13 | if "%GLILANG%" == "ru" echo â®â áªàš¯â €®«Š¥ ¡ëâì ¢§ïâ š§ €šà¥ªâ®àšš, ¢ ª®â®à®© ® à ᯮ«®Š¥
|
---|
14 | goto exit
|
---|
15 |
|
---|
16 |
|
---|
17 | :findJavadoc
|
---|
18 | :: ---- Check Javadoc exists ----
|
---|
19 | set JAVADOCPATH=
|
---|
20 |
|
---|
21 | :: Some users may set the above line manually
|
---|
22 | if not "%JAVADOCPATH%" == "" goto testJavadoc
|
---|
23 |
|
---|
24 | :: If it is set, use the JAVA_HOME environment variable
|
---|
25 | if not "%JAVA_HOME%" == "" goto javahome
|
---|
26 |
|
---|
27 | :: Check if Javadoc is on the search path
|
---|
28 | echo %PATH%| winutil\which javadoc.exe | winutil\setvar JAVADOCPATH > setjavadoc.bat
|
---|
29 | call setjavadoc.bat
|
---|
30 | del setjavadoc.bat
|
---|
31 | if not "%JAVADOCPATH%" == "" goto testJavadoc
|
---|
32 |
|
---|
33 | :: Still haven't found anything, so try looking in the registry (gulp!)
|
---|
34 | type nul > jdk.reg
|
---|
35 | regedit /E jdk.reg "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit"
|
---|
36 | type jdk.reg > jdk.txt
|
---|
37 | del jdk.reg
|
---|
38 |
|
---|
39 | winutil\findjava jdk.txt | winutil\setvar JAVADOCPATH > setjavadoc.bat
|
---|
40 | del jdk.txt
|
---|
41 | call setjavadoc.bat
|
---|
42 | del setjavadoc.bat
|
---|
43 |
|
---|
44 | :: If nothing was found in the registry, we're stuck
|
---|
45 | if "%JAVADOCPATH%" == "" goto noJavadoc
|
---|
46 |
|
---|
47 | set JAVADOCPATH=%JAVADOCPATH%\bin
|
---|
48 | goto testJavadoc
|
---|
49 |
|
---|
50 | :javahome
|
---|
51 | set JAVADOCPATH=%JAVA_HOME%\bin
|
---|
52 |
|
---|
53 | :testJavadoc
|
---|
54 | :: Check that a Javadoc executable has been found
|
---|
55 | if "%GLILANG%" == "en" echo Checking Javadoc: %JAVADOCPATH%
|
---|
56 | if "%GLILANG%" == "es" echo Revisando Javadoc: %JAVADOCPATH%
|
---|
57 | if "%GLILANG%" == "fr" echo Vrification de Javadoc: %JAVADOCPATH%
|
---|
58 | if "%GLILANG%" == "ru" echo ஢¥àª Javadoc: %JAVADOCPATH%
|
---|
59 | if exist "%JAVADOCPATH%\javadoc.exe" goto docGLI
|
---|
60 |
|
---|
61 | :noJavadoc
|
---|
62 | echo.
|
---|
63 | if "%GLILANG%" == "en" echo Failed to locate an appropriate version of Javadoc. You must install a
|
---|
64 | if "%GLILANG%" == "en" echo Java Development Kit (version 1.4 or greater) before generating the
|
---|
65 | if "%GLILANG%" == "en" echo documentation for the Greenstone Librarian Interface.
|
---|
66 |
|
---|
67 | if "%GLILANG%" == "es" echo No se pudo localizar una versi¢n apropiada de Javadoc. Usted deber
|
---|
68 | if "%GLILANG%" == "es" echo instalar un Kit de Desarrollo de Software Java (versi¢n 1.4 o superior)
|
---|
69 | if "%GLILANG%" == "es" echo antes de generar la documentaci¢n para la Interfaz de la Biblioteca
|
---|
70 | if "%GLILANG%" == "es" echo Digital Greenstone.
|
---|
71 |
|
---|
72 | if "%GLILANG%" == "fr" echo Une version approprie de Javadoc n'a pas pu tre localise. Vous devez
|
---|
73 | if "%GLILANG%" == "fr" echo installer un Kit de Dveloppement Java (version 1.4 ou suprieure) avant
|
---|
74 | if "%GLILANG%" == "fr" echo de produire la documentation de Greenstone Librarian Interface.
|
---|
75 |
|
---|
76 | if "%GLILANG%" == "ru" echo ¥ 〠«®áì ®¯à¥€¥«šâì ¬¥á⮠宊€¥š¥ ᮮ⢥âáâ¢ãî饩 ¢¥àášš Javadoc.
|
---|
77 | if "%GLILANG%" == "ru" echo ë €®«Šë šáâ ««šà®¢ âì Java Development Kit (¢¥àášï 1.4 š«š ¢ëè¥)
|
---|
78 | if "%GLILANG%" == "ru" echo ¯à¥Š€¥, 祬 £¥¥àšà®¢ âì €®ªã¬¥â æšî €«ï ¡š¡«š®â¥ç®£®
|
---|
79 | if "%GLILANG%" == "ru" echo šâ¥à䥩á Greenstone.
|
---|
80 | goto exit
|
---|
81 |
|
---|
82 |
|
---|
83 | :docGLI
|
---|
84 | :: ---- Document the GLI ----
|
---|
85 | echo.
|
---|
86 | if "%GLILANG%" == "en" echo Generating documentation for the Greenstone Librarian Interface...
|
---|
87 | if "%GLILANG%" == "es" echo Generando documentaci¢n para la Interfaz de la Biblioteca Digital Greenstone...
|
---|
88 | if "%GLILANG%" == "fr" echo Production de documentation pour la Greenstone Librarian Interface
|
---|
89 | if "%GLILANG%" == "ru" echo ¥¥àšà®¢ š¥ €®ªã¬¥â æšš €«ï ¡š¡«š®â¥ç®£® šâ¥à䥩á Greenstone
|
---|
90 |
|
---|
91 | "%JAVADOCPATH%\javadoc.exe" -classpath classes/ -sourcepath src/ -source 1.4 -author -breakiterator -d docs/ -group "Gatherer v2.3" org.greenstone.gatherer:org.greenstone.gatherer.checklist:org.greenstone.gatherer.collection:org.greenstone.gatherer.feedback:org.greenstone.gatherer.file:org.greenstone.gatherer.gui:org.greenstone.gatherer.gui.browser:org.greenstone.gatherer.gui.combobox:org.greenstone.gatherer.gui.messages:org.greenstone.gatherer.gui.metaaudit:org.greenstone.gatherer.gui.table:org.greenstone.gatherer.gui.tree:org.greenstone.gatherer.help:org.greenstone.gatherer.sarm:org.greenstone.gatherer.shell:org.greenstone.gatherer.util -group "Collection Design Module" org.greenstone.gatherer.cdm:org.greenstone.gatherer.cdm.custom -group "Metadata Set Manager" org.greenstone.gatherer.msm:org.greenstone.gatherer.msm.parsers -group "Value Tree Controls" org.greenstone.gatherer.valuetree -private -splitindex -version org.greenstone.gatherer org.greenstone.gatherer.checklist org.greenstone.gatherer.collection org.greenstone.gatherer.feedback org.greenstone.gatherer.file org.greenstone.gatherer.gui org.greenstone.gatherer.gui.browser org.greenstone.gatherer.gui.combobox org.greenstone.gatherer.gui.messages org.greenstone.gatherer.gui.metaaudit org.greenstone.gatherer.gui.table org.greenstone.gatherer.gui.tree org.greenstone.gatherer.help org.greenstone.gatherer.sarm org.greenstone.gatherer.shell org.greenstone.gatherer.util org.greenstone.gatherer.cdm org.greenstone.gatherer.cdm.custom org.greenstone.gatherer.msm org.greenstone.gatherer.msm.parsers org.greenstone.gatherer.valuetree
|
---|
92 |
|
---|
93 | if "%GLILANG%" == "en" echo Done!
|
---|
94 | if "%GLILANG%" == "es" echo Hecho!
|
---|
95 | if "%GLILANG%" == "fr" echo Termin!
|
---|
96 | if "%GLILANG%" == "ru" echo 믮«¥®!
|
---|
97 |
|
---|
98 | :exit
|
---|
99 | echo.
|
---|
100 | pause
|
---|
101 |
|
---|
102 | :: ---- Clean up ----
|
---|
103 | set JAVADOCPATH=
|
---|