-
Notifications
You must be signed in to change notification settings - Fork 0
Creating a New Project
Zach Anderson edited this page Jan 22, 2014
·
2 revisions
Before starting work on a new project, make sure you pull the latest changes from GitHub and create an appropriate branch. See Using Git for instructions.
Once you've set everything up you're going to want to start working. If all you want to do is modify and existing project, then you can get right into that. But if you want to work on something that hasn't been worked on before, you'll want to create a new project. You could create a new project from scratch, but that will take time to get everything set up. The easiest way to get started is to copy the TemplateRobot
project.
####Duplicating the Project
- Right click on the
templateProject
in the Eclipse Package Explorer and select copy. - Right click on the white space beneath all of the existing projects and select paste. A dialogue window will appear.
- Replace
Copy of TemplateRobot
with the name of your project. - If your projects are not stored in your workspace directory then uncheck
Use default location
and navigate to the directory where your projects are stored. Create a new directory with the same name as your project and put that directory in the location box. - Eclipse will copy the files to the provided directory and create a new project in the
Package Explorer
.
####Renaming Assets
- In the
Package Explorer
expand the project and then the src folder. - Right click on the package
org.frc4931.name.robot
, mouse overRefactor
, and then selectRename...
, another dialogue box will appear.
- Change
name
to your first name androbot
to the name you used for the project, in all lowercase, then clickOK
- Now do the same thing with
TemplateRobot.java
, only this time change the name to the name of your project, preserving caps.
####Modifying Build Resources
- Now expand the
resources
folder. Inside isMETA-INF
expand that too. OpenMANIFEST.MF
- On line 1 change
TemplateRobot
to the name of your robot. - On line 4 change both occurences of
TemplateRobot
to the name of your robot. Changename
to your name androbot
to you robot's name, again in lowercase. Leave line 7 blank.
- Open up
build.xml
. ChangeTemplateRobot
to the name of your robot. - If you plan to deploy to the old robot, change
10.49.31.2
to10.99.31.2
, otherwise leave it unchanged.
- Edit
README.MD
to contain information about your project. Goals, tasks, todos, usage, etc. - Save your changes to all of your files and close them.
- Stage your changes.
- Commit your changes to git with a message similar to "Initial Commit."
- Start working.