XComponentContext xContext = null; try {
xContext = Bootstrap.defaultBootstrap_InitialComponentContext(
unorcName, env);
} catch(Exception e) {
e.printStackTrace();
System.out.println("Could not get XComponentContext. Maybe you must add program folder to LD_LIBRARY_PATH"); returnnull;
}
XMultiComponentFactory xMCF = xContext.getServiceManager();
xMSF = UnoRuntime.queryInterface(
XMultiServiceFactory.class, xMCF);
} return xMSF;
}
private String getUnorcName(TestParameters param) {
String unorcName = (String)param.get("UNORC"); if (unorcName == null) {
String office = (String)param.get("AppExecutionCommand"); // determine unorc name: unorc or uno.ini on windows
unorcName = (String)param.get(PropertyName.UNORC_NAME); // use '/', because this will be a URL in any case.
unorcName = office.substring(0, office.indexOf("program")+7) + "/" + unorcName;
}
unorcName = utils.getFullURL(unorcName); if (param.getBool(PropertyName.DEBUG_IS_ACTIVE)) {
System.out.println("UnoUcr: " + unorcName);
} return unorcName;
}
private String getSysBinDir(TestParameters param) {
String base = (String)param.get("AppExecutionCommand"); if (base == null)
base = (String)param.get("UNORC");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.