Re: [nant-dev] Slingshot, references, and questions

2003-02-03 Thread Jason Diamond
Hi.

- Original Message -
From: Dave Sanders [EMAIL PROTECTED]


 However, I have a problem with Slingshot and a couple of questions for
now:

 1. I saw another posting about slingshot not working, or being useful
right now
 - is there somewhere I can find additional information about this?

I wrote most of SLiNgshoT so you can always ask me. It works for what I
wrote it for (converting the NDoc solution into Makefiles and build files).
I know it's not perfect but other people use it and occasionally submit
patches for it so it can't be entirely broken.

 2. I can't seem to get my slingshot generated builds to run, specifically
CSC is
 not getting and using the references that are included.  I've looked at
the
 nant.build vs. my build and can find no differences in the references
section -
 what am I missing?

Do you have an example solution that I can try out?

 3. Why wasn't Slingshot accomplished via XSLT?  I would think that would
be the
 ideal way, since the SLN is XML.  In fact, you could then easily build
that into
 nant itself and allow people to just point to a SLN file.

The .csproj files are in XML but the .sln isn't (unless that changed with
1.1 which I haven't tried yet). If your solution has references or
dependencies between projects, then you have to parse the .sln file to
resolve those.

 4. How does one contribute to these projects?  At the very least, maybe I
can
 help with documentation and websites. (I notice that nantcontrib just
points
 back to SF.)

Just ask! I can commit your patches or you can ask for CVS access and commit
them yourself.

Jason



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



Re: [nant-dev] New task idea

2002-07-16 Thread Jason Diamond

 At my company, we want to use NAnt for its build
 automation features, but we're also a bunch VS.Net
 users. Having to create a separate NAnt project is a
 bit of drag - even worse is keeping it synchronized
 with the VS.Net project as it evolves. Slingshot
 helps, of course, but a task that builds directly from
 the VS.Net project file would be even nicer. Of
 course, VBPROJ and VCPROJ tasks would likely follow.

Since I separated the core SLiNgshoT code into a separate assembly, it
shouldn't be too hard to re-use the code in there that parses .sln and
.csproj files. It would be even easier to have it convert the solution to a
build file in some temporary directory behind the scenes and then invoke a
nant task on that.

Jason




---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



[nant-dev] SLiNgshoT

2002-05-04 Thread Jason Diamond

I'd like to put SLiNgshoT in a public place so that others could possibly
work on it (especially since my time is so limited). Would the NAnt project
on SF be a good home? It seems like it doesn't really warrant it's on
project space to me. Plus, every user who's contacted me about it or
contributed fixes to it is using it to generate NAnt .build files so that's
why I thought it might be a good contribution to the NAnt project.

Thanks,
Jason



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



Re: [nant-dev] nant.xsd sample

2002-04-17 Thread Jason Diamond

A lot of the code in NAnt that uses XPath could really be rewritten so that
it doesn't without much trouble at all. For example, most of the
SelectSingleNode calls are just getting attributes which could just as
easily (and possibly even more efficiently) be gotten be casting an XmlNode
to XmlElement and using the GetAttribute method. These calls aren't actually
affected by this problem since the attributes aren't qualified but it might
be worth it to remove those anyways.

There are some other SelectSingleNode calls that get a named child element.
These could use the indexer on XmlNode. The project element is always the
document element so we could use XmlDocument.DocumentElement to get at that.

But the question is really do we want to require that NAnt elements be
namespace qualified? I can see arguments for both sides but am currently
leaning towards no.

It's unfortunate that VS.NET requires a targetNamespace in XSDs in order to
use IntelliSense especially since XSDs are perfectly capable of describing
documents that make no use of namespaces. I ran into this (and probably the
other problems you mentioned) just yesterday for a different project. It's
frustrating because VS.NET is _sooo_ close to being perfect but not close
enough to where you can actually use it.

Jason

- Original Message -
From: Scott Hernandez [EMAIL PROTECTED]
To: 'Ian MacLean' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 2:38 PM
Subject: RE: [nant-dev] nant.xsd sample


 Yeah, that is the basic problem. The xpath queries use no context by
 default; you could think of it like the empty namespace. So we have to
 provide context for queries. Here is how it would have to work.

 XmlNamespaceManager nm = new XmlNamespaceManager(new
 NameTable());
 nm.AddNamespace(nant,nantNameSpaceURI); //namespace prefix
   XmlNode node = doc.SelectSingleNode(nant:project, nm); //
 w/prefix

 Not such a big change, but one that will affect all xpath queries.

 I think we can detect if a namespace is used on the project element and
 use that for our queries. But it will require that in all our xpath
 queries we use a pre-defined prefix (like nant:).

 And in the case where no namespace is specified, we can add one to the
 document (once it has been loaded) so queries still work.

 I expect the types of build files that will be supported will have to be
 in one of the three following forms:

 1.) No namespace
 project/

 2.) default namespace provided
 project xmlns=nantNameSpaceURI/

 3.) explicit namespace
 project xmlns:X=nantNameSpaceURI/
 (X can be pretty much anything you want, but should probably be nant)

 2  3 are pretty much the same.
 1 is the only one I'm not sure of.

 I will do a few more tests, but I think this will be the best solution.

 BTW. Most people expect 1  2 to work the same. I know I did before I
 thought about it, and read about it. :(
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of Ian
 MacLean
 Sent: Wednesday, April 17, 2002 11:09 AM
 To: Scott Hernandez
 Cc: [EMAIL PROTECTED]
 Subject: Re: [nant-dev] nant.xsd sample

 Scott Hernandez wrote:

 So I did this (sent the email), then realized that if actually use the
 existing file (meaning you add an xmlns= to the project element) it
 will cause problems with xpath queries.
 
 Before you actually build (use the build file) you need to remove the
 default namespace def from the build file. If you leave it, all xpath
 queries will fail.
 
 I think I see the problem. In the build file we map the dafault
 namespace to the nant namespace but when we come to execute an xpath the

 default namspace isn't the nant one so the xpath queries will return
 nothing.
 Does this mean we will need to specify the namespace in our xpath
 queries - using a custom context ? Even if we use prefixes our xpath
 queries will still need to be aware of the namespace mapping.

 Ian

 [snip]


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



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