This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: MakeDefaultMimeTypes fix


I'm not sure if we use this any more, but it doesn't lex properly.
Fixed uglily as appended.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* scripts/MakeDefaultMimeTypes.java: Use \n, not
	backslash-newline.

Index: scripts/MakeDefaultMimeTypes.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/scripts/MakeDefaultMimeTypes.java,v
retrieving revision 1.2
diff -u -r1.2 MakeDefaultMimeTypes.java
--- scripts/MakeDefaultMimeTypes.java 7 Mar 2000 19:55:28 -0000 1.2
+++ scripts/MakeDefaultMimeTypes.java 8 Jan 2004 05:17:41 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000  Free Software Foundation
+/* Copyright (C) 2000, 2003  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -36,21 +36,7 @@
       fatal ("error reading " + args[0]);
     }
 
-    System.out.println ("// Do not edit this file!  Create a new version with MakeDefaultMimeTypes.\
-\
-/* Copyright (C) 2000  Free Software Foundation\
-\
-   This file is part of libgcj.\
-\
-This software is copyrighted work licensed under the terms of the\
-Libgcj License.  Please consult the file \"LIBGCJ_LICENSE\" for\
-details.  */\
-\
-package gnu.gcj.io; \
-\
-public class DefaultMimeTypes\
-{\
-  public static final String[] types = {");
+    System.out.println ("// Do not edit this file!  Create a new version with MakeDefaultMimeTypes.\n\n/* Copyright (C) 2000  Free Software Foundation\n\n   This file is part of libgcj.\n\nThis software is copyrighted work licensed under the terms of the\nLibgcj License.  Please consult the file \"LIBGCJ_LICENSE\" for\ndetails.  */\n\npackage gnu.gcj.io; \n\npublic class DefaultMimeTypes\n{\n  public static final String[] types = {");
 
     Enumeration keys = mime_table.keys();
     Enumeration values = mime_table.elements();
@@ -85,9 +71,7 @@
       }
     
     // Append last element with closing bracket
-    result.append("  };\
-}\
-");
+    result.append("  };\n}\n");
     System.out.println(result);
   }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]