Package parse

Examples of parse.LuceneConfiguration


    Log log = LogFactory.getLog(IndexViewerMojo.class);

    public void execute() throws MojoExecutionException {
        Application application = this.loadApplication();
        LuceneConfiguration configuration = application.<LuceneConfiguration> getInstance(LuceneConfiguration.class);
        try {
            Runtime runtime = Runtime.getRuntime();
            Process process = runtime.exec("java -jar lukeall.jar -index " + configuration.getIndexLocation());
            process.waitFor();
            log.debug("****************Exit Value**************" + process.exitValue());
            Thread.sleep(5000);
        } catch (Exception e) {
            log.error("Error processing index at location:" + configuration.getIndexLocation(), e);
        }

        log.debug("*********************Viewing Index******************");

    }
View Full Code Here

TOP

Related Classes of parse.LuceneConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.