<div dir="ltr">Antonio, if I understand you correctly, you want to be able to run the Forge shell via the Forge sources in the IDE. Unfortunately there&#39;s not really a way to do that currently since as George says, the IDE terminals basically can&#39;t handle TAB characters or backspace very well.<div>
<br></div><div>Though this does give me the idea that we should really provide this as a feature somehow if possible. Maybe as a &quot;Run&quot; type. &quot;Run in Forge Console&quot;, so that you could try out any application in the Forge terminal. This would obviously let you run Forge sources as well (E.g. Running the Bootstrap class in the Forge Console would give you the same result as running the Forge Console and starting Forge via the green button.</div>
<div><br></div><div>Koen, is this something you think we can do at some point?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 17, 2014 at 7:05 AM, George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div 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" target="_blank">antonio.mailing@gmail.com</a>&gt; escreveu:<br><br></div><div><div class="h5"><div><span></span></div><blockquote type="cite">
<div><div dir="ltr">Well, I also do the entire &quot;remove my ~/.forge and install the core with forge -i org.jboss.forge.addon:core,2.0.1-SNAPSHOT -b&quot;... 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. </div>

<div><br></div><div>- create tests using the shell-test-harness.  </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><blockquote type="cite"><div><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><font face="courier new, monospace">bootstrap.Bootstrap</font> class (it has a </span><b>public static void </b><span>main method) the output just hangs (like when the Shell is not installed) : </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 : </span></div>
<div><span><br></span></div><div><span>







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

Software architect and Java Champion<br><br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a> | <a href="http://twitter.com/agoncal" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a> | <a href="http://www.parisjug.org/" target="_blank">Paris JUG</a> | <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" 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></div></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>Lincoln Baxter, III<br>
<a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;
</div>