1 /* 2 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /** 25 * Holds the file paths to the Unicode Character Database source files. 26 * Paths to the source files in the "make" directory are relative, and 27 * subject to change due to future repository structure re-org. 28 */ 29 30 import java.nio.file.Path; 31 import java.nio.file.Paths; 32 33 public class UCDFiles { 34 public static Path UCD_DIR = Paths.get( 35 System.getProperty("test.root"), "..", "..", "make", "data", "unicodedata"); 36 37 public static Path BLOCKS = 38 UCD_DIR.resolve("Blocks.txt"); 39 public static Path DERIVED_PROPS = 40 UCD_DIR.resolve("DerivedCoreProperties.txt"); 41 public static Path GRAPHEME_BREAK_PROPERTY = 42 UCD_DIR.resolve("auxiliary").resolve("GraphemeBreakProperty.txt"); 43 public static Path GRAPHEME_BREAK_TEST = 44 UCD_DIR.resolve("auxiliary").resolve("GraphemeBreakTest.txt"); 45 public static Path NORMALIZATION_TEST = 46 UCD_DIR.resolve("NormalizationTest.txt"); 47 public static Path PROP_LIST = 48 UCD_DIR.resolve("PropList.txt"); 49 public static Path PROPERTY_VALUE_ALIASES = 50 UCD_DIR.resolve("PropertyValueAliases.txt"); 51 public static Path SCRIPTS = 52 UCD_DIR.resolve("Scripts.txt"); 53 public static Path SPECIAL_CASING = 54 UCD_DIR.resolve("SpecialCasing.txt"); 55 public static Path UNICODE_DATA = 56 UCD_DIR.resolve("UnicodeData.txt"); 57 public static Path EMOJI_DATA = 58 UCD_DIR.resolve("emoji-data.txt"); 59 }