Prevent digester from freaking out on java_location.

This commit is contained in:
Michael Bayne
2007-02-04 00:54:46 +00:00
parent 4c3324752d
commit 371f680ba0
@@ -401,7 +401,14 @@ public class Application
throw (IOException) new IOException(err).initCause(e);
}
}
_javaLocation = (String)cdata.get("java_location");
// this is a little weird, but when we're run from the digester, we see a String[] which
// contains java locations for all platforms which we can't grok, but the digester doesn't
// need to know about that; when we're run in a real application there will be only one!
Object javaloc = cdata.get("java_location");
if (javaloc instanceof String) {
_javaLocation = (String)javaloc;
}
// clear our arrays as we may be reinitializing
_codes.clear();