title: How to add a directory containing properties files to an Ant build.xml?
body: <p>I'm trying to build an "uberjar" with ant, and the project has a config directory with several properties files. </p>
  
  <p>How do I add the config dir to build.xml?</p>
  
  <p>Here's an example of how it's referenced:</p>
  
  <pre><code>static private String CONFIG_DIR = "config/";
  static public String CONFIG_FILE = "proj.properties";
  
  File configFile = new File(CONFIG_DIR, CONFIG_FILE);
  </code></pre>
  
  <p>There are multiple properties files in the config directory. Normally I would just add it to the classpath:</p>
  
  <pre><code>java -classpath bin:lib/*:config some.project.Example
  </code></pre>
  
  <p>Here's my build.xml target, which isn't quite right:</p>
  
  <pre><code>&lt;target name="uberjar" depends="compile"&gt;
    &lt;jar jarfile="${babelnet.jar}"&gt;
      &lt;fileset dir="${bin.dir}"&gt;
        &lt;include name="**/*.class"/&gt;
      &lt;/fileset&gt;
      &lt;zipgroupfileset dir="lib" includes="*.jar"/&gt;
    &lt;/jar&gt;
    &lt;copy todir="config"&gt;
      &lt;fileset dir="config"&gt;
        &lt;include name="**/*.properties"/&gt;
      &lt;/fileset&gt;
        &lt;/copy&gt;
  &lt;/target&gt;
  </code></pre>