<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I beliee the problem is that the default Console tab in Eclipse does not handle System.in very well (Tabs, etc). Koen is working in the Forge 2 Console view and should allow this very soon.</div><div><br>Em 17/02/2014, às 08:10, Antonio Goncalves &lt;<a href="mailto:antonio.mailing@gmail.com">antonio.mailing@gmail.com</a>&gt; escreveu:<br><br></div><div><span></span></div><blockquote type="cite"><div><div dir="ltr">Well, I also do the entire "remove my ~/.forge and install the core with forge -i org.jboss.forge.addon:core,2.0.1-SNAPSHOT -b"... but I thought there was something easier. So, from my IDE I cannot run a Main class somewhere that kick off Forge locally (without having to istall it) ?<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-16 23:43 GMT+01:00 George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div 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" target="_blank">antonio.mailing@gmail.com</a>&gt; escreveu:<br>
<br></div><div><div class="h5"><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><font face="courier new, monospace">bootstrap.Bootstrap</font> class (it has a&nbsp;</span><b>public static void </b><span>main method) the output just hangs (like when the Shell is not installed) :&nbsp;</span></div>

<div><span><br></span></div><div><span><font face="courier new, monospace">JBoss Forge, version [ 2.0.1-SNAPSHOT ] - JBoss, by Red Hat, Inc. [ <a href="http://forge.jboss.org" target="_blank">http://forge.jboss.org</a> ]</font><br>

</span></div><div><span><br></span></div><div><span>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><br></span></div><div><span>







<p><font face="courier new, monospace">String result = System.<i>console</i>().readLine(<span><b>"Confirm installation [Y/n]? "</b></span>);</font></p><p>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>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><br></span></div><div><span>Antonio</span></div>
















</div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>forge-users mailing list</span><br><span><a href="mailto:forge-users@lists.jboss.org" target="_blank">forge-users@lists.jboss.org</a></span><br>
<span><a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a></span></div></blockquote></div><br>_______________________________________________<br>

forge-users mailing list<br>
<a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Antonio Goncalves&nbsp;<br>
Software architect and Java Champion<br><br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a>&nbsp;|&nbsp;<a href="http://twitter.com/agoncal" target="_blank">Twitter</a>&nbsp;|&nbsp;<a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a>&nbsp;|&nbsp;<a href="http://www.parisjug.org/" target="_blank">Paris JUG</a>&nbsp;|&nbsp;<a href="http://www.devoxx.fr/" target="_blank">Devoxx France</a>
</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>