< prev index next >

test/jdk/tools/jpackage/createinstaller/windows/base/JPackageCreateInstallerWinRegistryNameBase.java

Print this page




 134             out.println("extension=" + TEST_EXT);
 135             out.println("mime-type=application/" + TEST_EXT);
 136             out.println("description=jpackage test extention");
 137         }
 138     }
 139 
 140     private static void init(String name, String ext) {
 141         TEST_NAME = name;
 142         EXT = ext;
 143         TEST_EXT = "jptest2";
 144         WIN_REGISTRY_NAME = "JPWINTESTREGISTRYNAME";
 145         OUTPUT = "output" + File.separator + TEST_NAME + "-1.0." + EXT;
 146         CMD = new String[]{
 147             "create-installer",
 148             "--installer-type", EXT,
 149             "--input", "input",
 150             "--output", "output",
 151             "--name", TEST_NAME,
 152             "--main-jar", "hello.jar",
 153             "--main-class", "Hello",
 154             "--overwrite",
 155             "--files", "hello.jar",
 156             "--file-associations", "fa.properties",
 157             "--win-registry-name", WIN_REGISTRY_NAME};
 158     }
 159 
 160     public static void run(String name, String ext) throws Exception {
 161         init(name, ext);
 162 
 163         if (JPackageInstallerHelper.isVerifyInstall()) {
 164             verifyInstall();
 165         } else if (JPackageInstallerHelper.isVerifyUnInstall()) {
 166             verifyUnInstall();
 167         } else {
 168             JPackageHelper.createHelloInstallerJar();
 169             createFileAssociationsProperties();
 170             testCreateInstaller();
 171         }
 172     }
 173 }


 134             out.println("extension=" + TEST_EXT);
 135             out.println("mime-type=application/" + TEST_EXT);
 136             out.println("description=jpackage test extention");
 137         }
 138     }
 139 
 140     private static void init(String name, String ext) {
 141         TEST_NAME = name;
 142         EXT = ext;
 143         TEST_EXT = "jptest2";
 144         WIN_REGISTRY_NAME = "JPWINTESTREGISTRYNAME";
 145         OUTPUT = "output" + File.separator + TEST_NAME + "-1.0." + EXT;
 146         CMD = new String[]{
 147             "create-installer",
 148             "--installer-type", EXT,
 149             "--input", "input",
 150             "--output", "output",
 151             "--name", TEST_NAME,
 152             "--main-jar", "hello.jar",
 153             "--main-class", "Hello",

 154             "--files", "hello.jar",
 155             "--file-associations", "fa.properties",
 156             "--win-registry-name", WIN_REGISTRY_NAME};
 157     }
 158 
 159     public static void run(String name, String ext) throws Exception {
 160         init(name, ext);
 161 
 162         if (JPackageInstallerHelper.isVerifyInstall()) {
 163             verifyInstall();
 164         } else if (JPackageInstallerHelper.isVerifyUnInstall()) {
 165             verifyUnInstall();
 166         } else {
 167             JPackageHelper.createHelloInstallerJar();
 168             createFileAssociationsProperties();
 169             testCreateInstaller();
 170         }
 171     }
 172 }
< prev index next >