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