• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1515
  • Last Modified:

how to include a folder in JAR file using ANT

Hi,

Here is the folder hierarchy of my project. I want to include the folder "res" into the JAR file with the class files. I've use
   
                      <fileset dir="res"></fileset>

 but it only include the contents of the folder "res" not the whole folder res into JAR file :(

<target name="make-jar" depends="compile" description="">
        <jar destfile="${jar.file}">
        	  <fileset dir="${bin.dir}" includes="**/*.class"></fileset>
	          <fileset dir="res"></fileset>
        </jar>
</target>

Open in new window

ant.png
0
pdidominic
Asked:
pdidominic
1 Solution
 
CEHJCommented:
Simply moving the res folder under src might do the trick without even using Ant
0
 
objectsCommented:

       
                 
                 
       


0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now