<div dir="ltr">Hi developers,<div><br></div><div>I&#39;ve cloned Forge 2 code on my local computer, I create pull/requests, test new functionalities.... But do you know how I actually run the command shell from the code ?</div>
<div><br></div><div>If I run the <font face="courier new, monospace">org.jboss.forge.</font><span class=""><font face="courier new, monospace">bootstrap.Bootstrap</font> class (it has a </span><b>public static void </b><span class="">main method) the output just hangs (like when the Shell is not installed) : </span></div>
<div><span class=""><br></span></div><div><span class=""><font face="courier new, monospace">JBoss Forge, version [ 2.0.1-SNAPSHOT ] - JBoss, by Red Hat, Inc. [ <a href="http://forge.jboss.org">http://forge.jboss.org</a> ]</font><br>
</span></div><div><span class=""><br></span></div><div><span class="">So I thought of passing this argument to the Bootstrap class (--install org.jboss.forge.addon:core,2.0.1-SNAPSHOT) but there is a NPE at : </span></div>
<div><span class=""><br></span></div><div><span class="">







<p class=""><font face="courier new, monospace">String result = System.<i>console</i>().readLine(<span class=""><b>&quot;Confirm installation [Y/n]? &quot;</b></span>);</font></p><p class="">So on debug mode I set the result to &quot;Y&quot; but after <font face="courier new, monospace">bootstrap.start();</font> the VM just stopped gently.</p>
</span></div><div><span class="">I suppose the underlying question is : how do you run the shell once you have made a change and want to test it ?</span></div><div><span class=""><br></span></div><div><span class="">Antonio</span></div>
















</div>