title: Apache Ant - Select All Symlinks
body: <p>I need a symbolic link selector in Apache Ant.</p>
  
  <p>The <a href="http://ant.apache.org/manual/Types/selectors.html" rel="nofollow">following selectors</a> are available to the Core.</p>
  
  <p>Can anyone advise me on writing a <a href="http://ant.apache.org/manual/Types/selectors.html#scriptselector" rel="nofollow"><code>&lt;scriptselector&gt;</code></a> for selecting only the symbolic linked files under a directory?  Or any other way?</p>
  
  <p>The reason:</p>
  
  <pre><code>folder
  |-- file-0.0.1
  |-- file-0.0.2
  |-- file-0.0.3
  `-- file --&gt; file-0.0.3
  </code></pre>
  
  <p>I just want to get the file that is symbolically linked by <code>file</code>.  In this case <code>file-0.0.3</code>, but the symbolic link can change and I don't want all the other files to be in the Ant <code>&lt;fileset&gt;</code></p>