Add version=current to global wpilib.properties file on any property save

Change-Id: I6dc6eeac27ab97be567450c90f50ace7da6679b7
This commit is contained in:
Patrick Plenefisch
2014-09-13 18:36:02 -04:00
parent 0f0850ca95
commit 472f51fc73

View File

@@ -105,6 +105,7 @@ public class WPILibCore extends AbstractUIPlugin {
public void saveGlobalProperties(Properties props) {
try {
props.setProperty("version", "current");
props.store(new FileOutputStream(new File(WPILibCore.getDefault()
.getWPILibBaseDir() + "/wpilib.properties")),
"Don't add new properties, they will be deleted by the eclipse plugin.");