Hi Loren, It wasn't really a minor bug, as it also caused problems if you want to match files in the root directory.
I'll have a fix committed later today. Gert > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Loren Halvorson > Sent: donderdag 18 november 2004 18:18 > To: [EMAIL PROTECTED] > Subject: [Nant-users] Minor and obscure bug in fileset on > 0.85 11/10 nightly build > > I hesitated to even send this bug in because it's really easy to > work-around, and is very minor. But it tripped me up this > morning and it's > probably a simple fix. > > I'm using NAnt 0.85 (Build 0.85.1775.0; nightly; 11/10/2004). I am > <copy>'ing with a <fileset> and when the basedir contains a > trailing slash > (which probably shouldn't have been there in the first place) > it doesn't > pick up all of the wildcarded files. > > I have a "source" directory with two files "file.txt" and > "file.log", and I > want to copy them to "dest" directory. When I specify the > basedir="source\" > directory with a trailing slash, the "file*.log" include does > not pick up > "file.log". When I remove the trailing slash on > basedir="source" it works > fine, or when I remove the wildcard and explicitly name the > file (<include > name="file.log"/>) it works fine. > > Here's the script. > <project name="wildcard-repro" default="go"> > > <target name="go"> > > <delete dir="dest" failonerror="false"/> > > <copy todir="dest"> > > <!-- When there is a trailing slash on basedir... --> > <fileset basedir="source\"> > > <include name="file.txt"/> > > <!-- wildcarded file is not picked up --> > <include name="file*.log"/> > </fileset> > </copy> > > <echo message="FAILED TO COPY file.log" > unless="${file::exists('dest\file.log')}"/> > > </target> > > </project> > > Here is a tiny repro (just for you Gert :-) > http://www.thedivers.com/loren/NAnt/wildcard-repro.zip > > Thanks, > --Loren > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
