Ok, thanks to everyone for their help. Here is the final Execute
method for the task that actually works:
protected override void ExecuteTask()
{
FileSet fileset = Project.DataTypeReferences
[_filesetName] as FileSet;
if (fileset != null)
{
act all the file names out,
>> including
>> wildcard evaluation (FileSet.Filenames property), then create a new
>> fileset,
>> add in the individual files in whatever sorted order is
>> appropriate. Then
>> the existing fileset referenced by the refid would be replaced wi
gt; [mailto:[EMAIL PROTECTED] On Behalf Of
>> Griffin
>> Caprio
>> Sent: Thursday, May 03, 2007 6:18 PM
>> To: Ryan Anthony
>> Cc: nant-users@lists.sourceforge.net
>> Subject: Re: [NAnt-users] Sorting fileset
>>
>> So let's say that's not an
aprio
> Sent: Thursday, May 03, 2007 6:18 PM
> To: Ryan Anthony
> Cc: nant-users@lists.sourceforge.net
> Subject: Re: [NAnt-users] Sorting fileset
>
> So let's say that's not an option.
>
> Is there anything else I can do?
>
> Griffin Caprio
> 312.371.3869
&g
: [NAnt-users] Sorting fileset
Bob,
How would you load the file names into a property ? I always though
properties were restricted to just "name=value" pairs. Is that not
correct?
Griffin
On May 3, 2007, at 5:24 PM, Bob Archer wrote:
> Put the file names in a property and so
he
> names in the property running them in that order.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Griffin
> Caprio
> Sent: Thursday, May 03, 2007 6:18 PM
> To: Ryan Anthony
> Cc: nant-users@lists.sourceforge.net
>
FileSet)dtb;
}
throw new Exception("FileSet ID is empty");
}
}
-Alan
> From: [EMAIL PROTECTED]> Date: Thu, 3 May 2007 17:31:04 -0500> To: [EMAIL
> PROTECTED]> CC: nant-users@lists.sourceforge.net> Subject: Re: [NAnt-users]
> Sorting fileset> > Seems a bit heavy
-fileset?
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Griffin
> Caprio
> Sent: Thursday, May 03, 2007 3:18 PM
> To: Ryan Anthony
> Cc: nant-users@lists.sourceforge.net
> Subject: Re: [NAnt-users] Sorting fileset
>
> So let
@lists.sourceforge.net
Subject: Re: [NAnt-users] Sorting fileset
So let's say that's not an option.
Is there anything else I can do?
Griffin Caprio
312.371.3869
http://blog.1530technologies.com
On May 3, 2007, at 4:08 PM, Ryan Anthony wrote:
> I believe the quick and dirty answer is
So let's say that's not an option.
Is there anything else I can do?
Griffin Caprio
312.371.3869
http://blog.1530technologies.com
On May 3, 2007, at 4:08 PM, Ryan Anthony wrote:
> I believe the quick and dirty answer is to add a zero in front of each
> single digit number.
>
> Ryan
>
> Griffin
I believe the quick and dirty answer is to add a zero in front of each
single digit number.
Ryan
Griffin Caprio wrote:
> Hello all,
>
> I am trying to iterate through a directory of files that are
> numerically named:
>
> 1.sql
> 2.sql
> ...
>
> Using the foreach task is easy:
>
>
>
Griffin
Caprio
Sent: Thursday, May 03, 2007 4:56 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Sorting fileset
Hello all,
I am trying to iterate through a directory of files that are
numerically named:
1.sql
2.sql
...
Using the foreach task is easy
Hello all,
I am trying to iterate through a directory of files that are
numerically named:
1.sql
2.sql
...
Using the foreach task is easy:
However, this returns the list of files, sorted in text fashion, not
n
13 matches
Mail list logo