Open-RIO / ToastAPI

An Open Source robot API for FRC - The Best thing since Sliced Bread
MIT License
71 stars 12 forks source link

Simulation through gradle uses different toast dir and resets config #19

Open floogulinc opened 8 years ago

floogulinc commented 8 years ago

When you start a simulation through gradle simulation, it puts the toast folder in run/gradle/simulation instead of just in run as it does when started from Eclipse. It also won't keep changes made to the toast.conf file and just rewrites it to defaults on every run.

Thanks to @randbrown for noticing this issue.

JaciBrunning commented 8 years ago

The reason Gradle's simulation runs under run/gradle/simulation instead of just run is because of Toast Libraries and Modules. In an IDE, Toast dependencies (both libraries and modules from the user's buildscript) are already linked. In Gradle Simulation, they have to be exported manually to toast/libs and toast/modules. If these were to keep the same simulation directory, the IDE would have 2 conflicting sets of libraries.

The non-persistence issue is fixed in commit c13654e in GradleRIO