author | wenzelm |
Sat, 20 Jul 2019 11:17:54 +0200 | |
changeset 70382 | 23ba5a638e6d |
parent 70220 | 089753519be0 |
child 70683 | 8c7706b053c7 |
permissions | -rwxr-xr-x |
34333 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
34664 | 3 |
# Author: Makarius |
4 |
# |
|
5 |
# DESCRIPTION: Isabelle/jEdit interface wrapper |
|
6 |
||
34333 | 7 |
|
43285 | 8 |
## sources |
9 |
||
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
10 |
declare -a SOURCES_BASE=( |
66591
6efa351190d0
more robust: provide docking framework via base plugin;
wenzelm
parents:
66590
diff
changeset
|
11 |
"src-base/dockable.scala" |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
12 |
"src-base/isabelle_encoding.scala" |
66591
6efa351190d0
more robust: provide docking framework via base plugin;
wenzelm
parents:
66590
diff
changeset
|
13 |
"src-base/jedit_lib.scala" |
6efa351190d0
more robust: provide docking framework via base plugin;
wenzelm
parents:
66590
diff
changeset
|
14 |
"src-base/pide_docking_framework.scala" |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
15 |
"src-base/plugin.scala" |
66555
39257f39c7da
more robust: fall-back for SyntaxUtilities.StyleExtender when Isabelle plugin is unloaded;
wenzelm
parents:
66457
diff
changeset
|
16 |
"src-base/syntax_style.scala" |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
17 |
) |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
18 |
|
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
19 |
declare -a RESOURCES_BASE=( |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
20 |
"src-base/Isabelle_Base.props" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
21 |
"src-base/services.xml" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
22 |
) |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
23 |
|
43320 | 24 |
declare -a SOURCES=( |
50450
358b6020f8b6
generalized notion of active area, where sendback is just one application;
wenzelm
parents:
50433
diff
changeset
|
25 |
"src/active.scala" |
53023
f127e949389f
Completion popup based on javax.swing.PopupFactory, which has better cross-platform chances than JWindow (cf. org/gjt/jedit/gui/CompletionPopup.java);
wenzelm
parents:
52981
diff
changeset
|
26 |
"src/completion_popup.scala" |
56585 | 27 |
"src/context_menu.scala" |
60749 | 28 |
"src/debugger_dockable.scala" |
43285 | 29 |
"src/document_model.scala" |
30 |
"src/document_view.scala" |
|
52445 | 31 |
"src/documentation_dockable.scala" |
50542
58bd88159f8f
fold handling within Pretty_Text_Area, based on formal document content, which is static here;
wenzelm
parents:
50450
diff
changeset
|
32 |
"src/fold_handling.scala" |
55825 | 33 |
"src/font_info.scala" |
49570 | 34 |
"src/graphview_dockable.scala" |
49726 | 35 |
"src/info_dockable.scala" |
50208 | 36 |
"src/isabelle.scala" |
43285 | 37 |
"src/isabelle_encoding.scala" |
69637
f3b564a13236
access Isabelle theory exports via virtual file-system;
wenzelm
parents:
69202
diff
changeset
|
38 |
"src/isabelle_export.scala" |
69762
58fb0d779583
support for session information via virtual file-system;
wenzelm
parents:
69756
diff
changeset
|
39 |
"src/isabelle_options.scala" |
58fb0d779583
support for session information via virtual file-system;
wenzelm
parents:
69756
diff
changeset
|
40 |
"src/isabelle_session.scala" |
58fb0d779583
support for session information via virtual file-system;
wenzelm
parents:
69756
diff
changeset
|
41 |
"src/isabelle_sidekick.scala" |
69756 | 42 |
"src/isabelle_vfs.scala" |
66120 | 43 |
"src/jedit_bibtex.scala" |
52971
31926d2c04ee
tuned signature -- more abstract PIDE editor operations;
wenzelm
parents:
52934
diff
changeset
|
44 |
"src/jedit_editor.scala" |
49406 | 45 |
"src/jedit_lib.scala" |
50202 | 46 |
"src/jedit_options.scala" |
64621 | 47 |
"src/jedit_rendering.scala" |
56208 | 48 |
"src/jedit_resources.scala" |
62973 | 49 |
"src/jedit_sessions.scala" |
65139 | 50 |
"src/jedit_spell_checker.scala" |
63734
133e3e84e6fb
some support for merge of Isabelle/jEdit shortcuts wrt. jEdit keymap;
wenzelm
parents:
63422
diff
changeset
|
51 |
"src/keymap_merge.scala" |
50433
9131dadb2bf7
basic monitor panel, using the powerful jfreechart library;
wenzelm
parents:
50416
diff
changeset
|
52 |
"src/monitor_dockable.scala" |
43285 | 53 |
"src/output_dockable.scala" |
54 |
"src/plugin.scala" |
|
49398
0fa4389c04f9
alternative output panel, based on Pretty_Text_Area, based on JEditEmbeddedTextArea;
wenzelm
parents:
49246
diff
changeset
|
55 |
"src/pretty_text_area.scala" |
49702 | 56 |
"src/pretty_tooltip.scala" |
52934
bfb6873df88e
separate Process_Indicator -- simplified/clarified version of org.gjt.sp.jedit.gui.AnimatedIcon;
wenzelm
parents:
52908
diff
changeset
|
57 |
"src/process_indicator.scala" |
43285 | 58 |
"src/protocol_dockable.scala" |
56879
ee2b61f37ad9
renamed "Find" to "Query", with more general operations;
wenzelm
parents:
56764
diff
changeset
|
59 |
"src/query_dockable.scala" |
43285 | 60 |
"src/raw_output_dockable.scala" |
49411 | 61 |
"src/rich_text_area.scala" |
43285 | 62 |
"src/scala_console.scala" |
61288 | 63 |
"src/session_build.scala" |
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
54682
diff
changeset
|
64 |
"src/simplifier_trace_dockable.scala" |
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
54682
diff
changeset
|
65 |
"src/simplifier_trace_window.scala" |
58529 | 66 |
"src/sledgehammer_dockable.scala" |
61208 | 67 |
"src/state_dockable.scala" |
50143
4ff5d795ed08
dockable with buttons for symbols, grouped and sorted in tabs according to ~~/etc/symbols;
immler
parents:
50120
diff
changeset
|
68 |
"src/symbols_dockable.scala" |
65258 | 69 |
"src/syntax_style.scala" |
48021
d899be1cfe6d
separate syslog dockable -- discontinued tendency of sub-window management via tabs;
wenzelm
parents:
48014
diff
changeset
|
70 |
"src/syslog_dockable.scala" |
46572 | 71 |
"src/text_overview.scala" |
63422 | 72 |
"src/text_structure.scala" |
50299 | 73 |
"src/theories_dockable.scala" |
51533 | 74 |
"src/timing_dockable.scala" |
43414 | 75 |
"src/token_markup.scala" |
43285 | 76 |
) |
77 |
||
43320 | 78 |
declare -a RESOURCES=( |
43286 | 79 |
"src/actions.xml" |
80 |
"src/dockables.xml" |
|
81 |
"src/Isabelle.props" |
|
50306 | 82 |
"src/jEdit.props" |
43286 | 83 |
"src/services.xml" |
55500 | 84 |
"src/modes/isabelle-ml.xml" |
52540 | 85 |
"src/modes/isabelle-news.xml" |
86 |
"src/modes/isabelle-options.xml" |
|
87 |
"src/modes/isabelle-root.xml" |
|
88 |
"src/modes/isabelle.xml" |
|
56277
c4f75e733812
separate "sml" mode, suppress old "ml" mode altogether;
wenzelm
parents:
56208
diff
changeset
|
89 |
"src/modes/sml.xml" |
43285 | 90 |
) |
91 |
||
92 |
||
34333 | 93 |
## diagnostics |
94 |
||
34664 | 95 |
PRG="$(basename "$0")" |
96 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
97 |
function usage() |
34333 | 98 |
{ |
99 |
echo |
|
34664 | 100 |
echo "Usage: isabelle $PRG [OPTIONS] [FILES ...]" |
34333 | 101 |
echo |
102 |
echo " Options are:" |
|
68370 | 103 |
echo " -A NAME ancestor session for options -R and -S (default: parent)" |
62039 | 104 |
echo " -D NAME=X set JVM system property" |
66683 | 105 |
echo " -J OPTION add JVM runtime option" |
106 |
echo " (default $JEDIT_JAVA_SYSTEM_OPTIONS $JEDIT_JAVA_OPTIONS)" |
|
68370 | 107 |
echo " -R NAME build image with requirements from other sessions" |
108 |
echo " -S NAME like option -R, with focus on selected session" |
|
43285 | 109 |
echo " -b build only" |
48791 | 110 |
echo " -d DIR include session directory" |
43285 | 111 |
echo " -f fresh build" |
68541 | 112 |
echo " -i NAME include session in name-space of theories" |
34333 | 113 |
echo " -j OPTION add jEdit runtime option" |
66683 | 114 |
echo " (default $JEDIT_OPTIONS)" |
50403
87868964733c
more uniform default logic, using settings, options, args etc.;
wenzelm
parents:
50373
diff
changeset
|
115 |
echo " -l NAME logic session name" |
34333 | 116 |
echo " -m MODE add print mode for output" |
57086 | 117 |
echo " -n no build of session image on startup" |
63986
c7a4b03727ae
options for process policy, notably for multiprocessor machines;
wenzelm
parents:
63734
diff
changeset
|
118 |
echo " -p CMD ML process command prefix (process policy)" |
69854
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
119 |
echo " -s system build mode for session image (system_heaps=true)" |
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
120 |
echo " -u user build mode for session image (system_heaps=false)" |
34333 | 121 |
echo |
61171 | 122 |
echo " Start jEdit with Isabelle plugin setup and open FILES" |
61512
933463440449
more uniform command-line for "isabelle jedit" and the isabelle.Main app wrapper;
wenzelm
parents:
61511
diff
changeset
|
123 |
echo " (default \"$USER_HOME/Scratch.thy\" or \":\" for empty buffer)." |
34333 | 124 |
echo |
125 |
exit 1 |
|
126 |
} |
|
127 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
128 |
function fail() |
34333 | 129 |
{ |
130 |
echo "$1" >&2 |
|
131 |
exit 2 |
|
132 |
} |
|
133 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
134 |
function failed() |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
135 |
{ |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
136 |
fail "Failed!" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
137 |
} |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
138 |
|
34333 | 139 |
|
140 |
## process command line |
|
141 |
||
142 |
# options |
|
143 |
||
43285 | 144 |
BUILD_ONLY=false |
145 |
BUILD_JARS="jars" |
|
63986
c7a4b03727ae
options for process policy, notably for multiprocessor machines;
wenzelm
parents:
63734
diff
changeset
|
146 |
ML_PROCESS_POLICY="" |
66988 | 147 |
JEDIT_LOGIC_ANCESTOR="" |
68370 | 148 |
JEDIT_LOGIC_REQUIREMENTS="" |
66987
352b23c97ac8
support focus_session, for much faster startup of Isabelle/jEdit;
wenzelm
parents:
66977
diff
changeset
|
149 |
JEDIT_LOGIC_FOCUS="" |
68541 | 150 |
JEDIT_INCLUDE_SESSIONS="" |
70382
23ba5a638e6d
more robust: avoid folding of jEdit file-names wrt. JEDIT_SESSION_DIRS;
wenzelm
parents:
70220
diff
changeset
|
151 |
JEDIT_SESSION_DIRS="-" |
50403
87868964733c
more uniform default logic, using settings, options, args etc.;
wenzelm
parents:
50373
diff
changeset
|
152 |
JEDIT_LOGIC="" |
34333 | 153 |
JEDIT_PRINT_MODE="" |
69854
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
154 |
JEDIT_NO_BUILD="" |
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
155 |
JEDIT_BUILD_MODE="default" |
34333 | 156 |
|
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
157 |
function getoptions() |
34780 | 158 |
{ |
159 |
OPTIND=1 |
|
69854
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
160 |
while getopts "A:BFD:J:R:S:bd:fi:j:l:m:np:su" OPT |
34780 | 161 |
do |
162 |
case "$OPT" in |
|
66988 | 163 |
A) |
164 |
JEDIT_LOGIC_ANCESTOR="$OPTARG" |
|
165 |
;; |
|
62039 | 166 |
D) |
167 |
JAVA_ARGS["${#JAVA_ARGS[@]}"]="-D$OPTARG" |
|
168 |
;; |
|
34780 | 169 |
J) |
170 |
JAVA_ARGS["${#JAVA_ARGS[@]}"]="$OPTARG" |
|
171 |
;; |
|
64602 | 172 |
R) |
68370 | 173 |
JEDIT_LOGIC="$OPTARG" |
174 |
JEDIT_LOGIC_REQUIREMENTS="true" |
|
64602 | 175 |
;; |
66987
352b23c97ac8
support focus_session, for much faster startup of Isabelle/jEdit;
wenzelm
parents:
66977
diff
changeset
|
176 |
S) |
352b23c97ac8
support focus_session, for much faster startup of Isabelle/jEdit;
wenzelm
parents:
66977
diff
changeset
|
177 |
JEDIT_LOGIC="$OPTARG" |
68370 | 178 |
JEDIT_LOGIC_REQUIREMENTS="true" |
66987
352b23c97ac8
support focus_session, for much faster startup of Isabelle/jEdit;
wenzelm
parents:
66977
diff
changeset
|
179 |
JEDIT_LOGIC_FOCUS="true" |
352b23c97ac8
support focus_session, for much faster startup of Isabelle/jEdit;
wenzelm
parents:
66977
diff
changeset
|
180 |
;; |
43285 | 181 |
b) |
182 |
BUILD_ONLY=true |
|
183 |
;; |
|
48791 | 184 |
d) |
70382
23ba5a638e6d
more robust: avoid folding of jEdit file-names wrt. JEDIT_SESSION_DIRS;
wenzelm
parents:
70220
diff
changeset
|
185 |
JEDIT_SESSION_DIRS="$JEDIT_SESSION_DIRS:$OPTARG" |
48791 | 186 |
;; |
68541 | 187 |
i) |
188 |
if [ -z "$JEDIT_INCLUDE_SESSIONS" ]; then |
|
189 |
JEDIT_INCLUDE_SESSIONS="$OPTARG" |
|
190 |
else |
|
191 |
JEDIT_INCLUDE_SESSIONS="$JEDIT_INCLUDE_SESSIONS:$OPTARG" |
|
192 |
fi |
|
193 |
;; |
|
43285 | 194 |
f) |
195 |
BUILD_JARS="jars_fresh" |
|
196 |
;; |
|
34780 | 197 |
j) |
198 |
ARGS["${#ARGS[@]}"]="$OPTARG" |
|
199 |
;; |
|
200 |
l) |
|
201 |
JEDIT_LOGIC="$OPTARG" |
|
202 |
;; |
|
203 |
m) |
|
204 |
if [ -z "$JEDIT_PRINT_MODE" ]; then |
|
205 |
JEDIT_PRINT_MODE="$OPTARG" |
|
206 |
else |
|
207 |
JEDIT_PRINT_MODE="$JEDIT_PRINT_MODE,$OPTARG" |
|
208 |
fi |
|
209 |
;; |
|
50405
366c4a602500
clarified build_dialog: regular up-to-date check (extra cost of approx. 5s startup for HOL);
wenzelm
parents:
50403
diff
changeset
|
210 |
n) |
69854
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
211 |
JEDIT_NO_BUILD="true" |
50405
366c4a602500
clarified build_dialog: regular up-to-date check (extra cost of approx. 5s startup for HOL);
wenzelm
parents:
50403
diff
changeset
|
212 |
;; |
63986
c7a4b03727ae
options for process policy, notably for multiprocessor machines;
wenzelm
parents:
63734
diff
changeset
|
213 |
p) |
c7a4b03727ae
options for process policy, notably for multiprocessor machines;
wenzelm
parents:
63734
diff
changeset
|
214 |
ML_PROCESS_POLICY="$OPTARG" |
c7a4b03727ae
options for process policy, notably for multiprocessor machines;
wenzelm
parents:
63734
diff
changeset
|
215 |
;; |
50373 | 216 |
s) |
53449 | 217 |
JEDIT_BUILD_MODE="system" |
50373 | 218 |
;; |
69854
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
219 |
u) |
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
220 |
JEDIT_BUILD_MODE="user" |
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
221 |
;; |
34780 | 222 |
\?) |
223 |
usage |
|
224 |
;; |
|
225 |
esac |
|
226 |
done |
|
227 |
} |
|
34581
abab3a577e10
slightly more robust treatment of options via arrays;
wenzelm
parents:
34412
diff
changeset
|
228 |
|
66906 | 229 |
eval "declare -a JAVA_ARGS=($JEDIT_JAVA_SYSTEM_OPTIONS $JEDIT_JAVA_OPTIONS)" |
34843
eb8806a2e348
define scala.home, for more robust startup of Scala tools, notably the compiler;
wenzelm
parents:
34790
diff
changeset
|
230 |
|
53446
4adb2cce5fc6
use JEDIT_OPTIONS only once (in isabelle.Main.start_jedit);
wenzelm
parents:
53445
diff
changeset
|
231 |
declare -a ARGS=() |
34333 | 232 |
|
34780 | 233 |
declare -a OPTIONS; eval "OPTIONS=($ISABELLE_JEDIT_OPTIONS)" |
234 |
getoptions "${OPTIONS[@]}" |
|
235 |
||
236 |
getoptions "$@" |
|
34333 | 237 |
shift $(($OPTIND - 1)) |
238 |
||
239 |
||
240 |
# args |
|
241 |
||
61512
933463440449
more uniform command-line for "isabelle jedit" and the isabelle.Main app wrapper;
wenzelm
parents:
61511
diff
changeset
|
242 |
while [ "$#" -gt 0 ]; do |
933463440449
more uniform command-line for "isabelle jedit" and the isabelle.Main app wrapper;
wenzelm
parents:
61511
diff
changeset
|
243 |
ARGS["${#ARGS[@]}"]="$(platform_path "$1")" |
933463440449
more uniform command-line for "isabelle jedit" and the isabelle.Main app wrapper;
wenzelm
parents:
61511
diff
changeset
|
244 |
shift |
933463440449
more uniform command-line for "isabelle jedit" and the isabelle.Main app wrapper;
wenzelm
parents:
61511
diff
changeset
|
245 |
done |
34333 | 246 |
|
247 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
248 |
## dependencies |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
249 |
|
49953 | 250 |
if [ -e "$ISABELLE_HOME/Admin/build" ]; then |
62589
b5783412bfed
prefer plain "isabelle" from PATH within Isabelle settings environment;
wenzelm
parents:
62039
diff
changeset
|
251 |
isabelle browser -b || exit $? |
57032
cf570f3ecdc1
incorporate isabelle.graphview into Pure.jar, which saves 20..30s build time;
wenzelm
parents:
56906
diff
changeset
|
252 |
"$ISABELLE_HOME/Admin/build" "$BUILD_JARS" || exit $? |
49953 | 253 |
fi |
43413 | 254 |
|
53577 | 255 |
PURE_JAR="$ISABELLE_HOME/lib/classes/Pure.jar" |
43413 | 256 |
|
43285 | 257 |
pushd "$JEDIT_HOME" >/dev/null || failed |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
258 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
259 |
JEDIT_JAR="$ISABELLE_JEDIT_BUILD_HOME/contrib/$ISABELLE_JEDIT_BUILD_VERSION/jedit.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
260 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
261 |
JEDIT_JARS=( |
56421
1ffd7eaa778b
updated to jedit_build-20140405: Code2HTML.jar, CommonControls.jar, Console.jar, kappalayout.jar, Navigator.jar, SideKick.jar, doc with jEdit manuals (ant dist-manuals);
wenzelm
parents:
56277
diff
changeset
|
262 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/Code2HTML.jar" |
1ffd7eaa778b
updated to jedit_build-20140405: Code2HTML.jar, CommonControls.jar, Console.jar, kappalayout.jar, Navigator.jar, SideKick.jar, doc with jEdit manuals (ant dist-manuals);
wenzelm
parents:
56277
diff
changeset
|
263 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/CommonControls.jar" |
53445
811db2b751ed
warm start of Isabelle/jEdit from Isabelle/Scala;
wenzelm
parents:
53441
diff
changeset
|
264 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/Console.jar" |
811db2b751ed
warm start of Isabelle/jEdit from Isabelle/Scala;
wenzelm
parents:
53441
diff
changeset
|
265 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/ErrorList.jar" |
811db2b751ed
warm start of Isabelle/jEdit from Isabelle/Scala;
wenzelm
parents:
53441
diff
changeset
|
266 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/Highlight.jar" |
56421
1ffd7eaa778b
updated to jedit_build-20140405: Code2HTML.jar, CommonControls.jar, Console.jar, kappalayout.jar, Navigator.jar, SideKick.jar, doc with jEdit manuals (ant dist-manuals);
wenzelm
parents:
56277
diff
changeset
|
267 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/kappalayout.jar" |
53883
f1c5f857df3d
include MacOSX plugin by default -- disabled by default to avoid multiplatform confusion;
wenzelm
parents:
53882
diff
changeset
|
268 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/MacOSX.jar" |
56421
1ffd7eaa778b
updated to jedit_build-20140405: Code2HTML.jar, CommonControls.jar, Console.jar, kappalayout.jar, Navigator.jar, SideKick.jar, doc with jEdit manuals (ant dist-manuals);
wenzelm
parents:
56277
diff
changeset
|
269 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/Navigator.jar" |
53445
811db2b751ed
warm start of Isabelle/jEdit from Isabelle/Scala;
wenzelm
parents:
53441
diff
changeset
|
270 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/SideKick.jar" |
811db2b751ed
warm start of Isabelle/jEdit from Isabelle/Scala;
wenzelm
parents:
53441
diff
changeset
|
271 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/idea-icons.jar" |
811db2b751ed
warm start of Isabelle/jEdit from Isabelle/Scala;
wenzelm
parents:
53441
diff
changeset
|
272 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/jsr305-2.0.0.jar" |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
273 |
) |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
274 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
275 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
276 |
# target |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
277 |
|
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
278 |
TARGET_BASE="dist/jars/Isabelle-jEdit-base.jar" |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
279 |
TARGET="dist/jars/Isabelle-jEdit.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
280 |
|
43384 | 281 |
declare -a UPDATED=() |
282 |
||
43285 | 283 |
if [ "$BUILD_JARS" = jars_fresh ]; then |
284 |
OUTDATED=true |
|
285 |
else |
|
286 |
OUTDATED=false |
|
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
287 |
if [ ! -e "$TARGET_BASE" -a ! -e "$TARGET" ]; then |
43368
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
288 |
OUTDATED=true |
43384 | 289 |
else |
290 |
if [ -n "$ISABELLE_JEDIT_BUILD_HOME" ]; then |
|
49566
66cbf8bb4693
basic integration of graphview into document model;
wenzelm
parents:
49494
diff
changeset
|
291 |
declare -a DEPS=( |
57032
cf570f3ecdc1
incorporate isabelle.graphview into Pure.jar, which saves 20..30s build time;
wenzelm
parents:
56906
diff
changeset
|
292 |
"$JEDIT_JAR" "${JEDIT_JARS[@]}" "$PURE_JAR" |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
293 |
"${SOURCES_BASE[@]}" "${RESOURCES_BASE[@]}" |
53576
793a429c63e7
maintain classpath in more elementary manner: turn ISABELLE_CLASSPATH into -classpath option, so that all jars are covered by sun.misc.Launcher.AppClassLoader (e.g. relevant for loading add-on resources);
wenzelm
parents:
53451
diff
changeset
|
294 |
"${SOURCES[@]}" "${RESOURCES[@]}" |
49566
66cbf8bb4693
basic integration of graphview into document model;
wenzelm
parents:
49494
diff
changeset
|
295 |
) |
47666
cf5fe7eb6793
pretend jedit is up-to-date if this is not a repository -- avoid accidental build attempts after touching files etc.;
wenzelm
parents:
47115
diff
changeset
|
296 |
elif [ -e "$ISABELLE_HOME/Admin/build" ]; then |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
297 |
declare -a DEPS=( |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
298 |
"$PURE_JAR" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
299 |
"${SOURCES_BASE[@]}" "${RESOURCES_BASE[@]}" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
300 |
"${SOURCES[@]}" "${RESOURCES[@]}" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
301 |
) |
43384 | 302 |
else |
47666
cf5fe7eb6793
pretend jedit is up-to-date if this is not a repository -- avoid accidental build attempts after touching files etc.;
wenzelm
parents:
47115
diff
changeset
|
303 |
declare -a DEPS=() |
43384 | 304 |
fi |
305 |
for DEP in "${DEPS[@]}" |
|
43368
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
306 |
do |
43384 | 307 |
[ ! -e "$DEP" ] && fail "Missing file: $DEP" |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
308 |
[ "$DEP" -nt "$TARGET_BASE" -o "$DEP" -nt "$TARGET" ] && { |
43384 | 309 |
OUTDATED=true |
310 |
UPDATED["${#UPDATED[@]}"]="$DEP" |
|
311 |
} |
|
43368
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
312 |
done |
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
313 |
fi |
43285 | 314 |
fi |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
315 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
316 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
317 |
# build |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
318 |
|
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
319 |
function init_resources () |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
320 |
{ |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
321 |
mkdir -p dist/classes || failed |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
322 |
cp -p -R -f "$@" dist/classes/. |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
323 |
} |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
324 |
|
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
325 |
function compile_sources () |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
326 |
{ |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
327 |
( |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
328 |
#FIXME workarounds for scalac 2.11.0 |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
329 |
export CYGWIN="nodosfilewarning" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
330 |
function stty() { :; } |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
331 |
export -f stty |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
332 |
|
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
333 |
for JAR in "$JEDIT_JAR" "${JEDIT_JARS[@]}" "$PURE_JAR" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
334 |
do |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
335 |
classpath "$JAR" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
336 |
done |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
337 |
export CLASSPATH="$(platform_path "$ISABELLE_CLASSPATH")" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
338 |
isabelle_scala scalac $ISABELLE_SCALAC_OPTIONS -d dist/classes "$@" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
339 |
) || fail "Failed to compile sources" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
340 |
} |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
341 |
|
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
342 |
function make_jar () |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
343 |
{ |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
344 |
cd dist/classes |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
345 |
isabelle_jdk jar cf "../../$1" * || failed |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
346 |
cd ../.. |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
347 |
rm -rf dist/classes |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
348 |
} |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
349 |
|
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
350 |
if [ "$OUTDATED" = true ] |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
351 |
then |
43405 | 352 |
echo "### Building Isabelle/jEdit ..." |
353 |
||
43384 | 354 |
[ "${#UPDATED[@]}" -gt 0 ] && { |
43405 | 355 |
echo "Changed files:" |
43384 | 356 |
for FILE in "${UPDATED[@]}" |
357 |
do |
|
358 |
echo " $FILE" |
|
359 |
done |
|
360 |
} |
|
361 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
362 |
[ -z "$ISABELLE_JEDIT_BUILD_HOME" ] && \ |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
363 |
fail "Unknown ISABELLE_JEDIT_BUILD_HOME -- missing auxiliary component" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
364 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
365 |
rm -rf dist || failed |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
366 |
mkdir -p dist || failed |
43287 | 367 |
|
46502
3d43d4d4d071
more uniform / portable representation of the idea of "copy_dir" (NB: cp -f dereferences symlinks on GNU/Linux, but does not on old-school Unixen including BSD/Mac OS X);
wenzelm
parents:
45665
diff
changeset
|
368 |
cp -p -R -f "$ISABELLE_JEDIT_BUILD_HOME/contrib/$ISABELLE_JEDIT_BUILD_VERSION/." dist/. |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
369 |
|
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
370 |
init_resources "${RESOURCES_BASE[@]}" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
371 |
compile_sources "${SOURCES_BASE[@]}" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
372 |
make_jar "$TARGET_BASE" |
66590 | 373 |
classpath "$PWD/$TARGET_BASE" |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
374 |
|
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
375 |
init_resources "${RESOURCES[@]}" |
43287 | 376 |
cp src/jEdit.props dist/properties/. |
46502
3d43d4d4d071
more uniform / portable representation of the idea of "copy_dir" (NB: cp -f dereferences symlinks on GNU/Linux, but does not on old-school Unixen including BSD/Mac OS X);
wenzelm
parents:
45665
diff
changeset
|
377 |
cp -p -R -f src/modes/. dist/modes/. |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
378 |
|
43391 | 379 |
perl -i -e 'while (<>) { |
69202
e0c32187916b
suppress "FreeMarker Template Language" file extension for the sake of SAD3/ForTheL;
wenzelm
parents:
68541
diff
changeset
|
380 |
if (m/FILE="ml.xml"/ or m/FILE_NAME_GLOB="...sml,ml."/ or m/FILE_NAME_GLOB="..ftl"/) { } |
55500 | 381 |
elsif (m/NAME="javacc"/) { |
62932
db12de2367ca
support ROOT0.ML as well -- independently of ROOT.ML;
wenzelm
parents:
62917
diff
changeset
|
382 |
print qq!<MODE NAME="isabelle" FILE="isabelle.xml" FILE_NAME_GLOB="{*.thy,ROOT0.ML,ROOT.ML}"/>\n\n!; |
62908 | 383 |
print qq!<MODE NAME="isabelle-ml" FILE="isabelle-ml.xml" FILE_NAME_GLOB="*.ML"/>\n\n!; |
384 |
print qq!<MODE NAME="isabelle-news" FILE="isabelle-news.xml"/>\n\n!; |
|
385 |
print qq!<MODE NAME="isabelle-options" FILE="isabelle-options.xml"/>\n\n!; |
|
386 |
print qq!<MODE NAME="isabelle-root" FILE="isabelle-root.xml" FILE_NAME_GLOB="ROOT"/>\n\n!; |
|
55500 | 387 |
print; |
388 |
} |
|
56277
c4f75e733812
separate "sml" mode, suppress old "ml" mode altogether;
wenzelm
parents:
56208
diff
changeset
|
389 |
elsif (m/NAME="sqr"/) { |
c4f75e733812
separate "sml" mode, suppress old "ml" mode altogether;
wenzelm
parents:
56208
diff
changeset
|
390 |
print qq!<MODE NAME="sml" FILE="sml.xml" FILE_NAME_GLOB="*.{sml,sig}"/>\n\n!; |
c4f75e733812
separate "sml" mode, suppress old "ml" mode altogether;
wenzelm
parents:
56208
diff
changeset
|
391 |
print; |
c4f75e733812
separate "sml" mode, suppress old "ml" mode altogether;
wenzelm
parents:
56208
diff
changeset
|
392 |
} |
55500 | 393 |
else { print; } |
394 |
}' dist/modes/catalog |
|
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
395 |
|
54660 | 396 |
cd dist |
397 |
isabelle_jdk jar xf jedit.jar |
|
54676
6b2ca4850b71
uniform use of transparent icons, as for main "apps";
wenzelm
parents:
54667
diff
changeset
|
398 |
cp "$ISABELLE_HOME/lib/logo/isabelle_transparent-32.gif" \ |
54660 | 399 |
"org/gjt/sp/jedit/icons/themes/classic/32x32/apps/isabelle.gif" || failed |
54676
6b2ca4850b71
uniform use of transparent icons, as for main "apps";
wenzelm
parents:
54667
diff
changeset
|
400 |
cp "$ISABELLE_HOME/lib/logo/isabelle_transparent-32.gif" \ |
54660 | 401 |
"org/gjt/sp/jedit/icons/themes/tango/32x32/apps/isabelle.gif" || failed |
54666
391ba1e12360
recover main entry point from d9c88171b393 -- occasionally useful with plain "java -jar jedit.jar";
wenzelm
parents:
54660
diff
changeset
|
402 |
isabelle_jdk jar cfe jedit.jar org.gjt.sp.jedit.jEdit org || failed |
54667 | 403 |
rm -rf META-INF org |
54660 | 404 |
cd .. |
405 |
||
53445
811db2b751ed
warm start of Isabelle/jEdit from Isabelle/Scala;
wenzelm
parents:
53441
diff
changeset
|
406 |
cp -p -R -f "${JEDIT_JARS[@]}" dist/jars/. || failed |
66457
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
407 |
compile_sources "${SOURCES[@]}" |
9098c36abd1a
separate base plugin for important services that should be always available, despite startup errors of the main plugin;
wenzelm
parents:
66120
diff
changeset
|
408 |
make_jar "$TARGET" |
56422 | 409 |
|
67992 | 410 |
cp "$ISABELLE_JEDIT_BUILD_HOME/doc/jedit5.5.0manual-a4.pdf" dist/doc/jedit-manual.pdf |
56422 | 411 |
cp dist/doc/CHANGES.txt dist/doc/jedit-changes |
412 |
cat > dist/doc/Contents <<EOF |
|
57338 | 413 |
Original jEdit Documentation |
67992 | 414 |
jedit-manual jEdit 5.5 User's Guide |
415 |
jedit-changes jEdit 5.5 Version History |
|
56422 | 416 |
|
417 |
EOF |
|
418 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
419 |
fi |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
420 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
421 |
popd >/dev/null |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
422 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
423 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
424 |
## main |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
425 |
|
53576
793a429c63e7
maintain classpath in more elementary manner: turn ISABELLE_CLASSPATH into -classpath option, so that all jars are covered by sun.misc.Launcher.AppClassLoader (e.g. relevant for loading add-on resources);
wenzelm
parents:
53451
diff
changeset
|
426 |
if [ "$BUILD_ONLY" = false ] |
793a429c63e7
maintain classpath in more elementary manner: turn ISABELLE_CLASSPATH into -classpath option, so that all jars are covered by sun.misc.Launcher.AppClassLoader (e.g. relevant for loading add-on resources);
wenzelm
parents:
53451
diff
changeset
|
427 |
then |
68370 | 428 |
export JEDIT_SESSION_DIRS JEDIT_LOGIC JEDIT_LOGIC_ANCESTOR JEDIT_LOGIC_REQUIREMENTS \ |
69854
cc0b3e177b49
system option "system_heaps" supersedes various command-line options for "system build mode";
wenzelm
parents:
69762
diff
changeset
|
429 |
JEDIT_LOGIC_FOCUS JEDIT_INCLUDE_SESSIONS JEDIT_PRINT_MODE JEDIT_NO_BUILD JEDIT_BUILD_MODE |
63986
c7a4b03727ae
options for process policy, notably for multiprocessor machines;
wenzelm
parents:
63734
diff
changeset
|
430 |
export JEDIT_ML_PROCESS_POLICY="$ML_PROCESS_POLICY" |
53576
793a429c63e7
maintain classpath in more elementary manner: turn ISABELLE_CLASSPATH into -classpath option, so that all jars are covered by sun.misc.Launcher.AppClassLoader (e.g. relevant for loading add-on resources);
wenzelm
parents:
53451
diff
changeset
|
431 |
classpath "$JEDIT_HOME/dist/jedit.jar" |
70220
089753519be0
more uniform Isabelle splash screen -- avoid problems with jEdit splash and Java 11 on some Linux window managers;
wenzelm
parents:
69854
diff
changeset
|
432 |
exec isabelle java -splash:"$(platform_path "$ISABELLE_HOME/lib/logo/isabelle.gif")" \ |
089753519be0
more uniform Isabelle splash screen -- avoid problems with jEdit splash and Java 11 on some Linux window managers;
wenzelm
parents:
69854
diff
changeset
|
433 |
"${JAVA_ARGS[@]}" isabelle.Main "${ARGS[@]}" |
50416
2e1b47e22fc6
more rigorous "build only" mode: avoid build dialog of logic image and its potential need for GUI display;
wenzelm
parents:
50405
diff
changeset
|
434 |
fi |