From 9bb8ac0ac1d9146c8ca51b25f2bee85b120a6a28 Mon Sep 17 00:00:00 2001 From: Sam Carlberg Date: Fri, 6 Jan 2017 16:02:49 -0500 Subject: [PATCH] Set default codegen dir to ~/GRIP (#778) Fixes #776 --- .../wpi/grip/core/settings/CodeGenerationSettings.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/edu/wpi/grip/core/settings/CodeGenerationSettings.java b/core/src/main/java/edu/wpi/grip/core/settings/CodeGenerationSettings.java index 1f3626dbaa..aa87cafdbd 100644 --- a/core/src/main/java/edu/wpi/grip/core/settings/CodeGenerationSettings.java +++ b/core/src/main/java/edu/wpi/grip/core/settings/CodeGenerationSettings.java @@ -1,5 +1,7 @@ package edu.wpi.grip.core.settings; +import edu.wpi.grip.core.GripFileManager; + import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; @@ -50,7 +52,12 @@ public class CodeGenerationSettings { * */ CodeGenerationSettings() { - this("Java", "GripPipeline", false, System.getProperty("user.home"), "", "grip"); + this("Java", + "GripPipeline", + false, + GripFileManager.GRIP_DIRECTORY.getAbsolutePath(), + "", + "grip"); } /**