Gert,
Yes, the <patternset> works exactly as desired. I can define a
<patternset> (in this case with a dozen entries) and reuse it throughout
my set of scripts.
Thanks.
Ken
From: Gert Driesen [mailto:gert.drie...@telenet.be]
Sent: Tuesday, January 06, 2009 4:18 PM
To: Parrish, Ken; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] External reference to a <fileset>
Ken,
You should actually be using a <patternset> in combination with a
fileset:
http://nant.sourceforge.net/release/latest/help/types/patternset.html
Hope this helps,
Gert
From: Parrish, Ken [mailto:kparr...@gomez.com]
Sent: dinsdag 6 januari 2009 21:20
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] External reference to a <fileset>
I am attempting to use the feature of a <fileset> which allows for an
external reference to a pre-defined fileset. This would be most useful
in my application in cases where a complicated include/exclude filter
needs to be applied to several file and directory operations.
However, the behavior of the 'basedir' attribute is not what I would
expect:
<fileset id="webSiteFileSet">
<include name="*.*" />
<exclude name="*.config" />
<exclude name="database*.xml" />
</fileset>
<target name="PurgeSite" >
<echo message=" PurgeSite = ${PurgeSite_dir}" />
<delete>
<fileset refid="webSiteFileSet"
basedir="${PurgeSite_dir}" />
</delete>
</target>
In this case, I would expect the 'basedir' attribute that I supplied in
the <delete> task to take effect. However, only if the 'basedir'
attribute is specified in the <fileset> definition, will it be properly
applied by the <delete> task.
Is this by design? Is this a bug or oversight? Is there a mechanism
for causing the <delete> task to behave as I am attempting to use it in
the above case?
Thanks,
Ken Parrish
Gomez, Inc.
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.10.2/1873 - Release Date:
1/5/2009 7:20 PM
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users