/** * Default constructor sets the location of the test log directory to * TE_BASE/users/{user.name}; it is created if it does not exist. */ public RuntimeOptions() { File baseDir = SetupOptions.getBaseConfigDirectory(); File usersDir = new File(baseDir, "users"); File userDir = new File(usersDir, System.getProperty("user.name")); if (!userDir.exists()) { userDir.mkdirs(); } this.testLogDir = userDir; }
/** * Default constructor sets the location of the test log directory to * TE_BASE/users/{user.name}; it is created if it does not exist. */ public RuntimeOptions() { File baseDir = SetupOptions.getBaseConfigDirectory(); File usersDir = new File(baseDir, "users"); File userDir = new File(usersDir, System.getProperty("user.name")); if (!userDir.exists()) { userDir.mkdirs(); } this.testLogDir = userDir; }
String path = getBaseConfigDirectory() + "/config.xml"; if (new File(path).exists()) {
String path = getBaseConfigDirectory() + "/config.xml"; if (new File(path).exists()) {
if (args[i].startsWith("-source=")) { File scriptsDir = new File( SetupOptions.getBaseConfigDirectory(), "scripts"); File f = new File(scriptsDir, args[i].substring(8)); if (f.exists()) {
if (args[i].startsWith("-source=")) { File scriptsDir = new File( SetupOptions.getBaseConfigDirectory(), "scripts"); File f = new File(scriptsDir, args[i].substring(8)); if (f.exists()) {
if (!sourceFile.isAbsolute()) { File scriptsDir = new File( SetupOptions.getBaseConfigDirectory(), "scripts"); sourceFile = new File(scriptsDir, sourcePath);
if (!sourceFile.isAbsolute()) { File scriptsDir = new File( SetupOptions.getBaseConfigDirectory(), "scripts"); sourceFile = new File(scriptsDir, sourcePath);