-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGradleRIO4Dummies.txt
55 lines (44 loc) · 1.93 KB
/
GradleRIO4Dummies.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
HOW TO GRADLERIO:
Note: Make sure your terminal/command prompt is in the
same directory as the gradlew/gradlew.bat files...
1) To run gradle, type:
gradlew (Windows)
./gradlew (Mac/Linux/UNIX)
Not working? Try gradlew.bat for Windows.
2) To setup WPILib, run:
gradlew wpi (Windows)
./gradlew wpi (Mac/Linux/UNIX)
3) To setup your workspace, do the following:
-for IntelliJ IDEA:
gradlew idea (Windows)
./gradlew idea (Mac/Linux/UNIX)
Open the .ipr file in IntelliJ, or double click to open it
-for Eclipse:
gradlew eclipse (Windows)
./gradlew eclipse (Mac/Linux/UNIX)
Point your eclipse workspace to this directory
Dependencies aren't loaded?
Dependencies are located in ${USERHOME}/wpilib/extracted/library/
Try adding them manually.
4) To deploy code to the RoboRIO, do the following:
-Check all settings in build.gradle are accurate
-Make sure you are connected to the same network as the RIO
-Run the following command
gradlew deploy (Windows)
./gradlew deploy (Mac/Linux/UNIX)
5) To restart robot code:
Restarting Robot Code is to restart the user program on the RoboRIO without
turning off the RoboRIO itself. This is handy for deploys.
To do so, run:
gradlew restart (Windows)
./gradlew restart (Mac/Linux/UNIX)
6) To reboot the RoboRIO:
Rebooting means to completely restart the RoboRIO, not just the code on
it. To do so, run:
gradlew reboot (Windows)
./gradlew reboot (Mac/Linux/UNIX)
7) To clean the code on the RoboRIO:
To clean the code on the RIO means to remove the java file already present
on the RIO. This is useful for debugging. To do so, run:
gradlew cleanRIO (Windows)
./gradlew cleanRIO (Mac/Linux/UNIX)