fix #85
This commit is contained in:
parent
0ce981c907
commit
7ea975c859
1 changed files with 8 additions and 1 deletions
|
@ -60,6 +60,7 @@ import org.codelibs.solr.lib.policy.StatusPolicy;
|
|||
import org.kohsuke.args4j.CmdLineException;
|
||||
import org.kohsuke.args4j.CmdLineParser;
|
||||
import org.kohsuke.args4j.Option;
|
||||
import org.mobylet.core.launcher.LaunchConfig;
|
||||
import org.mobylet.core.launcher.MobyletLauncher;
|
||||
import org.seasar.framework.container.ExternalContext;
|
||||
import org.seasar.framework.container.S2Container;
|
||||
|
@ -252,7 +253,13 @@ public class Crawler implements Serializable {
|
|||
|
||||
private static int process(final Options options) {
|
||||
// initialize mobylet
|
||||
MobyletLauncher.launch();
|
||||
final LaunchConfig launchConfig = new LaunchConfig();
|
||||
launchConfig.addParameter("mobylet.logger.class",
|
||||
"jp.sf.fess.log.MobyletLoggerImpl");
|
||||
MobyletLauncher.initSingletonContainer();
|
||||
MobyletLauncher.initLogger(launchConfig);
|
||||
MobyletLauncher.initDefaultCharset(launchConfig);
|
||||
MobyletLauncher.initInitializer(launchConfig);
|
||||
|
||||
final Crawler crawler = SingletonS2Container
|
||||
.getComponent(Crawler.class);
|
||||
|
|
Loading…
Add table
Reference in a new issue