View Single Post
  #3   Spotlight this post!  
Unread 27-05-2016, 13:05
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 337
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Project Build Inquiries

Quote:
Originally Posted by AMendenhall View Post

In build.properties
Code:
robot.class=${package}.Robot
userLibs=${user.home}/navx-mxp/java/lib/navx_frc.jar
That's to include the NavX libraries. Why don't you need to do that for WPILib.jar or NetworkTables.jar? Also, there's the ${} notation.
WPILib.jar and NetworkTables.jar are included directly within the "WPI Build properties" (build.properties file located at C:\Users\<yourloginname>\wpilib\java\current\ant). Since this build.properties file is installed automatically by the WPI Library plugins, and since WPILib and NetworkTables are part of the WPI Library, these two libraries are handled for you. Users are not expected to edit this file.

navx_frc.jar is from a third party (Kauai Labs) and isn't included directly in the WPI Library, which is why its necessary to modify your project's "Project Build properties" (build.properties) file. The WPI Library has added a variable named userLibs to allow a third party to add libraries to the list of libraries used by your robot application. The ${userLibs} notation is what allows your "Project Build properties" to access that variable.
Reply With Quote