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

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


    } else {
      directory = new File(baseProject.getBuild().getDirectory() + "/jqassistant/store");
    }
    getLog().info("Opening store in directory '" + directory.getAbsolutePath() + "'");
    directory.getParentFile().mkdirs();
    Store store = new EmbeddedGraphStore(directory.getAbsolutePath());
    return store;
  }
View Full Code Here


    protected Store getStore() {
        File directory = new File("./tmp/store"); // TODO take directory from
                                                  // properties
        Log.getLog().info("Opening store in directory '" + directory.getAbsolutePath() + "'");
        directory.getParentFile().mkdirs();
        return new EmbeddedGraphStore(directory.getAbsolutePath());
    }
View Full Code Here

    public Store getStore(final File databaseDirectory) {
        Store store = stores.get(databaseDirectory);
        if (store == null) {
            LOGGER.info("Opening store in directory '{}'.", databaseDirectory.getAbsolutePath());
            databaseDirectory.getParentFile().mkdirs();
            store = new EmbeddedGraphStore(databaseDirectory.getAbsolutePath());
            store.start();
            stores.put(databaseDirectory, store);
        }
        return store;
    }
View Full Code Here

    @Parameter(property = "jqassistant.export.file")
    protected File exportFile;

    @Override
    protected void aggregate(MavenProject baseProject, Set<MavenProject> projects, Store store) throws MojoExecutionException, MojoFailureException {
        EmbeddedGraphStore graphStore = (EmbeddedGraphStore) store;
        GraphDatabaseAPI databaseService = graphStore.getDatabaseService();
        File file = BaseProjectResolver.getOutputFile(baseProject, exportFile, EXPORT_FILE);
        getLog().info("Exporting database to '" + file.getAbsolutePath() + "'");
        store.beginTransaction();
        SubGraph graph = DatabaseSubGraph.from(databaseService);
        try {
View Full Code Here

    public Store getStore(File directory, boolean reset) {
        Store store = stores.get(directory);
        if (store == null) {
            LOGGER.info("Opening store in directory '" + directory.getAbsolutePath() + "'");
            directory.getParentFile().mkdirs();
            store = new EmbeddedGraphStore(directory.getAbsolutePath());
            if (reset) {
                // reset the store if the current project is the base project
                // (i.e. where the rules are located).
                store.start(Collections.<Class<?>> emptyList());
                store.reset();
View Full Code Here

TOP

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

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.