<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Antonio,</div><div><br></div><div>There are two options:</div><div><br></div><div>- I usually build the whole project (tests disabled), then go into dist/target and unzip the distribution. After that I remove my ~/.forge and install the core with forge -i org.jboss.forge.addon:core,2.0.1-SNAPSHOT -b.&nbsp;</div><div><br></div><div>- create tests using the shell-test-harness. &nbsp;</div><div><br></div><div>There is a sh script in the forge/core root that does the unzipping but I usually do it manually.</div><div><br>Em 16/02/2014, às 17:48, Antonio Goncalves &lt;<a href="mailto:antonio.mailing@gmail.com">antonio.mailing@gmail.com</a>&gt; escreveu:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi developers,<div><br></div><div>I'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&nbsp;</span><b>public static void </b><span class="">main method) the output just hangs (like when the Shell is not installed) :&nbsp;</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 :&nbsp;</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>"Confirm installation [Y/n]? "</b></span>);</font></p><p class="">So on debug mode I set the result to "Y" 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>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>forge-users mailing list</span><br><span><a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/forge-users">https://lists.jboss.org/mailman/listinfo/forge-users</a></span></div></blockquote></body></html>