ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John C. Turnbull" <>
Subject JAR task not adding all files
Date Mon, 21 Oct 2002 21:53:35 GMT
This is my first Ant project.  I am using J2SE 1.4.0 on Windows 2000 SP3.

I have encountered a problem that appears to be with the JAR task though I
cannot be sure.  The symptom is that an XML file (amongst others) is not
being added to a JAR even though the .class files in the same directory are
being added correctly.  This is some of the output when running Ant
with -verbose:

[jar] adding entry com/acme/util/ClassA.class
[jar] com\acme\util\test.xml omitted as C:\dist\util.jar is up to date.

The relevant section of the build file looks like this:

   <target name="util" depends="libs">
        <jar jarfile="${util}" basedir="${build}">
            <include name="**/util/**" />
        <jar jarfile="${util}" update="yes" basedir="${src}">
            <include name="**/util/**" />
            <exclude name="**/*.java" />

Any ideas?



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message