nonAdminTestingAccountPw = System.getProperty("appengine.nonAdminTestingAccount.pw");
oauthClientId = System.getProperty("appengine.oauth.clientId");
oauthRedirectUri = System.getProperty("appengine.oauth.redirectUri");
Property nonAdmin = property("nonAdminTestingAccount");
if (nonAdmin.exists()) {
nonAdminTestingAccountEmail = nonAdmin.getPropertyValue();
nonAdminTestingAccountPw = "boguspw";
}
Property accountRequired = property("testingAccountRequired");
boolean testingAccountRequired = !accountRequired.exists() || accountRequired.getPropertyValue().equalsIgnoreCase("true");
if (nonAdminTestingAccountEmail == null && testingAccountRequired) {
throw new IllegalStateException("-Dappengine.nonAdminTestingAccount.email is not defined.");
}
if (nonAdminTestingAccountPw == null && testingAccountRequired) {