< prev index next >

src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinAppBundler.java

Print this page




   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jpackage.internal;
  27 
  28 import java.io.ByteArrayOutputStream;
  29 import java.io.File;
  30 import java.io.IOException;
  31 import java.io.PrintStream;
  32 import java.nio.file.Path;
  33 import java.text.MessageFormat;
  34 import java.util.Arrays;
  35 import java.util.Collection;
  36 import java.util.Map;
  37 import java.util.ResourceBundle;
  38 
  39 import static jdk.jpackage.internal.WindowsBundlerParam.*;
  40 import static jdk.jpackage.internal.WinMsiBundler.WIN_APP_IMAGE;
  41 
  42 public class WinAppBundler extends AbstractImageBundler {
  43 
  44     private static final ResourceBundle I18N = ResourceBundle.getBundle(
  45             "jdk.jpackage.internal.resources.WinResources");
  46 
  47     static final BundlerParamInfo<File> ICON_ICO =
  48             new StandardBundlerParam<>(
  49             "icon.ico",
  50             File.class,
  51             params -> {




   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jpackage.internal;
  27 

  28 import java.io.File;


  29 import java.nio.file.Path;
  30 import java.text.MessageFormat;
  31 import java.util.Arrays;
  32 import java.util.Collection;
  33 import java.util.Map;
  34 import java.util.ResourceBundle;
  35 
  36 import static jdk.jpackage.internal.WindowsBundlerParam.*;
  37 import static jdk.jpackage.internal.WinMsiBundler.WIN_APP_IMAGE;
  38 
  39 public class WinAppBundler extends AbstractImageBundler {
  40 
  41     private static final ResourceBundle I18N = ResourceBundle.getBundle(
  42             "jdk.jpackage.internal.resources.WinResources");
  43 
  44     static final BundlerParamInfo<File> ICON_ICO =
  45             new StandardBundlerParam<>(
  46             "icon.ico",
  47             File.class,
  48             params -> {


< prev index next >