Search in sources :

Example 1 with Configuration

use of fr.inria.stamp.Configuration in project dspot by STAMP-project.

the class DSpotMojo method execute.

public void execute() throws MojoExecutionException, MojoFailureException {
    Configuration configuration = new Configuration(// path to file
    null, // Amplifiers
    JSAPOptions.buildAmplifiersFromString(getAmplifiers().toArray(new String[0])), // Iteration
    getIteration(), // testClases
    getNamesOfTestCases(), getOutputPath().toString(), SelectorEnum.valueOf(getSelector()).buildSelector(), getNamesOfTestCases(), getRandomSeed().longValue(), getTimeOutInMs().intValue(), BUILDER, getMavenHome().getAbsolutePath(), 10, false, false);
    InputConfiguration inputConfiguration;
    try {
        inputConfiguration = new InputConfiguration(getProject(), getSrcDir(), getTestDir(), getClassesDir(), getTestClassesDir(), getTempDir(), getFilter(), getMavenHome());
        Main.run(configuration, inputConfiguration);
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
Also used : InputConfiguration(fr.inria.diversify.utils.sosiefier.InputConfiguration) Configuration(fr.inria.stamp.Configuration) InputConfiguration(fr.inria.diversify.utils.sosiefier.InputConfiguration) MojoExecutionException(org.apache.maven.plugin.MojoExecutionException) MojoFailureException(org.apache.maven.plugin.MojoFailureException)

Aggregations

InputConfiguration (fr.inria.diversify.utils.sosiefier.InputConfiguration)1 Configuration (fr.inria.stamp.Configuration)1 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)1 MojoFailureException (org.apache.maven.plugin.MojoFailureException)1