----- Original Message -----
From: "Ian MacLean" <[EMAIL PROTECTED]>
To: "Gert Driesen" <[EMAIL PROTECTED]>
Cc: "Nant-Developers (E-Mail)" <[EMAIL PROTECTED]>
Sent: Saturday, July 24, 2004 7:08 AM
Subject: Re: [nant-dev] ResourceFileSet


>
> First off sorry for top-posting but this thread is getting too long to
> reply inline. I agree that having a profusion of resource related
> elements isn't a good thing so lets go with the augmented fileset rather
> than a dedicated <namedresources> element.

We might have one more option : add an <embeddedresources> element, which
supports a nested fileset and a nested array of <resource> element, meaning
something like this :

<csc>
    <embeddedresources>
        <files basedir="..."> (not sure about the <files> name though)
            <include name="..." />
            <include name="..." />
        </files>
        <resource file=".." name=" "  /> (files name would be relative to
project base directory)
        <resource file=".." name=" "  />
    </embeddedresources>
</csc>

I do think its less confusing, but it is ofcourse (a lot) more verbose ...
Not sure I really like it myself ...

What will we do with the accessibility modifier that can be specified for
resources files in .NET 2.0 ?  Should we add a "accessibility" (any better
name for this ?) attribute to the (Resource/ResX/Whatever)FileSet (we can't
have one on the individual include elements, that's for sure) and to the
<resource> element  ? Guess so, right ?

> Now just to be clear on what
> we are going to need in terms of fileset types:
>
> an augmented resourcefileset that supports explicit names ( will be used
> by compiler tasks )
> a new type extending fileset that supports explicit names ( will be used
> by the al task )

I'd like to hear you opinion on <embeddedresources> element first (although
I know what you'll be saying, and I can't say I don't agree), but if we
still to the "old" plan then we could just rename the current
ResourceFileSet to ResXFileSet (although it handles more than just resx
files) and use that for the compiler tasks, and add a new ResourceFileSet
for the al task, right  ?

> resgen will change to using a regular fileset instead of a
> ResourceFileSet. Incidentally why does it use ResourceFileSet now ? Is
> it just for easier assignment from the  compiler tasks ?

Its not easier at all, so I really have no clue ...

>
> is that an accurate summation ?

Yes, definitely.

Gert



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to