Hey Richard,<br><br>I think this is a good approach. Let&#39;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 &gt;= 6, Exit with error.<br><br>If that&#39;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">&lt;<a href="mailto:richard@kennardconsulting.com">richard@kennardconsulting.com</a>&gt;</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 &quot;%HOME%&quot; == &quot;&quot; (set &quot;HOME=%HOMEDRIVE%%HOMEPATH%&quot;)<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&#39;t think it&#39;ll ever catch on :) called &#39;Git&#39;<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 &quot;%USERHOME%&quot; == &quot;&quot; (set &quot;USERHOME=%HOMEDRIVE%%HOMEPATH%&quot;)<br>
     ...<br>
     -modulepath %USERHOME%\.forge\plugins<br>
<br>
Then it works. I haven&#39;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>&quot;Keep it Simple&quot;<br>