From 08ed0b286994fe3929c32c6548f616cf05e3bc27 Mon Sep 17 00:00:00 2001 From: Alex Henning Date: Fri, 20 Jun 2014 14:23:15 -0700 Subject: [PATCH] Fixed eclipse bug on windows when not run from command prompt. Change-Id: I5e908e163f13e79d4714bcf6243ebe17e3f767e7 --- .../first/wpilib/plugins/core/wizards/NewProjectMainPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclipse-plugins/edu.wpi.first.wpilib.plugins.core/src/main/java/edu/wpi/first/wpilib/plugins/core/wizards/NewProjectMainPage.java b/eclipse-plugins/edu.wpi.first.wpilib.plugins.core/src/main/java/edu/wpi/first/wpilib/plugins/core/wizards/NewProjectMainPage.java index 354067ab11..f34cd66144 100644 --- a/eclipse-plugins/edu.wpi.first.wpilib.plugins.core/src/main/java/edu/wpi/first/wpilib/plugins/core/wizards/NewProjectMainPage.java +++ b/eclipse-plugins/edu.wpi.first.wpilib.plugins.core/src/main/java/edu/wpi/first/wpilib/plugins/core/wizards/NewProjectMainPage.java @@ -227,7 +227,7 @@ public class NewProjectMainPage extends WizardPage { } public String getWorld() { - return worldText.getText().replace(System.getenv("HOME"), "${user.home}"); + return worldText.getText().replace(System.getProperty("user.home"), "${user.home}"); } public void setShowPackage(boolean bool) {