Class DeepBlueSimExtension

java.lang.Object
org.team199.deepbluesim.gradle.DeepBlueSimExtension

public class DeepBlueSimExtension extends Object
A Gradle extension that allows tasks to be configured so that they can use WPILib's simulation extensions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeepBlueSimExtension(org.gradle.api.Project project, edu.wpi.first.gradlerio.wpi.WPIExtension wpi)
    Constructs an instance for use with a project and a WPI extension.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureForSimulation(List<org.gradle.api.Task> tasks)
    Configures the tasks so that they can use the WPILib simulation extensions that are enabled by default.
    void
    configureForSimulation(List<org.gradle.api.Task> tasks, List<edu.wpi.first.gradlerio.wpi.simulation.HalSimExtension> extensions)
    Configures the tasks so they can use the specificed WPILib simulation extensions.
    void
    configureForSimulation(org.gradle.api.Task t)
    Configures a task so it can use the WPILib simulation extensions that are enabled by default.
    void
    configureForSimulation(org.gradle.api.Task t, List<edu.wpi.first.gradlerio.wpi.simulation.HalSimExtension> extensions)
    Configures a task so it can use the specificed WPILib simulation extensions.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeepBlueSimExtension

      @Inject public DeepBlueSimExtension(org.gradle.api.Project project, edu.wpi.first.gradlerio.wpi.WPIExtension wpi)
      Constructs an instance for use with a project and a WPI extension.
      Parameters:
      project - the project that this will be used with
      wpi - the WPI extension to use when configuring a task
  • Method Details

    • configureForSimulation

      public void configureForSimulation(List<org.gradle.api.Task> tasks) throws Exception
      Configures the tasks so that they can use the WPILib simulation extensions that are enabled by default.
      Parameters:
      tasks - the tasks to be configured
      Throws:
      Exception - if the tasks can not be configured
    • configureForSimulation

      public void configureForSimulation(org.gradle.api.Task t) throws Exception
      Configures a task so it can use the WPILib simulation extensions that are enabled by default.
      Parameters:
      t - the task to be configured
      Throws:
      Exception - if the task can't be configured
    • configureForSimulation

      public void configureForSimulation(List<org.gradle.api.Task> tasks, List<edu.wpi.first.gradlerio.wpi.simulation.HalSimExtension> extensions) throws Exception
      Configures the tasks so they can use the specificed WPILib simulation extensions.
      Parameters:
      tasks - the tasks to be configured
      extensions - the extensions to use. If null, the extensions that are enabled by default are used.
      Throws:
      Exception - if the task can't be configured
    • configureForSimulation

      public void configureForSimulation(org.gradle.api.Task t, List<edu.wpi.first.gradlerio.wpi.simulation.HalSimExtension> extensions) throws Exception
      Configures a task so it can use the specificed WPILib simulation extensions.
      Parameters:
      t - the task to be configured
      extensions - the extensions to use. If null, use the extensions that are enabled by default.
      Throws:
      Exception - if the task can't be configured