13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /*
26 * @test
27 * @summary Class-Path: attribute in MANIFEST file
28 * @requires vm.cds
29 * @library /test/lib
30 * @modules java.base/jdk.internal.misc
31 * java.management
32 * jdk.jartool/sun.tools.jar
33 * @run main ClassPathAttr
34 */
35
36 import jdk.test.lib.process.OutputAnalyzer;
37 import java.io.File;
38 import java.nio.file.Files;
39 import java.nio.file.FileAlreadyExistsException;
40 import java.nio.file.StandardCopyOption;
41 import java.nio.file.Paths;
42
43
44 public class ClassPathAttr {
45
46 public static void main(String[] args) throws Exception {
47 buildCpAttr("cpattr1", "cpattr1.mf", "CpAttr1", "CpAttr1");
48 buildCpAttr("cpattr1_long", "cpattr1_long.mf", "CpAttr1", "CpAttr1");
49 buildCpAttr("cpattr2", "cpattr2.mf", "CpAttr2", "CpAttr2");
50 buildCpAttr("cpattr3", "cpattr3.mf", "CpAttr3", "CpAttr2", "CpAttr3");
51 buildCpAttr("cpattr4", "cpattr4.mf", "CpAttr4",
52 "CpAttr2", "CpAttr3", "CpAttr4", "CpAttr5");
53 buildCpAttr("cpattr5_123456789_223456789_323456789_423456789_523456789_623456789", "cpattr5_extra_long.mf", "CpAttr5", "CpAttr5");
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /*
26 * @test
27 * @summary Class-Path: attribute in MANIFEST file
28 * @requires vm.cds
29 * @library /test/lib
30 * @modules java.base/jdk.internal.misc
31 * java.management
32 * jdk.jartool/sun.tools.jar
33 * @run driver ClassPathAttr
34 */
35
36 import jdk.test.lib.process.OutputAnalyzer;
37 import java.io.File;
38 import java.nio.file.Files;
39 import java.nio.file.FileAlreadyExistsException;
40 import java.nio.file.StandardCopyOption;
41 import java.nio.file.Paths;
42
43
44 public class ClassPathAttr {
45
46 public static void main(String[] args) throws Exception {
47 buildCpAttr("cpattr1", "cpattr1.mf", "CpAttr1", "CpAttr1");
48 buildCpAttr("cpattr1_long", "cpattr1_long.mf", "CpAttr1", "CpAttr1");
49 buildCpAttr("cpattr2", "cpattr2.mf", "CpAttr2", "CpAttr2");
50 buildCpAttr("cpattr3", "cpattr3.mf", "CpAttr3", "CpAttr2", "CpAttr3");
51 buildCpAttr("cpattr4", "cpattr4.mf", "CpAttr4",
52 "CpAttr2", "CpAttr3", "CpAttr4", "CpAttr5");
53 buildCpAttr("cpattr5_123456789_223456789_323456789_423456789_523456789_623456789", "cpattr5_extra_long.mf", "CpAttr5", "CpAttr5");
|