# HG changeset patch # User wenzelm # Date 1378546563 -7200 # Node ID 8181bc357dc44c62d08f630e488b185ac08bc6a7 # Parent fb74a9cb699cb9f7b7a2d3cab33b11f9651976e1 more portable access to icon -- avoid Isabelle_System which is not yet initialized in bootstrap; diff -r fb74a9cb699c -r 8181bc357dc4 src/Pure/System/cygwin_init.scala --- a/src/Pure/System/cygwin_init.scala Sat Sep 07 11:28:30 2013 +0200 +++ b/src/Pure/System/cygwin_init.scala Sat Sep 07 11:36:03 2013 +0200 @@ -25,7 +25,7 @@ def main_frame(isabelle_home: String, continue: Int => Unit) = new MainFrame { title = "Isabelle system initialization" - iconImage = new ImageIcon(isabelle_home + "\\lib\\logo\\isabelle.gif").getImage + iconImage = GUI.isabelle_image() val layout_panel = new BorderPanel contents = layout_panel diff -r fb74a9cb699c -r 8181bc357dc4 src/Pure/System/gui.scala --- a/src/Pure/System/gui.scala Sat Sep 07 11:28:30 2013 +0200 +++ b/src/Pure/System/gui.scala Sat Sep 07 11:36:03 2013 +0200 @@ -114,7 +114,7 @@ /* icon */ def isabelle_icon(): ImageIcon = - new ImageIcon(Isabelle_System.platform_path(Path.explode("~~/lib/logo/isabelle.gif"))) + new ImageIcon(getClass.getClassLoader.getResource("isabelle/isabelle.gif")) def isabelle_image(): Image = isabelle_icon().getImage } diff -r fb74a9cb699c -r 8181bc357dc4 src/Pure/build-jars --- a/src/Pure/build-jars Sat Sep 07 11:28:30 2013 +0200 +++ b/src/Pure/build-jars Sat Sep 07 11:36:03 2013 +0200 @@ -232,6 +232,8 @@ mkdir -p "$(dirname "$CHARSET_SERVICE")" echo isabelle.Isabelle_Charset_Provider > "$CHARSET_SERVICE" + cp "$ISABELLE_HOME/lib/logo/isabelle.gif" isabelle/. + isabelle_jdk jar cfe "$(jvmpath "$TARGET")" isabelle.GUI_Setup META-INF isabelle || \ fail "Failed to produce $TARGET"