10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 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 import java.io.File; 24 import java.io.IOException; 25 26 /* 27 * @test 28 * @bug 6994753 7123582 29 * @summary tests -XshowSettings options 30 * @compile -XDignore.symbol.file Settings.java 31 * @run main Settings 32 * @author ksrini 33 */ 34 public class Settings extends TestHelper { 35 private static File testJar = null; 36 37 static void init() throws IOException { 38 if (testJar != null) { 39 return; 40 } 41 testJar = new File("test.jar"); 42 StringBuilder tsrc = new StringBuilder(); 43 tsrc.append("public static void main(String... args) {\n"); 44 tsrc.append(" for (String x : args) {\n"); 45 tsrc.append(" System.out.println(x);\n"); 46 tsrc.append(" }\n"); 47 tsrc.append("}\n"); 48 createJar(testJar, tsrc.toString()); 49 } | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 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 import java.io.File; 24 import java.io.IOException; 25 26 /* 27 * @test 28 * @bug 6994753 7123582 29 * @summary tests -XshowSettings options 30 * @modules jdk.compiler 31 * jdk.zipfs 32 * @compile -XDignore.symbol.file Settings.java 33 * @run main Settings 34 * @author ksrini 35 */ 36 public class Settings extends TestHelper { 37 private static File testJar = null; 38 39 static void init() throws IOException { 40 if (testJar != null) { 41 return; 42 } 43 testJar = new File("test.jar"); 44 StringBuilder tsrc = new StringBuilder(); 45 tsrc.append("public static void main(String... args) {\n"); 46 tsrc.append(" for (String x : args) {\n"); 47 tsrc.append(" System.out.println(x);\n"); 48 tsrc.append(" }\n"); 49 tsrc.append("}\n"); 50 createJar(testJar, tsrc.toString()); 51 } |