Package com.buschmais.jqassistant.scm.neo4jserver.impl

Examples of com.buschmais.jqassistant.scm.neo4jserver.impl.ServerImpl


    public CmdlineServer() {
        super("server");
    }

    protected void doTheTask(final Store store) {
        Server server = new ServerImpl((EmbeddedGraphStore) store);
        server.start();
        getLog().info("Running server");
        getLog().info("Press <Enter> to finish.");
        try {
            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            server.stop();
        }
    }
View Full Code Here


@Mojo(name = "server")
public class ServerMojo extends AbstractAnalysisMojo {

    @Override
    protected void aggregate(MavenProject baseProject, Set<MavenProject> projects, Store store) throws MojoExecutionException, MojoFailureException {
        Server server = new ServerImpl((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

TOP

Related Classes of com.buschmais.jqassistant.scm.neo4jserver.impl.ServerImpl

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.