Package org.team199.deepbluesim.gradle
Class DeepBlueSimExtension
java.lang.Object
org.team199.deepbluesim.gradle.DeepBlueSimExtension
A Gradle extension that allows tasks to be configured so that they can use WPILib's simulation extensions.
-
Constructor Summary
ConstructorsConstructorDescriptionDeepBlueSimExtension(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 TypeMethodDescriptionvoidconfigureForSimulation(List<org.gradle.api.Task> tasks) Configures the tasks so that they can use the WPILib simulation extensions that are enabled by default.voidconfigureForSimulation(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.voidconfigureForSimulation(org.gradle.api.Task t) Configures a task so it can use the WPILib simulation extensions that are enabled by default.voidconfigureForSimulation(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.
-
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 withwpi- the WPI extension to use when configuring a task
-
-
Method Details
-
configureForSimulation
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
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 configuredextensions- 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 configuredextensions- the extensions to use. If null, use the extensions that are enabled by default.- Throws:
Exception- if the task can't be configured
-