From e5b89948cea068952c7209e56848841abf8728cf Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 10 Aug 2004 07:26:19 +0000 Subject: [PATCH] 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. --- .../com/threerings/getdown/data/Application.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/getdown/data/Application.java b/src/java/com/threerings/getdown/data/Application.java index f441dd8..0d45bc1 100644 --- a/src/java/com/threerings/getdown/data/Application.java +++ b/src/java/com/threerings/getdown/data/Application.java @@ -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()) {