Hey Richard,<br><br>I think this is a good approach. Let's do it!<br><br>As a side note, if you are good with windows shell scripting (you have to be better than I,) do you think you might also be able to try this one? <a href="https://issues.jboss.org/browse/FORGE-305">https://issues.jboss.org/browse/FORGE-305</a><br>
<br>All we need is a simply test. If NOT Java Version >= 6, Exit with error.<br><br>If that's tricky, no worries!<br><br>~Lincoln<br><br><div class="gmail_quote">On Wed, Feb 29, 2012 at 10:04 PM, Richard Kennard <span dir="ltr"><<a href="mailto:richard@kennardconsulting.com">richard@kennardconsulting.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
I have identified the problem with installing plugins of Windows and looking for .forge in the wrong location. It seems it has nothing to do with any Java<br>
code. Rather, the file bin/forge.bat contains...<br>
<br>
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")<br>
...<br>
-modulepath %HOME%\.forge\plugins<br>
<br>
So it is using the variable %HOME% *if it is not already set*. However, there is a small, fringe project (I don't think it'll ever catch on :) called 'Git'<br>
which asks you to set an environment variable called HOME too. If I change all references to %HOME% to, say, %USERHOME%...<br>
<br>
if "%USERHOME%" == "" (set "USERHOME=%HOMEDRIVE%%HOMEPATH%")<br>
...<br>
-modulepath %USERHOME%\.forge\plugins<br>
<br>
Then it works. I haven't pushed any changes in case you disagree with this approach?<br>
<br>
Regards,<br>
<br>
Richard.<br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>"Keep it Simple"<br>