I thought we had a utility there to get the user forge dir directly. I know
we do in Forge 2. Looks like we don't in Forge 1 -
https://github.com/forge/core/blob/2.0/container-api/src/main/java/org/jboss/forge/container/util/OperatingSystemUtils.java#L85


On Fri, Apr 12, 2013 at 10:24 AM, Koen Aers <notifications@github.com>wrote:

> In shell/src/main/java/org/jboss/forge/shell/ShellImpl.java:
>
> > @@ -114,11 +114,17 @@
> >     static final String PROP_IGNORE_EOF = "IGNOREEOF";
> >     static final int DEFAULT_IGNORE_EOF = 1;
> >
> > -   public static final String FORGE_CONFIG_DIR = System.getProperty("user.home") + "/.forge/";
> > +   public static final String FORGE_CONFIG_DIR;
> > +   static {
> > +	   FORGE_CONFIG_DIR = System.getProperty(
> > +			   PROP_FORGE_CONFIG_DIR,
> > +			   System.getProperty("user.home") + "/.forge/");	
>
> I'm not sure if it makes a lot of sense to replace
> System.getProperty("user.home") by OSUtils.getUserHomePath() which would
> inline to new
> File(System.getProperty("user.home")).getAbsoluteFile().getAbsolutePath().
> But if you want it that way: your wish is my command mylord ;-)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/forge/core/pull/307/files#r3772893>
> .
>



-- 
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."