adding non-code resources to jar file using Ant
问题 I am in the process of packaging my java application into a jar file. I am using ant and eclipse. I need to actually include in the jar a couple of separate, non-code files (xml and txt files) directly under the root folder, not in the same place as the code. I am trying to use includesfile, but that doesn't seem to work, here is my ant target: <target name="distribute" depends="compile" includesfile="readthis.txt"> <jar destfile="${distributionDir}/myjar.jar" > <fileset dir="${outputDir}"/>