title: Refresh eclipse from the command line
body: <h1>Question</h1>
  
  <p>I want to refresh eclipse from the command line.  How can I do this?  </p>
  
  <h1>Context</h1>
  
  <p>Typically I run builds like this: </p>
  
  <pre><code>$ myCompaniesSpecialBuildScript.sh
  </code></pre>
  
  <p>This does some project setup that is needed for Eclipse to display a project without compilation errors.  </p>
  
  <p>This means that whenever I run a build my steps are: </p>
  
  <ul>
  <li><code>$ myCompaniesSpecialBuildScript.sh</code></li>
  <li><p>Inside eclipse:</p>
  
  <ul>
  <li>Select the project I am working on -> Right click and select <code>Refresh</code>, OR   </li>
  <li>From the top menu: <code>Project -&gt; Clean... -&gt; Clean all</code></li>
  </ul></li>
  </ul>
  
  <p>Ideally, rather than doing this I would much rather run this from the command line: </p>
  
  <pre><code>$ myCompaniesSpecialBuildScript.sh &amp;&amp; myScriptToRefreshEclipse.sh
  </code></pre>
  
  <p>I am looking into how to make <code>myScriptToRefreshEclipse.sh</code>.  </p>
  
  <h1>Progress</h1>
  
  <p>This is what I have found so far: </p>
  
  <ul>
  <li><a href="http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fcore%2Fresources%2FIResource.html">IResource.refresh</a> - Allows resources to be refreshed.  </li>
  <li>There is also <a href="http://www.srccodes.com/p/article/34/problem-failed-to-create-task-or-type-eclipse-refreshlocal">ant task</a> that can be used, that wraps IResource.refresh</li>
  </ul>
  
  <p>It seems like both of these things need to run inside Eclipse's JVM.  Is there a way to get this from the command line?  </p>