equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
36 */ |
36 */ |
37 public class T7007157 { |
37 public class T7007157 { |
38 |
38 |
39 public static void main(String... args) throws IOException { |
39 public static void main(String... args) throws IOException { |
40 File sdkHome = Utils.JavaSDK; |
40 File sdkHome = Utils.JavaSDK; |
41 File testJar = new File(new File(sdkHome, "lib"), "tools.jar"); |
41 File testJar = new File("test.jar"); |
|
42 Utils.jar("cvf", testJar.getName(), Utils.TEST_CLS_DIR.getAbsolutePath()); |
42 JarFile jarFile = new JarFile(testJar); |
43 JarFile jarFile = new JarFile(testJar); |
43 File packFile = new File("foo.pack"); |
44 File packFile = new File("foo.pack"); |
44 Pack200.Packer packer = Pack200.newPacker(); |
45 Pack200.Packer packer = Pack200.newPacker(); |
45 Map<String, String> p = packer.properties(); |
46 Map<String, String> p = packer.properties(); |
46 // Take the time optimization vs. space |
47 // Take the time optimization vs. space |