11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 * @test
26 * @bug 8061999 8135195 8136552
27 * @summary Test "-XX:VMOptionsFile" VM option
28 * @library /test/lib
29 * @modules java.base/jdk.internal.misc
30 * @modules jdk.management
31 * @run main TestVMOptionsFile
32 */
33
34 import java.io.File;
35 import java.io.FileWriter;
36 import java.io.IOException;
37 import java.nio.file.Files;
38 import java.nio.file.Paths;
39 import java.nio.file.Path;
40 import java.nio.file.attribute.PosixFilePermissions;
41 import java.nio.file.attribute.AclEntry;
42 import java.nio.file.attribute.AclEntryPermission;
43 import java.nio.file.attribute.AclEntryType;
44 import java.nio.file.attribute.AclFileAttributeView;
45 import java.nio.file.attribute.UserPrincipal;
46 import java.nio.file.StandardCopyOption;
47 import java.util.ArrayList;
48 import java.util.Arrays;
49 import java.util.LinkedHashSet;
50 import java.util.List;
51 import java.util.Properties;
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 * @test
26 * @bug 8061999 8135195 8136552
27 * @summary Test "-XX:VMOptionsFile" VM option
28 * @library /test/lib
29 * @modules java.base/jdk.internal.misc
30 * @modules jdk.management
31 * @run driver TestVMOptionsFile
32 */
33
34 import java.io.File;
35 import java.io.FileWriter;
36 import java.io.IOException;
37 import java.nio.file.Files;
38 import java.nio.file.Paths;
39 import java.nio.file.Path;
40 import java.nio.file.attribute.PosixFilePermissions;
41 import java.nio.file.attribute.AclEntry;
42 import java.nio.file.attribute.AclEntryPermission;
43 import java.nio.file.attribute.AclEntryType;
44 import java.nio.file.attribute.AclFileAttributeView;
45 import java.nio.file.attribute.UserPrincipal;
46 import java.nio.file.StandardCopyOption;
47 import java.util.ArrayList;
48 import java.util.Arrays;
49 import java.util.LinkedHashSet;
50 import java.util.List;
51 import java.util.Properties;
|