Ticket #49 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

TarTask does not exclude directories when using fileset

Reported by: hans Assigned to: hans
Priority: major Milestone: 2.2.0
Component: Version: 2.2.0RC3
Keywords: tar, fileset Cc:

Description

Currently if the basedir attribute is set, then a include-all fileset is created at that directory. Arguably, this is "supposed" to happen, but it creates some bugs that are hard to track down, in the event that you do something like this for your TarTask:

<tar compression="gzip" destFile="${tarfile}" basedir="${build.target.dir}">
        <fileset dir="${build.target.dir}">
                <include name="app/**"/>
                <exclude name="app/cache/**"/>
        </fileset>
</tar>

In that case the app/cache directory will be included, because a fileset that includes it has been created automatically.

The appropriate fix - to bring this inline with documentation - for this is probably to only create this other fileset if there is none specified in the tar task.

Attachments

Change History

08/08/06 20:19:54 changed by hans

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in changeset:102


Add/Change #49 (TarTask does not exclude directories when using fileset)




Action