Allow username and password to be passed to getdown and then passed along

to Yohoho! to deal with the various hackery that the Chinese need.
This commit is contained in:
Michael Bayne
2004-08-10 07:26:19 +00:00
parent 471c6cddf3
commit e5b89948ce
@@ -1,5 +1,5 @@
//
// $Id: Application.java,v 1.29 2004/08/09 22:01:56 mdb Exp $
// $Id: Application.java,v 1.30 2004/08/10 07:26:19 mdb Exp $
package com.threerings.getdown.data;
@@ -274,6 +274,16 @@ public class Application
}
}
// TODO: make this less of a hack
String username = System.getProperty("username");
if (!StringUtil.blank(username)) {
_jvmargs.add("-Dusername=" + username);
}
String password = System.getProperty("password");
if (!StringUtil.blank(password)) {
_jvmargs.add("-Dpassword=" + password);
}
// look for custom arguments
File file = getLocalPath("extra.txt");
if (file.exists()) {