From 657054c9e2e03fc0703789064c2f281929189fc5 Mon Sep 17 00:00:00 2001 From: Alex Henning Date: Mon, 11 Aug 2014 11:20:07 -0400 Subject: [PATCH] Fixed bug with plugins not including all simulation dependencies. Change-Id: I34c84c6cd4d918039726aa2efb81efbcf98dd593 --- eclipse-plugins/edu.wpi.first.wpilib.plugins.java/pom.xml | 6 ++++++ .../src/main/java/edu/wpi/first/wpilibj/RobotBase.java | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/pom.xml b/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/pom.xml index 8c88166557..9b3d4d7943 100644 --- a/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/pom.xml +++ b/eclipse-plugins/edu.wpi.first.wpilib.plugins.java/pom.xml @@ -132,6 +132,12 @@ JavaGazebo 0.1.0-SNAPSHOT + + edu.wpi.first.wpilibj + wpilibJava + 0.1.0-SNAPSHOT + jar + edu.wpi.first.wpilibj wpilibJavaSim diff --git a/wpilibj/wpilibJavaSim/src/main/java/edu/wpi/first/wpilibj/RobotBase.java b/wpilibj/wpilibJavaSim/src/main/java/edu/wpi/first/wpilibj/RobotBase.java index 43738d0b17..36918184f0 100644 --- a/wpilibj/wpilibJavaSim/src/main/java/edu/wpi/first/wpilibj/RobotBase.java +++ b/wpilibj/wpilibJavaSim/src/main/java/edu/wpi/first/wpilibj/RobotBase.java @@ -153,10 +153,6 @@ public abstract class RobotBase { */ public static void main(String args[]) { // TODO: expose main to teams? boolean errorOnExit = false; - - // Set some implementations so that the static methods work properly - Timer.SetImplementation(new SimTimer()); - RobotState.SetImplementation(DriverStation.getInstance()); try { MainNode.openGazeboConnection(); @@ -166,6 +162,10 @@ public abstract class RobotBase { System.exit(1); return; } + + // Set some implementations so that the static methods work properly + Timer.SetImplementation(new SimTimer()); + RobotState.SetImplementation(DriverStation.getInstance()); String robotName = ""; Enumeration resources = null;