title: Does groovy have an easy way to get a filename without the extension?
body: <p>Say I have something like this:</p>
  
  <pre><code>new File("test").eachFile() { file-&gt;  
  println file.getName()  
  }
  </code></pre>
  
  <p>This prints the full filename of every file in the <code>test</code> directory.  Is there a Groovy way to get the filename without any extension?  (Or am I back in regex land?)</p>