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