Setup.java revision 3646
2362N/A * Copyright (c) 2004, 2005, 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. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/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 0N/A * sub-directory name. 0N/A * Write the name of the boot dir to "boot.dir" 0N/A // language names taken from java.util.Locale.getDisplayLanguage for the respective language 0N/A private static final String arabic =
"\u0627\u0644\u0639\u0631\u0628\u064a\u0629";
0N/A private static final String russian =
"\u0440\u0443\u0441\u0441\u043A\u0438\u0439";
0N/A private static final String greek =
"\u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac";
0N/A // Mapping from main platform encodings to language names 0N/A // for Unix and Windows, respectively. Use empty suffix 0N/A // for Windows encodings where OEM encoding differs. 0N/A // Use null if encoding isn't used.