Gradle Task Output

We have the following ant task. We are unsure what the gradle equivalent would be to capture the output to abc.log.

    <property name="abc.log" value="${dist.dir}/compiler.log.log" />
    <echo message="Compiling abc. Compile log is in ${abc.log} ..." />
    <exec executable="${excelsior.jet.home}/bin/jc"
          output="${abc.log}" >
        <arg line="=project ${dist.dir}/abcs.prj" />
Any help would be appreciated!

A task of type Exec has a property standardOutput and a property standardError. Those your can set to output streams, for example to find output streams.

1 Like