ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike McNally ...@works.com>
Subject Re: problem excluding files from JAR task
Date Fri, 21 Mar 2003 22:21:03 GMT
>      <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