public static void enableDefaultAndManualInstallFolder() throws BookException { CWProject.setHome("jsword.home", SharedConstants.MODULE_DIR.getAbsolutePath(), SharedConstants.MANUAL_INSTALL_DIR.getAbsolutePath()); // the following causes Sword to initialise itself and can take quite a few seconds // add manual install dir to this list SwordBookPath.setAugmentPath(new File[] {SharedConstants.MANUAL_INSTALL_DIR}); }
enableDefaultAndManualInstallFolder(); } else { CWProject.setHome("jsword.home", moduleDir.getAbsolutePath(), null);