Class AgentArgumentProvider

java.lang.Object
com.uwyn.rife2.gradle.AgentArgumentProvider
All Implemented Interfaces:
org.gradle.process.CommandLineArgumentProvider

public abstract class AgentArgumentProvider extends Object implements org.gradle.process.CommandLineArgumentProvider
Provides the JVM argument that launches a process with the RIFE2 agent.
  • Constructor Details

    • AgentArgumentProvider

      public AgentArgumentProvider()
  • Method Details

    • getUseAgent

      @Input public abstract org.gradle.api.provider.Property<Boolean> getUseAgent()
      Indicates whether the process should be launched with the RIFE2 agent.
      Returns:
      true when the agent should be used; false otherwise
    • getAgentClasspath

      @Classpath public abstract org.gradle.api.file.ConfigurableFileCollection getAgentClasspath()
      The classpath that holds the RIFE2 agent jar.
      Returns:
      the agent classpath
    • asArguments

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