-
Notifications
You must be signed in to change notification settings - Fork 7
/
MakeEkitApplet.bat
61 lines (61 loc) · 2.23 KB
/
MakeEkitApplet.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@set inputmode=mode%1
@if %inputmode% == modespell goto spellmaker
@goto basicmaker
:basicmaker
@echo =========================
@echo Basic version compilation
@echo =========================
@set compilemode=basic
@set additionalfiles=com\swabunga\spell\event\SpellCheckListener.class
@goto compilecore
:spellmaker
@echo ==============================
@echo Spellcheck version compilation
@echo ==============================
@set compilemode=spell
@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
@goto compilecore
:compilecore
@echo [] compiling core...
@javac -deprecation com\hexidec\ekit\EkitCore.java
@if errorlevel 1 goto failure
@if %inputmode% == modespell goto compilespellcore
@goto compileapp
:compilespellcore
@echo [] compiling spellcheck extended core...
@javac com\hexidec\ekit\EkitCoreSpell.java
@if errorlevel 1 goto failure
@goto compileapp
:compileapp
@echo [] compiling application...
@javac com\hexidec\ekit\EkitApplet.java
@if errorlevel 1 goto failure
@goto makejar
:makejar
@echo [] jarring...
@jar cf ekitapplet.jar com\hexidec\ekit\*.class com\hexidec\ekit\action\*.class com\hexidec\ekit\component\*.class com\hexidec\ekit\icons\*.png com\hexidec\ekit\*.properties com\hexidec\util\Base64Codec.class com\hexidec\util\Translatrix.class com\hexidec\ekit\thirdparty\print\*.class %additionalfiles%
@if errorlevel 1 goto failure
@goto cleanup
:failure
@echo [*] make failed with an error level of %errorlevel%
@goto cleanup
:cleanup
@echo [] cleaning up Ekit classes...
@del com\hexidec\ekit\*.class
@del com\hexidec\ekit\action\*.class
@del com\hexidec\ekit\component\*.class
@del com\hexidec\util\Base64Codec.class
@del com\hexidec\util\Translatrix.class
@if %compilemode% == spell goto spellpurge
@goto finish
:spellpurge
@echo [] cleaning up spellcheck classes...
@del com\swabunga\spell\engine\*.class
@del com\swabunga\spell\event\*.class
@del com\swabunga\spell\swing\*.class
@goto finish
:finish
@set inputmode=
@set compilemode=
@set additionalfiles=
@echo [] finished