![]() |
Change Eclipse wpilib directory
First time poster and complete noob here. Any help is appreciated!
My end goal is to have our code shared between computers using github, sourcetree, and eclipse. We are primarily programming on MacBook Pros. My guess is that everything that relates to the user account folder needs to change because as soon as I push that to github and pull it down on another computer there will obviously be errors. It seems the wpilib directory is installed by default to the home user account on Mac. I cannot find a way to change this directory. Instead, I copied the directory to the root folder (Macintosh HD), which is also where I placed the /Repositories folder (and made that folder the default workspace in Eclipse). Naturally that threw some build path errors so I went into the build path preferences and updated the wpilib and networktables variables to be my new /wpilib directory. Everything seemed to be working fine until I went to build. I am now getting some errors and it is obvious that it is still looking to the home directory for certain things. Here is the output of the build: Code:
Buildfile: /Repositories/Team-5407/build.xmlAnd here is my updated build.xml in my attempt to tweak it so that it does not use the home user directory: Code:
<?xml version="1.0" encoding="UTF-8"?> |
Re: Change Eclipse wpilib directory
Quote:
It's failing to communicate with the roboRIO, which does not appear to be related to moving everything. Does it communicate with the default settings? |
Re: Change Eclipse wpilib directory
Interesting...maybe I took this a bit too far when I noticed user name errors when the repository was in the user folder as well. I'll redo the wpilib and networktables variables back to the user folder and keep the repository on the root and see if that works. Thanks!
|
Re: Change Eclipse wpilib directory
It's okay to use the default location for wpilib because by default, the user's home directory is expressed as a variable user.home in build.xml rather than explicitly. Therefore, your code is already portable between machines.
|
Re: Change Eclipse wpilib directory
Thanks for the confirmation. I successfully reworked our environment so that the repository is under /Repositories and the wpilib is under /Users/<user>/wpilib and it all seems to be working great between machines. Thanks!
|
| All times are GMT -5. The time now is 01:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi