Package mojo

Source Code of mojo.IndexBuilderMojo

package mojo;

import index.IndexBuilder;
import index.context.Application;
import index.context.ApplicationLoader;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.maven.plugin.MojoExecutionException;

/**
* @goal createIndex
*/
public class IndexBuilderMojo extends ApplicationLoader {
    Log log = LogFactory.getLog(IndexBuilderMojo.class);

    public void execute() throws MojoExecutionException {
        Application application = this.loadApplication();
        IndexBuilder indexBuilder = application.<IndexBuilder> getInstance(IndexBuilder.class);
        indexBuilder.buildIndex();
    }
}
TOP

Related Classes of mojo.IndexBuilderMojo

TOP
Copyright © 2018 www.massapi.com. 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.