Search in sources :

Example 1 with TracingConfig

use of org.itsallcode.openfasttrace.gradle.config.TracingConfig 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)

Example 2 with TracingConfig

use of org.itsallcode.openfasttrace.gradle.config.TracingConfig in project openfasttrace-gradle by itsallcode.

the class OpenFastTracePlugin method createConfigDsl.

private void createConfigDsl(Project project) {
    LOG.info("Setting up plugin configuration for project '{}'", project.getName());
    final NamedDomainObjectContainer<PathPatternConfig> pathConfig = project.container(PathPatternConfig.class);
    final TracingConfig tracingConfig = project.getExtensions().create("requirementTracing", TracingConfig.class, project, pathConfig);
    ((ExtensionAware) tracingConfig).getExtensions().add("pathConfig", pathConfig);
}
Also used : TracingConfig(org.itsallcode.openfasttrace.gradle.config.TracingConfig) PathPatternConfig(org.itsallcode.openfasttrace.gradle.config.PathPatternConfig)

Aggregations

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