Setup.java revision 3909
0N/A * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Used by BootClassPath.sh. 0N/A * Given a "work directory" this class creates a sub-directory with a 0N/A * name that uses locale specific characters. It the creates a jar 0N/A * manifest file in the work directory with a Boot-Class-Path that 0N/A * encodes the created sub-directory. Finally it creates a file 0N/A * "boot.dir" in the work directory with the name of the sub-directory. 0N/A * Create sub-directory 0N/A * Create manifest file with Boot-Class-Path encoding the * Write the name of the boot dir to "boot.dir" // language names taken from java.util.Locale.getDisplayLanguage for the respective language private static final String arabic =
"\u0627\u0644\u0639\u0631\u0628\u064a\u0629";
private static final String russian =
"\u0440\u0443\u0441\u0441\u043A\u0438\u0439";
private static final String hindi =
"\u0939\u093f\u0902\u0926\u0940";
private static final String greek =
"\u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac";
private static final String hebrew =
"\u05e2\u05d1\u05e8\u05d9\u05ea";
private static final String czech =
"\u010de\u0161tina";
private static final String thai =
"\u0e44\u0e17\u0e22";
// Mapping from main platform encodings to language names // for Unix and Windows, respectively. Use empty suffix // for Windows encodings where OEM encoding differs. // Use null if encoding isn't used. {
"windows-1256",
null,
"" },
{
"windows-1251",
null,
"" },
{
"windows-1253",
null,
"" },
{
"windows-1255",
null,
"" },
{
"windows-1257",
null,
"" },
{
"windows-1250",
null,
"" },
{
"windows-1254",
null,
"" },
{
"windows-1252",
null,
"" },