public String getInstanciatedPath(String path) { if (path == null) { return path; } String localizedPath = operatingSystemLocalized(path); localizedPath = injectVariable(localizedPath, "HOME", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "user.home", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "USERDIR", environmentVariables.getProperty("user.dir")); localizedPath = injectVariable(localizedPath, "USERPROFILE", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "user.dir", environmentVariables.getProperty("user.dir")); localizedPath = injectVariable(localizedPath, "APPDATA", environmentVariables.getValue("APPDATA")); localizedPath = injectVariable(localizedPath, "DATADIR", ThucydidesSystemProperty.THUCYDIDES_DATA_DIR.from(environmentVariables)); return localizedPath; }
public String getInstanciatedPath(String path) { if (path == null) { return path; } String localizedPath = operatingSystemLocalized(path); localizedPath = injectVariable(localizedPath, "HOME", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "user.home", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "USERDIR", environmentVariables.getProperty("user.dir")); localizedPath = injectVariable(localizedPath, "USERPROFILE", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "user.dir", environmentVariables.getProperty("user.dir")); localizedPath = injectVariable(localizedPath, "APPDATA", environmentVariables.getValue("APPDATA")); localizedPath = injectVariable(localizedPath, "DATADIR", ThucydidesSystemProperty.THUCYDIDES_DATA_DIR.from(environmentVariables)); return localizedPath; }
public String getInstanciatedPath(String path) { if (path == null) { return path; } String localizedPath = operatingSystemLocalized(path); localizedPath = injectVariable(localizedPath, "HOME", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "user.home", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "USERDIR", environmentVariables.getProperty("user.dir")); localizedPath = injectVariable(localizedPath, "USERPROFILE", environmentVariables.getProperty("user.home")); localizedPath = injectVariable(localizedPath, "user.dir", environmentVariables.getProperty("user.dir")); localizedPath = injectVariable(localizedPath, "APPDATA", environmentVariables.getValue("APPDATA")); localizedPath = injectVariable(localizedPath, "DATADIR", ThucydidesSystemProperty.THUCYDIDES_DATA_DIR.from(environmentVariables)); return localizedPath; }