ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledgeinc.com>
Subject Re: jar not working with fileset?
Date Fri, 10 Aug 2001 16:22:39 GMT
The patternset works for compiling though, that's what is so mysterious.

I have a target to jar up my classes.
I have a patternset in use with a fileset.  Yet an empty jar file is being
produced.

What am I doing wrong?

The property paths are correct as they work for delete and javac.

    <patternset id="appserver.build.classes" >
        <include name="${project.build.dir}/**/*.class" />
        <include name="${project.build.dir}/api/**/*.class" />
    </patternset>

    <target name="jarProject" depends="init, compileProject">
        <jar jarfile="${dist.dir}/${app.name}.jar">
            <fileset dir="${basedir}">
                <patternset refid="appserver.build.classes"/>
            </fileset>
        </jar>
    </target>


If i use jar's attribute includes with the same pattern, everything works!

T Master


----- Original Message ----- 
From: "Ylan Segal" <ylan@digiworks.tv>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, August 09, 2001 6:11 PM
Subject: RE: jar not working with fileset?


> > What am I doing wrong?
> Can you post the rest also the patternset?
> I bet your problem is there. 
> 
> Ylan



Mime
View raw message