title: Eclipse: Exclude (test) folder from distribution (jar)
body: <p>Assuming I have a simple project structure that separates application sources from test sources like:<br/></p>
  
  <blockquote>
    <p>Project <br/>  &nbsp;&nbsp;|-src<br/>   &nbsp;&nbsp;|-test<br/></p>
  </blockquote>
  
  <p>and I want to exclude <code>test</code> folder from executable jar using Eclipse. </p>
  
  <p>Eclipse let's you select which folders to include when creating a jar. It does not let you do it when creating an <strong>executable jar</strong>.
  Searching for a solution I found suggestions to 
  <br/><a href="https://stackoverflow.com/a/11702359/3992939">manually edit the ant build</a>or <a href="http://maven.40175.n5.nabble.com/Excluding-packages-and-classes-from-jar-td106688.html" rel="nofollow noreferrer">maven</a>,
  <br/> or <a href="https://stackoverflow.com/a/11641680/3992939">exclude test folders from classpath</a> 
  <br/>or <a href="https://stackoverflow.com/a/16188557/3992939">moving test files to a separate project</a> 
  <br/>or <a href="https://www.eclipse.org/forums/index.php?t=msg&amp;th=198085&amp;goto=633133&amp;#msg_633133" rel="nofollow noreferrer">edit the exported jar</a>. <br/></p>
  
  <p>While all this may work, it is not what I am looking for: a simple way to configure Eclipse to do it. </p>
  
  <p>(In Netbeans its quiet simple separating source package folders from test folders, see the following image) </p>
  
  <p><a href="https://i.stack.imgur.com/1bmTc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1bmTc.jpg" alt="enter image description here"></a> </p>