From ba05df10445684b21231fd31e0364198af4e5100 Mon Sep 17 00:00:00 2001 From: Paul Malmsten Date: Fri, 28 Nov 2014 18:12:27 -0500 Subject: Moved Smart Dashboard extensions directory to ~/SmartDashboard/extensions The previous location was ~/wpilib/tools/sd_extensions, which would be squahed by installs of eclipse plugins. This addresses artf3811 (https://usfirst.collab.net/sf/go/artf3811). Change-Id: Ic712c0ff8148076400c4cc42e75e2013428d7622 --- .../edu/wpi/first/smartdashboard/extensions/FileSniffer.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'smartdashboard') diff --git a/smartdashboard/src/edu/wpi/first/smartdashboard/extensions/FileSniffer.java b/smartdashboard/src/edu/wpi/first/smartdashboard/extensions/FileSniffer.java index 673cd18..6ee5c80 100644 --- a/smartdashboard/src/edu/wpi/first/smartdashboard/extensions/FileSniffer.java +++ b/smartdashboard/src/edu/wpi/first/smartdashboard/extensions/FileSniffer.java @@ -18,18 +18,16 @@ import edu.wpi.first.smartdashboard.gui.elements.*; import edu.wpi.first.smartdashboard.types.*; /** - * This class searches through the ./lib, ~/wpilib/tools/sd_extensions, - * and ~/wpilib/tools/sd_extensions/lib folders and adds to the class path all - * of the jars it finds. Then it searches the ~/wpilib/tools/sd_extensions folder - * for any jars, adding them to the class path and then searching through them to find any - * internal {@link StaticWidget StaticWidgets} or {@link Widget Widgets}. + * This class searches for library and extension jars and adds them + * to the system class loader. It then searches within extension jars for + * {@link StaticWidget StaticWidget}s or {@link Widget Widget}s, and registers + * them in the dashboard. * * @author Joe Grinstead */ public class FileSniffer { private static final File EXTENSION_DIR = - new File(getUserHomeDir(), "wpilib/tools/sd_extensions"); - + new File(getUserHomeDir(), "SmartDashboard/extensions"); private static final File[] LIBRARY_DIRS = { new File("./lib"), new File(EXTENSION_DIR, "lib"), -- cgit v1.2.3-54-g00ecf