Please see prev. message about the frown...

> -----Original Message-----
> On Behalf Of Ian MacLean
> Brad Wilson wrote:
> >Scott Hernandez wrote:
> >
> >>Instead there is a xslt file(xslt/projecthelp.xslt) defined to
generate
> >>the help you are talking about. In the xslt file there is xpath
query
> >>that digs up the description from targets and displays it. This xslt
> >>doesn't use the classes at all :(
> >>
> >
> >Why is that worth a frown? What's wrong with using XSL-T for that?
> >
> I'm with you on this one Brad. That was originally using code against
> the loaded xml file and Gerry and I decided to change to the xslt way
so
> that it could run without acually loading the build file into nant -
ie
> only the transform needs to run.

I was looking at the NAnt.cs and Project.cs code. Is there any reason
that Project doesn't have a constructor that takes the XMLDocument? It
seems like you can't have a project without a build (project) file. It
also seems like you should not reuse a Project object if you have
already Run() it. This would make each Project instance single use.

Does it make sense to require that the public constructor takes an
XMLDocument, or string, or other input. Then we would have to make the
BuildFileName a get only. This would tie the concept of single use to
project more clearly in the coder's mind...


_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to