Class ContractArguments

java.lang.Object
com.egoge.ai.atlas.plugin.ContractArguments
All Implemented Interfaces:
org.gradle.process.CommandLineArgumentProvider

public abstract class ContractArguments extends Object implements org.gradle.process.CommandLineArgumentProvider
The contract options of the main compileJava task (FR-016): the baseline's absolute path and lock mode, and the constraints flag (FR-020) when it is set. The baseline is an input, and a missing file is allowed, so creating, editing or accepting it re-runs the compilation and with it the gate. Only its content is fingerprinted: the absolute path appears in the arguments alone, so checkouts in different directories share build cache entries.
  • Constructor Details

    • ContractArguments

      public ContractArguments()
  • Method Details

    • getBaseline

      @InputFiles @PathSensitive(NONE) public abstract org.gradle.api.file.ConfigurableFileCollection getBaseline()
      The baseline file; it may not exist yet.
    • getLocked

      @Input public abstract org.gradle.api.provider.Property<Boolean> getLocked()
      Whether lock mode is on.
    • getConstraints

      @Input @Optional public abstract org.gradle.api.provider.Property<Boolean> getConstraints()
      Whether the generated surfaces carry constraints and hints. Absent unless set, and then not passed, so a value in options.compilerArgs (javac keeps the last -A) stands.
    • asArguments

      public Iterable<String> asArguments()
      Specified by:
      asArguments in interface org.gradle.process.CommandLineArgumentProvider