When parsing env.txt and extra.txt, don't introduce am = if one wasn't there to

begin with.
This commit is contained in:
Michael Bayne
2011-11-02 18:46:14 +00:00
parent 748f6828b8
commit ef8a160e2d
@@ -645,7 +645,11 @@ public class Application
try {
List<String[]> args = ConfigUtil.parsePairs(pairFile, false);
for (String[] pair : args) {
collector.add(pair[0] + "=" + pair[1]);
if (pair[1].length() == 0) {
collector.add(pair[0]);
} else {
collector.add(pair[0] + "=" + pair[1]);
}
}
} catch (Throwable t) {
log.warning("Failed to parse '" + pairFile + "': " + t);