Package com.buschmais.jqassistant.core.store.impl

Examples of com.buschmais.jqassistant.core.store.impl.Server


public class ServerMojo extends AbstractAnalysisAggregatorMojo {

  @Override
  protected void aggregate(MavenProject baseProject, Set<MavenProject> projects, Store store) throws MojoExecutionException,
      MojoFailureException {
    Server server = new Server((EmbeddedGraphStore) store);
    server.start();
    getLog().info(
        "Running server for module " + baseProject.getGroupId() + ":" + baseProject.getArtifactId() + ":"
            + baseProject.getVersion());
    getLog().info("Press <Enter> to finish.");
    try {
      System.in.read();
    } catch (IOException e) {
      throw new MojoExecutionException("Cannot read from System.in.", e);
    } finally {
      server.stop();
    }
  }
View Full Code Here


    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        execute(new StoreOperation<Void>() {
            @Override
            public Void run(Store store) throws MojoExecutionException {
                Server server = new Server((EmbeddedGraphStore) store);
                server.start();
                try {
                    getLog().info("Press <Enter> to finish.");
                    System.in.read();
                } catch (IOException e) {
                    throw new MojoExecutionException("Cannot read from System.in.", e);
                } finally {
                    server.stop();
                }
                return null;
            }
        });
    }
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.core.store.impl.Server

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.