Go to Post Welcome to FIRST! You will soon figure out that there is no "exit strategy" from this program. - David Brinza [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2017, 16:34
bdaroz's Avatar
bdaroz bdaroz is offline
Programming Mentor
AKA: Brian Rozmierski
FRC #5881 (TVHS Dragons)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Albany, NY
Posts: 408
bdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud of
Java WPILib in-project ANT installer

This is an update from our 2016 ANT installer for WPILib.

This is mostly for teams not using Eclipse who want to continue to use ANT (and as much of the stock WPILib as possible) to build and deploy code to the RoboRIO. We use this in IntelliJ in place of GradeRIO.

https://gist.github.com/bdaroz/4f1e8...e382a671e7ae4c

To use: copy/modify the build.properties file for your robot, but the lines at the bottom are new. They specify the URLs to the current WPILib and CTRE libraries, and what libraries should be installed.

(Those are the ones we use -- if you need others, please let me know and we can add them)

Add the included build.xml and install.xml to your project. The build.xml is basically the 2016 build.xml with a few property additions. The install.xml is the secret sauce.

To install the WPILib into the project directory, run the install task in install.xml. (You can also run clean to delete it.) It will download the specified WPILib plugin version, install the lib and the CTRE library (if set in build.properties).

From there building and deploying is the same as it was in Eclipse - just call the proper ANT task from build.xml.

Of course, if using git or source code control, we recommend adding the WPILib directory to .gitignore (or similar), but do add the build.properties and .xml files.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi