<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Question relevant on the list.&nbsp;<br><br>/max<div><a href="http://about.me/maxandersen">http://about.me/maxandersen</a></div><div><br></div></div><div><br>On 08 Dec 2015, at 05:09, Rob Stryker &lt;<a href="mailto:rob.stryker@jboss.com">rob.stryker@jboss.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    <div class="moz-cite-prefix">Hey Guys:<br>
      <br>
      Can you clarify how you guys call filesystem commands like npm and
      cordova? <br>
      <br>
      In the CDK tools as currently coded, we do two different things.&nbsp;
      One, is that we create an "External Tools Launch Configuration"
      which runs the command. This requires knowing the actual location
      of the executable.&nbsp; The other is to simply call Runtime.exec(etc)
      and get a Process from it. <br>
      <br>
      The external tools launch config is useful because it opens a
      console for us and means we don't have to do any of the wiring, so
      we use that when we know we want the commands to be visible to the
      user. We use the runtime.exec() in the background for commands
      that we want to run without showing the user (for example if we
      did a vagrant adbinfo)<br>
      <br>
      How do you all do it?<br>
      <br>
      - Rob Stryker<br>
      <br>
      <br>
      On 12/03/2015 11:36 AM, Max Rydahl Andersen wrote:<br>
    </div>
    <blockquote cite="mid:jbosstools%2Fjbosstools-openshift%2Fpull%2F831%2Fr46575476@github.com" type="cite">
      <p>In <a moz-do-not-send="true" href="https://github.com/jbosstools/jbosstools-openshift/pull/831#discussion_r46575476">plugins/org.jboss.tools.openshift.cdk.server/src/org/jboss/tools/openshift/cdk/server/core/internal/CDKConstantUtility.java</a>:</p>
      <pre style="color:#555">&gt;          public static String getVagrantLocation() {
&gt; -                return VAGRANT_LOCATION_LINUX;
&gt; +                return findVagrantLocation();
</pre>
      <p>im wondering if we are better of launching this similar to what
        <a moz-do-not-send="true" href="https://github.com/gercan" class="user-mention">@gercan</a> and <a moz-do-not-send="true" href="https://github.com/ibuziuk" class="user-mention">@ibuziuk</a> been doing for npm and
        cordova cli tools.</p>
      <p>i.e. call out via bash or cmd.exe making it up to the user to
        have it properly configured in PATH</p>
      <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>
        Reply to this email directly or <a moz-do-not-send="true" href="https://github.com/jbosstools/jbosstools-openshift/pull/831/files#r46575476">view
          it on GitHub</a>.<img moz-do-not-send="true" alt="" src="https://github.com/notifications/beacon/AAmeb6mIhPgXeM33fzWC8KQs43GH6aibks5pMGbygaJpZM4Gtp6v.gif" height="1" width="1"></p>
      <div itemscope="" itemtype="http://schema.org/EmailMessage">
        <div itemprop="action" itemscope="" itemtype="http://schema.org/ViewAction">
          <link itemprop="url" href="https://github.com/jbosstools/jbosstools-openshift/pull/831/files#r46575476">
          <meta itemprop="name" content="View Pull Request">
        </div>
        <meta itemprop="description" content="View this Pull Request on
          GitHub">
      </div>
    </blockquote>
    <br>
  

</div></blockquote></body></html>