1 /* |
1 /* |
2 * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2013, 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. |
294 private List<String> runOpts; |
294 private List<String> runOpts; |
295 private List<String> options; |
295 private List<String> options; |
296 private Set<String> actualKeys; |
296 private Set<String> actualKeys; |
297 private Set<String> declaredKeys; |
297 private Set<String> declaredKeys; |
298 |
298 |
299 static File tempDir = new File(System.getProperty("java.io.tmpdir")); |
299 static File tempDir = (System.getProperty("test.src") != null) ? |
|
300 new File(System.getProperty("user.dir")): |
|
301 new File(System.getProperty("java.io.tmpdir")); |
|
302 |
300 static void setTempDir(File tempDir) { |
303 static void setTempDir(File tempDir) { |
301 Example.tempDir = tempDir; |
304 Example.tempDir = tempDir; |
302 } |
305 } |
303 |
306 |
304 abstract static class Compiler { |
307 abstract static class Compiler { |