title: Execute jar command exclude files
body: <p>I followed <a href="http://download.oracle.com/javase/6/docs/technotes/tools/solaris/jar.html" rel="noreferrer">The Java Archive Tool</a> but couldn't find how to exclude folders.</p>
  
  <p>For example, I have the files under working copy directory:</p>
  
  <pre><code>workingcopy
  --src
    --.svn
    -- com
  --.svn
  --WebContent
  </code></pre>
  
  <p>I would like to compile and create jar only from the classes under <code>src</code> excluding all folders starting with .svn directory. I want to run it from <code>cmd</code> like <code>jar -cf test.jar</code> etc..</p>
  
  <p>How can I do it?</p>