diff -r 5f95a1b1f73d -r e1881d258206 jdk/test/java/security/testlibrary/Proc.java --- a/jdk/test/java/security/testlibrary/Proc.java Wed Feb 15 09:10:24 2017 +0100 +++ b/jdk/test/java/security/testlibrary/Proc.java Wed Feb 15 21:46:50 2017 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -176,6 +176,14 @@ prop.put(a, b); return this; } + // Inherit the value of a system property + public Proc inheritProp(String k) { + String v = System.getProperty(k); + if (v != null) { + prop.put(k, v); + } + return this; + } // Sets classpath. If not called, Proc will choose a classpath. If called // with no arg, no classpath will be used. Can be called multiple times. public Proc cp(String... s) {