示例#1
0
  @Override
  public void createInstaller() throws Exception {
    // preliminary work
    info.setInstallerBase(compilerData.getOutput().replaceAll(".jar", ""));

    sendStart();

    writeInstaller();

    // Finish up. closeAlways is a hack for pack compressions other than
    // default. Some of it (e.g. BZip2) closes the slave of it also.
    // But this should not be because the jar stream should be open
    // for the next pack. Therefore an own JarOutputStream will be used
    // which close method will be blocked.
    getInstallerJar().closeAlways();

    sendStop();
  }
示例#2
0
  public void createInstaller() throws Exception {
    // preliminary work
    info.setInstallerBase(compilerData.getOutput().replaceAll(".jar", ""));

    packJarsSeparate = (info.getWebDirURL() != null);

    // primary (possibly only) jar. -1 indicates primary

    sendStart();

    writeInstaller();

    // Finish up. closeAlways is a hack for pack compressions other than
    // default. Some of it (e.g. BZip2) closes the slave of it also.
    // But this should not be because the jar stream should be open
    // for the next pack. Therefore an own JarOutputStream will be used
    // which close method will be blocked.
    primaryJarStream.closeAlways();

    sendStop();
  }