Search in sources :

Example 6 with BuildClientMetaData

use of org.gradle.initialization.BuildClientMetaData in project gradle by gradle.

the class TaskReportRenderer method complete.

@Override
public void complete() {
    if (!detail) {
        StyledTextOutput output = getTextOutput();
        BuildClientMetaData clientMetaData = getClientMetaData();
        output.println();
        output.text("To see all tasks and more detail, run ");
        clientMetaData.describeCommand(output.withStyle(UserInput), "tasks --all");
        output.println();
        output.println();
        output.text("To see more detail about a task, run ");
        clientMetaData.describeCommand(output.withStyle(UserInput), "help --task <task>");
        output.println();
    }
    super.complete();
}
Also used : BuildClientMetaData(org.gradle.initialization.BuildClientMetaData) StyledTextOutput(org.gradle.internal.logging.text.StyledTextOutput)

Aggregations

BuildClientMetaData (org.gradle.initialization.BuildClientMetaData)6 StyledTextOutput (org.gradle.internal.logging.text.StyledTextOutput)5 Expectations (org.jmock.Expectations)3 Sequence (org.jmock.Sequence)3 Test (org.junit.Test)3 Project (org.gradle.api.Project)2 File (java.io.File)1 TaskAction (org.gradle.api.tasks.TaskAction)1 GraphRenderer (org.gradle.internal.graph.GraphRenderer)1 TestUtil.createChildProject (org.gradle.util.TestUtil.createChildProject)1