test/jdk/java/lang/instrument/BootClassPath/Setup.java
changeset 51854 3c6d285c8168
parent 47216 71c04702a3d5
equal deleted inserted replaced
51853:ec62d6cab037 51854:3c6d285c8168
     1 /*
     1 /*
     2  * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2018, 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.
    25  *
    25  *
    26  *
    26  *
    27  * Used by BootClassPath.sh.
    27  * Used by BootClassPath.sh.
    28  *
    28  *
    29  * Given a "work directory" this class creates a sub-directory with a
    29  * Given a "work directory" this class creates a sub-directory with a
    30  * name that uses locale specific characters. It the creates a jar
    30  * name that uses locale specific characters. It then creates a jar
    31  * manifest file in the work directory with a Boot-Class-Path that
    31  * manifest file in the work directory with a Boot-Class-Path that
    32  * encodes the created sub-directory. Finally it creates a file
    32  * encodes the created sub-directory. Finally it creates a file
    33  * "boot.dir" in the work directory with the name of the sub-directory.
    33  * "boot.dir" in the work directory with the name of the sub-directory.
    34  */
    34  */
    35 import java.io.File;
    35 import java.io.File;
    49         String manifestFile = workDir + fileSeparator + "MANIFEST.MF";
    49         String manifestFile = workDir + fileSeparator + "MANIFEST.MF";
    50         String bootClassPath = "boot" + suffix();
    50         String bootClassPath = "boot" + suffix();
    51 
    51 
    52         String bootDir = workDir + fileSeparator + bootClassPath;
    52         String bootDir = workDir + fileSeparator + bootClassPath;
    53 
    53 
       
    54         /*
       
    55          * Environment variable settings ("null" if unset)
       
    56          */
       
    57         System.out.println("Env vars:");
       
    58         System.out.println("  LANG=" + System.getenv("LANG"));
       
    59         System.out.println("  LC_ALL=" + System.getenv("LC_ALL"));
       
    60         System.out.println("  LC_CTYPE=" + System.getenv("LC_CTYPE"));
    54 
    61 
    55         /*
    62         /*
    56          * Create sub-directory
    63          * Create sub-directory
    57          */
    64          */
    58         File f = new File(bootDir);
    65         File f = new File(bootDir);