private static final String DIR_CHECKER = "checker";
private static final String DIR_DOCUMENTS = "documents";
// PLATFORM directory format: <platform>-<majorNumber>.<minorNumber>
- private static final String REG_PROFILE = "[a-zA-Z\\-]+";
- private static final String REG_VERSION = "(((\\d)|([1-9]\\d{2,}))\\.)((\\d)|([1-9]\\d{2,}))";
- private static final String PLATFORM_SEPARATOR = "-";
- private static final String REG_DIR_PLATFORM = REG_PROFILE + PLATFORM_SEPARATOR + REG_VERSION;
+ public static final String REG_PROFILE = "[a-zA-Z\\-]+";
+ public static final String REG_VERSION = "(((\\d)|([1-9]\\d{2,}))\\.)((\\d)|([1-9]\\d{2,}))";
+ public static final String PLATFORM_SEPARATOR = "-";
+ public static final String REG_DIR_PLATFORM = REG_PROFILE + PLATFORM_SEPARATOR + REG_VERSION;
public static final String FORMAT_PLATFORM_NAME = "%s-%s";
private final static String SDKSUFFIX = DIR_SDK_DATA + File.separatorChar + "tizensdkpath";
String path = null;
String version = major + "." + minor;
+ if ( !version.matches(InstallPathConfig.REG_VERSION) ) {
+ throw new Exception("Failed to get a device's profile version");
+ }
+
String profile = platformInfo.getProfileName().split("-")[0];
ProfileInfo profileInfo = InstallPathConfig.getProfileInfo(profile);