Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java WPILib in-project ANT installer (http://www.chiefdelphi.com/forums/showthread.php?t=153402)

bdaroz 10-01-2017 16:34

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.


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

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