ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: problem excluding files from JAR task
Date Fri, 21 Mar 2003 22:22:53 GMT
Must be because the include/exclude attributes are supposed to take relative
path names or patterns, relative to the fileset's dir attribute ;-) --DD

-----Original Message-----
From: Mike McNally [mailto:m5@works.com] 
Sent: Friday, March 21, 2003 4:21 PM
To: Ant Users List
Subject: Re: problem excluding files from JAR task

>      <jar  destfile="${jar.dest}/${jar.filename}">
>        <fileset dir="${compile.dest}"
>          excludes="${compile.dest}/ovtest/**/*.class"/>
>      </jar>

There's a good degree of pickiness that I haven't fully figured out about 
absolute pathnames in includes/excludes.

> I am unable to exclude these files from the finished jarfile. It fails
under
> every slight variation of this command I've tried. For example, this
> variation also fails:
> 
>      <jar  destfile="${jar.dest}/${jar.filename}">
>        <fileset dir="${compile.dest}"/>
>        <fileset dir="${compile.dest}/ovtest"
>          excludes="**/*.class"/>
>      </jar>

How about:

      <jar  destfile="${jar.dest}/${jar.filename}">
        <fileset dir="${compile.dest}">
          <include name='**/*.class'/>
          <exclude name="ovtest/**/*.class"/>
        </fileset>
      </jar>

--
[ you are my main foo ] Mike McNally -- m5@works.com

Mime
View raw message