mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Only update FRC Java Projects (fixes artf2627)
Change-Id: I62715ab5ed01d1d6c6ee1a877fad3d12a5c0219b
This commit is contained in:
@@ -100,11 +100,15 @@ public class WPILibJavaPlugin extends AbstractUIPlugin implements IStartup {
|
||||
IProject[] projects = root.getProjects();
|
||||
// Loop over all projects
|
||||
for (IProject project : projects) {
|
||||
try {
|
||||
updateVariables(project);
|
||||
} catch (CoreException e) {
|
||||
WPILibJavaPlugin.logError("Error updating projects.", e);
|
||||
}
|
||||
try {
|
||||
if(project.hasNature("edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature")){
|
||||
WPILibJavaPlugin.logInfo("Updating project");
|
||||
updateVariables(project);
|
||||
} else {
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
WPILibJavaPlugin.logError("Error updating projects.", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user