Try includes="**/src/**,**/pages/**,**/WEB-INF/**"

-----Original Message-----
From: James Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 1:24 PM
To: [EMAIL PROTECTED]
Subject: Problem creating a jar file


Hello,

I am trying to get a jar command to work via ant but I'm getting an
empty jar file.  Hopefully someone can tell me what I'm doing wrong.

I have the following jar target section in my build.xml:


    <target name="jar"
            depends="init,prepare,compile" >
        <jar destfile="/home/jadams/CVS/trajview/dist/trajview.jar"
             basedir="."
             includes="pages,src,WEB-INF"
             excludes="**/*~,**/*.jar,**/*.class" />
   </target>


When I issue the command "ant jar" everything runs OK but when I look in
the jar file that was created I only see

META-INF/
META-INF/MANIFEST.MF


I have my JSP and HTML files in a directory named pages, my source files
in a directory tree named src.  I also want to include a few .properties
files and tld's which are under the WEB-INF tree.  This is why I have
included pages, src and WEB-INF in the include attribute.  However these
don't appear to be included in the resulting jar file.

I have excluded files with a tilde on the end (old copies saved by
XEmacs), and any .jar files and .class files which might be found under
the WEB-INF tree.  These files are all excluded but I wonder if I've
mistakenly done something here which is excluding *every* file.  This
seems right according to the Ant User's Manual.


Any suggestions will certainly be appreciated.  Thanks in advance.


-James


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to