< prev index next >

test/jdk/tools/jpackage/linux/base/BundleNameBase.java

Print this page

        

*** 56,71 **** if (folder.exists()) { throw new AssertionError("Error: " + folder.getAbsolutePath() + " exist"); } } ! private static void init(String name, String ext) { TEST_NAME = name; BUNDLE_NAME = "jpackage-test-bundle-name"; EXT = ext; if (EXT.equals("rpm")) { ! OUTPUT = "output" + File.separator + BUNDLE_NAME + "-1.0-1.x86_64." + EXT; } else { OUTPUT = "output" + File.separator + BUNDLE_NAME + "-1.0." + EXT; } CMD = new String[]{ "--package-type", EXT, --- 56,71 ---- if (folder.exists()) { throw new AssertionError("Error: " + folder.getAbsolutePath() + " exist"); } } ! private static void init(String name, String ext) throws Exception { TEST_NAME = name; BUNDLE_NAME = "jpackage-test-bundle-name"; EXT = ext; if (EXT.equals("rpm")) { ! OUTPUT = "output" + File.separator + BUNDLE_NAME + "-1.0-1." + Base.getRpmArch() + "." + EXT; } else { OUTPUT = "output" + File.separator + BUNDLE_NAME + "-1.0." + EXT; } CMD = new String[]{ "--package-type", EXT,
< prev index next >