Examples of reportTask


Examples of com.vladium.emma.report.reportTask

    emmaTask emma = new emmaTask();
    emma.setTaskName("emma");
    emma.setProject(mxtest.getProject());
    emma.init();
   
    reportTask report = (reportTask) emma.createReport();
    report.setTaskName("report");
    report.setProject(mxtest.getProject());
    report.init();

    MaxmlMap reportAttributes = mxtest.getBuild().getConfig().getTaskAttributes("emmareport");
    if (reportAttributes != null) {
      AttributeReflector.setAttributes(mxtest.getProject(), report, reportAttributes);
    }

    report.setSourcepathRef(new Reference(mxtest.getProject(), Key.compileSourcePath.referenceId()));
    XFileSet fileSet = new XFileSet();
    fileSet.setProject(mxtest.getProject());
    fileSet.setFile(mxtest.getEmmaData());
    report.addFileset(fileSet);
    report.createHtml().setOutfile(new File(mxtest.getCoverageReports(), "index.html").getAbsolutePath());
   
    emma.execute();
  }
View Full Code Here

Examples of entagged.listing.gui.tasks.ReportTask

     * Creates the wizard dialog.
     */
    private void initialize() {
        this.dialog = new WizardDialog();
        this.dialog.setTitle(LangageManager.getProperty("listgen.dialogtitle"));
        this.dialog.setTask(this.reportTask = new ReportTask(this));
        this.dialog.setSize(500, 300);
        centerDialog(dialog);
        this.dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    }
View Full Code Here

Examples of org.codehaus.mojo.cobertura.tasks.ReportTask

        if ( !canGenerateReport() )
        {
            return;
        }

        ReportTask task = new ReportTask();

        // task defaults
        task.setLog( getLog() );
        task.setPluginClasspathList( pluginClasspathList );
        task.setQuiet( quiet );

        // task specifics
        task.setMaxmem( maxmem );
        task.setDataFile( dataFile );
        task.setOutputDirectory( outputDirectory );
        task.setCompileSourceRoots( getCompileSourceRoots() );
        task.setSourceEncoding( encoding );


        if ( format != null )
        {
            formats = new String[] { format };
View Full Code Here

Examples of org.jacoco.ant.ReportTask

      throw new MoxieException("Unable to extract agent jar", e);
    }
  }

  public static void report(MxTest mxtest) {
    ReportTask task = new ReportTask();
    task.setTaskName("report");
    task.setProject(mxtest.getProject());
    task.init();
   
    // execution data
    Union executiondata = task.createExecutiondata();
    Path jacocodata = new Path(mxtest.getProject());
    jacocodata.setPath(mxtest.getJaCoCoData().getAbsolutePath());
    executiondata.add(jacocodata);
   
    GroupElement structure = task.createStructure();
    structure.setName(mxtest.getProjectTitle());
   
    // classfiles
    Union classfiles = structure.createClassfiles();
    Path outputpath = new Path(mxtest.getProject());
    outputpath.setPath(mxtest.getClassesDir().getAbsolutePath());
    classfiles.add(outputpath);
   
    MaxmlMap attributes = mxtest.getBuild().getConfig().getTaskAttributes(mxtest.getTaskName());
    if (attributes == null) {
      attributes = new MaxmlMap();
    }

    // source files
    SourceFilesElement sourcefiles = structure.createSourcefiles();
    sourcefiles.setEncoding(attributes.getString("encoding", null));
    Path sourcepath = new Path(mxtest.getProject());
    sourcepath.setRefid(new Reference(mxtest.getProject(), Key.compileSourcePath.referenceId()));
    sourcefiles.add(sourcepath);
   
    // report output folder
    task.createHtml().setDestdir(mxtest.getCoverageReports());
   
    task.execute();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.