Import of Ekit 0.9h
[old-projects.git] / ekit / MakeEkit.bat
CommitLineData
6ce136da
JL
1@set inputmode=mode%1\r
2@if %inputmode% == modespell goto spellmaker\r
3@goto basicmaker\r
4:basicmaker\r
5 @echo =========================\r
6 @echo Basic version compilation\r
7 @echo =========================\r
8 @set compilemode=basic\r
9 @set additionalfiles=com\swabunga\spell\event\SpellCheckListener.class\r
10 @goto compilecore\r
11:spellmaker\r
12 @echo ==============================\r
13 @echo Spellcheck version compilation\r
14 @echo ==============================\r
15 @set compilemode=spell\r
16 @set additionalfiles=com\swabunga\spell\engine\*.class com\swabunga\spell\engine\*.properties com\swabunga\spell\engine\dictionary\* com\swabunga\spell\event\*.class com\swabunga\spell\swing\*.class com\swabunga\spell\swing\*.properties\r
17 @goto compilecore\r
18:compilecore\r
19 @echo [] compiling core...\r
20 @javac -deprecation com\hexidec\ekit\EkitCore.java\r
21 @if errorlevel 1 goto failure\r
22 @if %inputmode% == modespell goto compilespellcore\r
23 @goto compileapp\r
24:compilespellcore\r
25 @echo [] compiling spellcheck extended core...\r
26 @javac com\hexidec\ekit\EkitCoreSpell.java\r
27 @if errorlevel 1 goto failure\r
28 @goto compileapp\r
29:compileapp\r
30 @echo [] compiling application...\r
31 @javac com\hexidec\ekit\Ekit.java\r
32 @if errorlevel 2 goto failure\r
33 @goto makejar\r
34:makejar\r
35 @echo [] jarring...\r
36 @jar cmf com\hexidec\ekit\ekit.manifest ekit.jar com\hexidec\ekit\*.class com\hexidec\ekit\action\*.class com\hexidec\ekit\component\*.class com\hexidec\ekit\icons\*.gif com\hexidec\ekit\*.properties com\hexidec\util\Base64Codec.class com\hexidec\util\Translatrix.class %additionalfiles%\r
37 @if errorlevel 1 goto failure\r
38 @goto cleanup\r
39:failure\r
40 @echo [*] make failed with an error level of %errorlevel%\r
41 @goto cleanup\r
42:cleanup\r
43 @echo [] cleaning up Ekit classes...\r
44 @del com\hexidec\ekit\*.class\r
45 @del com\hexidec\ekit\action\*.class\r
46 @del com\hexidec\ekit\component\*.class\r
47 @del com\hexidec\util\Base64Codec.class\r
48 @del com\hexidec\util\Translatrix.class\r
49 @del com\swabunga\spell\event\*.class\r
50 @if %compilemode% == spell goto spellpurge\r
51 @goto finish\r
52:spellpurge\r
53 @echo [] cleaning up spellcheck classes...\r
54 @del com\swabunga\spell\engine\*.class\r
55 @del com\swabunga\spell\swing\*.class\r
56 @goto finish\r
57:finish\r
58 @set inputmode=\r
59 @set compilemode=\r
60 @set additionalfiles=\r
61 @echo [] finished\r