Package com.buschmais.jqassistant.core.analysis.api

Examples of com.buschmais.jqassistant.core.analysis.api.RuleSetWriter


                group.getConstraints().add((Constraint) executable);
            }
        }
        RuleSet ruleSet = new RuleSet();
        ruleSet.getGroups().put(group.getId(), group);
        RuleSetWriter ruleSetWriter = new RuleSetWriterImpl();
        LOGGER.debug("Exporting rule set " + ruleSet.toString());
        ruleSetWriter.write(ruleSet, writer);
    }
View Full Code Here


    @Override
    protected void aggregate(MavenProject baseProject, Set<MavenProject> projects, Store store) throws MojoExecutionException, MojoFailureException {
        getLog().info("Exporting rules for '" + baseProject.getName() + "'.");
        final RuleSet ruleSet = resolveEffectiveRules(baseProject);
        RuleSetWriter ruleSetWriter = new RuleSetWriterImpl();
        String exportedRules = baseProject.getBuild().getDirectory() + "/jqassistant/jqassistant-rules.xml";
        Writer writer;
        try {
            writer = new FileWriter(exportedRules);
        } catch (IOException e) {
            throw new MojoExecutionException("Cannot create writer for rule export.", e);
        }
        ruleSetWriter.write(ruleSet, writer);
    }
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.core.analysis.api.RuleSetWriter

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.