Makefile.in: Regenerate.
authorThomas Fitzsimmons <fitzsim@redhat.com>
Thu, 3 May 2007 19:02:52 +0000 (19:02 +0000)
committerThomas Fitzsimmons <fitzsim@gcc.gnu.org>
Thu, 3 May 2007 19:02:52 +0000 (19:02 +0000)
2007-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237304
* Makefile.in: Regenerate.
* scripts/makemake.tcl (scan_directory): Treat default.css as a
property file.
* classpath/javax/swing/text/html/default.css: Move to...
* classpath/resource/javax/swing/text/html/default.css: New file.
* classpath/javax/swing/text/html/HTMLEditorKit.java
(getStyleSheet): Throw RuntimeException when style loading fails.
* sources.am (property_files): Add
classpath/resource/javax/swing/text/html/default.css.

From-SVN: r124387

libjava/ChangeLog
libjava/Makefile.in
libjava/classpath/javax/swing/text/html/HTMLEditorKit.java
libjava/classpath/javax/swing/text/html/default.css [deleted file]
libjava/classpath/resource/javax/swing/text/html/default.css [new file with mode: 0644]
libjava/scripts/makemake.tcl
libjava/sources.am

index 5c6ad81e1b342e8651a82272eecef3bebc9e4fbd..9607a3dcd89982d1bc707c7676a15af6d3cd78a8 100644 (file)
@@ -1,3 +1,16 @@
+2007-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237304
+       * Makefile.in: Regenerate.
+       * scripts/makemake.tcl (scan_directory): Treat default.css as a
+       property file.
+       * classpath/javax/swing/text/html/default.css: Move to...
+       * classpath/resource/javax/swing/text/html/default.css: New file.
+       * classpath/javax/swing/text/html/HTMLEditorKit.java
+       (getStyleSheet): Throw RuntimeException when style loading fails.
+       * sources.am (property_files): Add
+       classpath/resource/javax/swing/text/html/default.css.
+
 2007-05-02  Tom Tromey  <tromey@redhat.com>
 
        https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=238755
index b454a4ae7bc87bba5e19ece186f7720bdb89fcf1..369c1913222b7945fe25691a9abddf5d78969537 100644 (file)
@@ -7786,6 +7786,7 @@ property_files = \
   classpath/resource/gnu/javax/security/auth/callback/MessagesBundle.properties \
   classpath/resource/java/util/iso4217.properties \
   classpath/resource/javax/imageio/plugins/jpeg/MessagesBundle.properties \
+  classpath/resource/javax/swing/text/html/default.css \
   classpath/resource/org/ietf/jgss/MessagesBundle.properties \
   classpath/resource/sun/rmi/rmic/messages.properties \
   classpath/resource/com/sun/tools/javac/messages.properties \
index 0ede1c74ed939cc0526d56054d3c0deb99ff32ad..cc61889d76fdf038f7c3fe1752a4d02992d917dc 100644 (file)
@@ -1462,7 +1462,7 @@ public class HTMLEditorKit
           }
         catch (IOException ex)
           {
-            // No style available.
+            throw new RuntimeException("No style available.", ex);
           }
       }
     return styleSheet;
diff --git a/libjava/classpath/javax/swing/text/html/default.css b/libjava/classpath/javax/swing/text/html/default.css
deleted file mode 100644 (file)
index f2a44f8..0000000
+++ /dev/null
@@ -1,378 +0,0 @@
-/* default.css --
-   Copyright (C) 2005 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING.  If not, write to the
-Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from
-or based on this library.  If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so.  If you do not wish to do so, delete this
-exception statement from your version. */
-
-nobr {
-  white-space: nowrap;
-}
-
-ol {
-  margin-right: 50px;
-  margin-top: 10px;
-  margin-left: 50px;
-  margin-bottom: 10px;
-  list-style-type: decimal;
-}
-
-u {
-  text-decoration: underline;
-}
-
-s {
-  text-decoration: line-through;
-}
-
-p {
-  margin-top: 15px;
-}
-
-dd p {
-  margin-left: 0px;
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-ol li p {
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-
-address {
-  font-style: italic;
-  color: blue;
-}
-
-i {
-  font-style: italic;
-}
-
-h6 {
-  margin-top: 10px;
-  font-size: xx-small;
-  font-weight: bold;
-  margin-bottom: 10px;
-}
-
-h5 {  
-  margin-top: 10px;
-  font-size: x-small;
-  font-weight: bold;
-  margin-bottom: 10px;
-}
-
-h4 {  
-  margin-top: 10px;
-  font-size: small;
-  font-weight: bold;
-  margin-bottom: 10px;
-}
-
-h3 {  
-  margin-top: 10px;
-  font-size: medium;
-  font-weight: bold;
-  margin-bottom: 10px;
-}
-
-dir li p {  
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-h2 {  
-  margin-top: 10px;
-  font-size: large;
-  font-weight: bold;
-  margin-bottom: 10px;
-}
-
-b { 
-  font-weight: bold;
-}
-
-h1 {  
-  margin-top: 10px;
-  font-size: x-large;
-  font-weight: bold;
-  margin-bottom: 10px;
-}
-
-caption {  
-  text-align: center;
-  caption-side: top;
-}
-
-a {  
-  text-decoration: underline;
-  color: blue;
-}
-
-ul li ul li ul li {  
-  margin-left: 0px;
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-menu {  
-  margin-right: 40px;
-  margin-top: 10px;
-  margin-left: 40px;
-  margin-bottom: 10px;
-}
-
-menu li p {  
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-sup {  
-  vertical-align: super;
-}
-
-body {
-  margin-right: 0px;  
-  margin-left: 0px;
-  font-family: Serif;
-  font-size: 14pt;
-  font-weight: normal;
-  color: black;
-}
-
-ul li ul li ul {  
-  margin-right: 25px;
-  margin-left: 25px;
-  list-style-type: square;
-}
-
-blockquote {
-  margin-right: 35px;
-  margin-left: 35px; 
-  margin-top: 5px;
-  margin-bottom: 5px;
-}
-
-samp {  
-  font-family: Monospaced;
-  font-size: small;
-}
-
-cite {  
-  font-style: italic;
-}
-
-sub {  
-  vertical-align: sub;
-}
-
-em {  
-  font-style: italic;
-}
-
-ul li p { 
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-ul li ul li {
-  margin-right: 0px;
-  margin-left: 0px;  
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-var {
-  font-style: italic;
-  font-weight: bold;
-}
-
-table {  
-  border-color: Gray;
-  border-style: outset;
-}
-
-dfn {  
-  font-style: italic;
-}
-
-menu li {
-  margin-right: 0px;
-  margin-left: 0px;
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-strong { 
-  font-weight: bold;
-}
-
-ul {
-  margin-right: 50px;
-  margin-top: 10px;
-  margin-left: 50px;
-  margin-bottom: 10px;
-  list-style-type: disc;
-}
-
-center { 
-  text-align: center;
-}
-
-ul li ul {  
-  margin-right: 25px;
-  margin-left: 25px;
-  list-style-type: circle;
-}
-
-kbd {
-  font-family: Monospaced;
-  font-size: small;
-}
-
-dir li {
-  margin-right: 0px;
-  margin-left: 0px;
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-ul li menu {
-  margin-right: 25px;
-  margin-left: 25px;
-  list-style-type: circle;
-}
-
-dt {
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-ol li {
-  margin-right: 0px;
-  margin-left: 0px;
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-li p {  
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-default {  
-}
-
-strike {  
-  text-decoration: line-through;
-}
-
-dl {
-  margin-left: 0px;
-  margin-top: 10px;
-  margin-bottom: 10px;
-}
-
-tt {
-  font-family: Monospaced;
-}
-
-ul li {
-  margin-right: 0px;
-  margin-left: 0px;
-  margin-top: 0px;
-  margin-bottom: 0px;
-}
-
-dir { 
-  margin-right: 40px;
-  margin-top: 10px;
-  margin-left: 40px;
-  margin-bottom: 10px;
-}
-
-tr {  
-  text-align: left;
-}
-
-pre p { 
-  margin-top: 0px;
-}
-
-dd {  
-  margin-right: 40px;
-  margin-top: 0px;
-  margin-left: 40px;
-  margin-bottom: 0px;
-}
-
-th {
-  padding-bottom: 3px;
-  text-align: center;
-  padding-top: 3px;
-  padding-right: 3px;
-  padding-left: 3px;
-  font-weight: bold;
-  border-color: Gray;
-  border-style: inset;
-}
-
-pre {  
-  margin-top: 5px;
-  font-family: Monospaced;
-  margin-bottom: 5px;
-}
-
-td {
-  padding-bottom: 3px;
-  padding-top: 3px;
-  padding-right: 3px;
-  padding-left: 3px;
-  border-color: Gray;
-  border-style: inset;
-}
-
-code {
-  font-family: Monospaced;
-  font-size: small;
-}
-
-small {  
-  font-size: x-small;
-}
-
-big { 
-  font-size: x-large;
-}
diff --git a/libjava/classpath/resource/javax/swing/text/html/default.css b/libjava/classpath/resource/javax/swing/text/html/default.css
new file mode 100644 (file)
index 0000000..f2a44f8
--- /dev/null
@@ -0,0 +1,378 @@
+/* default.css --
+   Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+nobr {
+  white-space: nowrap;
+}
+
+ol {
+  margin-right: 50px;
+  margin-top: 10px;
+  margin-left: 50px;
+  margin-bottom: 10px;
+  list-style-type: decimal;
+}
+
+u {
+  text-decoration: underline;
+}
+
+s {
+  text-decoration: line-through;
+}
+
+p {
+  margin-top: 15px;
+}
+
+dd p {
+  margin-left: 0px;
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+ol li p {
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+
+address {
+  font-style: italic;
+  color: blue;
+}
+
+i {
+  font-style: italic;
+}
+
+h6 {
+  margin-top: 10px;
+  font-size: xx-small;
+  font-weight: bold;
+  margin-bottom: 10px;
+}
+
+h5 {  
+  margin-top: 10px;
+  font-size: x-small;
+  font-weight: bold;
+  margin-bottom: 10px;
+}
+
+h4 {  
+  margin-top: 10px;
+  font-size: small;
+  font-weight: bold;
+  margin-bottom: 10px;
+}
+
+h3 {  
+  margin-top: 10px;
+  font-size: medium;
+  font-weight: bold;
+  margin-bottom: 10px;
+}
+
+dir li p {  
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+h2 {  
+  margin-top: 10px;
+  font-size: large;
+  font-weight: bold;
+  margin-bottom: 10px;
+}
+
+b { 
+  font-weight: bold;
+}
+
+h1 {  
+  margin-top: 10px;
+  font-size: x-large;
+  font-weight: bold;
+  margin-bottom: 10px;
+}
+
+caption {  
+  text-align: center;
+  caption-side: top;
+}
+
+a {  
+  text-decoration: underline;
+  color: blue;
+}
+
+ul li ul li ul li {  
+  margin-left: 0px;
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+menu {  
+  margin-right: 40px;
+  margin-top: 10px;
+  margin-left: 40px;
+  margin-bottom: 10px;
+}
+
+menu li p {  
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+sup {  
+  vertical-align: super;
+}
+
+body {
+  margin-right: 0px;  
+  margin-left: 0px;
+  font-family: Serif;
+  font-size: 14pt;
+  font-weight: normal;
+  color: black;
+}
+
+ul li ul li ul {  
+  margin-right: 25px;
+  margin-left: 25px;
+  list-style-type: square;
+}
+
+blockquote {
+  margin-right: 35px;
+  margin-left: 35px; 
+  margin-top: 5px;
+  margin-bottom: 5px;
+}
+
+samp {  
+  font-family: Monospaced;
+  font-size: small;
+}
+
+cite {  
+  font-style: italic;
+}
+
+sub {  
+  vertical-align: sub;
+}
+
+em {  
+  font-style: italic;
+}
+
+ul li p { 
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+ul li ul li {
+  margin-right: 0px;
+  margin-left: 0px;  
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+var {
+  font-style: italic;
+  font-weight: bold;
+}
+
+table {  
+  border-color: Gray;
+  border-style: outset;
+}
+
+dfn {  
+  font-style: italic;
+}
+
+menu li {
+  margin-right: 0px;
+  margin-left: 0px;
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+strong { 
+  font-weight: bold;
+}
+
+ul {
+  margin-right: 50px;
+  margin-top: 10px;
+  margin-left: 50px;
+  margin-bottom: 10px;
+  list-style-type: disc;
+}
+
+center { 
+  text-align: center;
+}
+
+ul li ul {  
+  margin-right: 25px;
+  margin-left: 25px;
+  list-style-type: circle;
+}
+
+kbd {
+  font-family: Monospaced;
+  font-size: small;
+}
+
+dir li {
+  margin-right: 0px;
+  margin-left: 0px;
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+ul li menu {
+  margin-right: 25px;
+  margin-left: 25px;
+  list-style-type: circle;
+}
+
+dt {
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+ol li {
+  margin-right: 0px;
+  margin-left: 0px;
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+li p {  
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+default {  
+}
+
+strike {  
+  text-decoration: line-through;
+}
+
+dl {
+  margin-left: 0px;
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+
+tt {
+  font-family: Monospaced;
+}
+
+ul li {
+  margin-right: 0px;
+  margin-left: 0px;
+  margin-top: 0px;
+  margin-bottom: 0px;
+}
+
+dir { 
+  margin-right: 40px;
+  margin-top: 10px;
+  margin-left: 40px;
+  margin-bottom: 10px;
+}
+
+tr {  
+  text-align: left;
+}
+
+pre p { 
+  margin-top: 0px;
+}
+
+dd {  
+  margin-right: 40px;
+  margin-top: 0px;
+  margin-left: 40px;
+  margin-bottom: 0px;
+}
+
+th {
+  padding-bottom: 3px;
+  text-align: center;
+  padding-top: 3px;
+  padding-right: 3px;
+  padding-left: 3px;
+  font-weight: bold;
+  border-color: Gray;
+  border-style: inset;
+}
+
+pre {  
+  margin-top: 5px;
+  font-family: Monospaced;
+  margin-bottom: 5px;
+}
+
+td {
+  padding-bottom: 3px;
+  padding-top: 3px;
+  padding-right: 3px;
+  padding-left: 3px;
+  border-color: Gray;
+  border-style: inset;
+}
+
+code {
+  font-family: Monospaced;
+  font-size: small;
+}
+
+small {  
+  font-size: x-small;
+}
+
+big { 
+  font-size: x-large;
+}
index 0fc06fce15d2934a1879a0b88bdb71fee7ca534a..ab8a85d2c29ae751e3ad1c1788d27e645f10d946 100755 (executable)
@@ -228,6 +228,9 @@ proc scan_directory {basedir subdir} {
        # We assume there aren't any overrides.
        lappend properties_files $basedir/$subdir/$file
       }
+    } elseif {[string match *.css $file]} {
+       # Special case for default.css needed by javax.swing.text.html.
+       lappend properties_files $basedir/$subdir/$file
     } elseif {[file isdirectory $file]} {
       lappend subdirs $subdir/$file
     } elseif {$subdir == "META-INF/services"} {
index de98ee6ce103b825e50112de780cd681ddaae0ea..b02dfb709dc8d4c748f9c1baee5a2ffe7f50142f 100644 (file)
@@ -9005,6 +9005,7 @@ property_files = \
   classpath/resource/gnu/javax/security/auth/callback/MessagesBundle.properties \
   classpath/resource/java/util/iso4217.properties \
   classpath/resource/javax/imageio/plugins/jpeg/MessagesBundle.properties \
+  classpath/resource/javax/swing/text/html/default.css \
   classpath/resource/org/ietf/jgss/MessagesBundle.properties \
   classpath/resource/sun/rmi/rmic/messages.properties \
   classpath/resource/com/sun/tools/javac/messages.properties \