Search in sources :

Example 1 with TraceTask

use of org.itsallcode.openfasttrace.gradle.task.TraceTask in project openfasttrace-gradle by itsallcode.

the class OpenFastTracePlugin method createTracingTask.

private void createTracingTask(Project project) {
    final TraceTask traceTask = createTask(project, "traceRequirements", TraceTask.class);
    traceTask.setGroup(TASK_GROUP_NAME);
    traceTask.setDescription("Trace requirements and generate tracing report");
    final TracingConfig config = getConfig(project);
    traceTask.inputDirectories.setFrom(config.inputDirectories);
    traceTask.outputFile.set(config.reportFile);
    traceTask.reportVerbosity.set(config.reportVerbosity);
    traceTask.pathConfig = () -> getPathConfigFromRootProject(project.getAllprojects());
}
Also used : TracingConfig(org.itsallcode.openfasttrace.gradle.config.TracingConfig) TraceTask(org.itsallcode.openfasttrace.gradle.task.TraceTask)

Aggregations

TracingConfig (org.itsallcode.openfasttrace.gradle.config.TracingConfig)1 TraceTask (org.itsallcode.openfasttrace.gradle.task.TraceTask)1