View Single Post
  #1   Spotlight this post!  
Unread 01-15-2015, 10:22 PM
EdWard3637's Avatar
EdWard3637 EdWard3637 is offline
Registered User
AKA: Eric Ward
FRC #3637 (Daleks)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Flemington, NJ
Posts: 10
EdWard3637 is an unknown quantity at this point
Custom Make Targets in Eclipse

So I wrote a script which aggregates a spreadsheet on our team's shared drive with electrical port data into a header file which can be accessed at a certain URL.

I want to modify the robot's build settings so that you can download this header file into the workspace from eclipse using a custom make target. I edited the build.xml, with the following code.

<target name="port_names">
<echo> Retrieving Hardware.h </echo>
<get dest="${src.dir}/Hardware.h" src="${URL}" verbose="on" maxtime="10" />
</target>

When I add this to build.xml it adds a node in the outline "port_names." When I right click this node and click "Run as > Ant Build" it works. However I cannot figure out how to add Make Targets to the project such that it would do this from the Make Target Browser. Whenever I try creating a make target with the name "port_names" however, it just builds the User Program when I run it.

Has anyone successfully set up custom make commands? I'm also looking to set this up to customize robot deploys.
Reply With Quote