/** * @deprecated * Use {@link #fromEnvironment()} to pick up standard set of environment variables, so that * different clients of this library will all recognize one consistent set of coordinates. */ public static GitHubBuilder fromEnvironment(String loginVariableName, String passwordVariableName, String oauthVariableName, String endpointVariableName) throws IOException { Properties env = new Properties(); loadIfSet(loginVariableName,env,"login"); loadIfSet(passwordVariableName,env,"password"); loadIfSet(oauthVariableName,env,"oauth"); loadIfSet(endpointVariableName,env,"endpoint"); return fromProperties(env); }
/** * @deprecated * Use {@link #fromEnvironment()} to pick up standard set of environment variables, so that * different clients of this library will all recognize one consistent set of coordinates. */ public static GitHubBuilder fromEnvironment(String loginVariableName, String passwordVariableName, String oauthVariableName, String endpointVariableName) throws IOException { Properties env = new Properties(); loadIfSet(loginVariableName,env,"login"); loadIfSet(passwordVariableName,env,"password"); loadIfSet(oauthVariableName,env,"oauth"); loadIfSet(endpointVariableName,env,"endpoint"); return fromProperties(env); }
/** * @deprecated * Use {@link #fromEnvironment()} to pick up standard set of environment variables, so that * different clients of this library will all recognize one consistent set of coordinates. */ public static GitHubBuilder fromEnvironment(String loginVariableName, String passwordVariableName, String oauthVariableName, String endpointVariableName) throws IOException { Properties env = new Properties(); loadIfSet(loginVariableName,env,"login"); loadIfSet(passwordVariableName,env,"password"); loadIfSet(oauthVariableName,env,"oauth"); loadIfSet(endpointVariableName,env,"endpoint"); return fromProperties(env); }