Jean, I had no luck with your syntax either. In looking through the latest CVS code, there are some lines that are commented out, and appear (to my eyes) to be needed for this. If I know how to use WinCVS, I'd give fixing it a try.
Thanks, Erick > -----Original Message----- > From: Jean Rajotte [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 6:23 AM > To: 'Nant Users' > Subject: RE: [Nant-users] slingshot task > > > > erick, > > i nant-contributed some of the slingshot code in the past, > but not for a > while. i don't use it anymore. as a matter of fact, i'm quite behind > in nant versions, what with the rejigging of namespaces. i > thought i'd > let this settle before side-grading. > meanwhile, i'm curious. have you tried my suggestion to use > my proposed > "syntax" to get around the problem? The "-- option=..." output from > eric's email hints that this could work. yes/no? > > jean > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Erick Thompson > > Sent: Wednesday, August 27, 2003 19:00 > > To: [EMAIL PROTECTED]; Nant Users > > Subject: RE: [Nant-users] slingshot task > > > > > > Jean, > > > > I found the same area, and I figure the problem is in there. > > However, the version that I am looking at has the > > OptionElement code commented out. I have a feeling that this > > is where the problem is, as the suggested format looks like > > an OptionElement to me. Unfortunately, the nantcontrib list > > seems to be rather dead, so I don't know if we'll get any > > movement on this. > > > > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/nantcontrib/NAn > > tContrib/s > > rc/Tasks/SlingshotTask.cs?rev=1.4 > > <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/nantcontrib/NA > > ntContrib/ > > src/Tasks/SlingshotTask.cs?rev=1.4&content-type=text/vnd.viewc > > vs-markup> > > &content-type=text/vnd.viewcvs-markup > > > > Erick > > > > -----Original Message----- > > From: Jean Rajotte [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 27, 2003 2:32 PM > > To: 'Nant Users' > > Subject: RE: [Nant-users] slingshot task > > > > > > eric, > > it does look like the syntax is as advertized. > > i thought you had other slingshot tasks in your projects. > > what's different here? as i look in the code for > > SlingshotTask, i see there's some confusion about how > > OptionSets are iterated. pls. try something crazy like the > > following and see whether it goes: > > > > > > <project name="Web"> > > <slingshot solution="Project.SubProject.Web.sln" > > format="nant" output="MySolution.build"> > > <parameters> > > <build.basedir value="bin"/> > > </parameters> > > <maps> > > <option name=" <http://localhost/> > > http://localhost" value="."/> > > </maps> > > </slingshot> > > </project> > > > > if that's so, it's really wacky but at least you're going. > > the code i'm talking about is the following in > > SlingshotTask.cs. it's there because i'd found > > inconsistencies in how <parameters> returns options... > > > > /// <summary>Converts an <see cref="OptionSet"/> to a > > <see cref="Hashtable"/>.</summary> > > private Hashtable OptionSetToHashtable(OptionSet > > options, string > > optionSetName) { > > > > Hashtable convertedOptions = new Hashtable(); > > > > if (options != null) { > > foreach (object option in options) { > > string name; > > string value; > > if ( option is OptionValue ) { > > OptionValue ov = (OptionValue) option; > > name = ov.Name; > > value = ov.Value; > > } else if ( option is OptionElement ) { > > OptionElement oe = (OptionElement) option; > > name = oe.OptionName; > > value = oe.Value; > > } else { > > throw new BuildException( string.Format( > > "Invalid Option type {0} in {1} OptionSet", option.GetType(), > > optionSetName) ); > > } > > Log.WriteLine( LogPrefix + " -- {0} = {1}", name, value ); > > > > // name must be specified > > if (name == null) { > > string msg = > > String.Format("Unspecified name for <{0}> option '{1}'", > > optionSetName, name); > > throw new BuildException(msg); > > // value must be specified > > } else if (value == null) { > > string msg = > > String.Format("Unspecified value for <{0}> option '{1}'", > > optionSetName, name); > > throw new BuildException(msg); > > } else { > > convertedOptions.Add(name, value); > > } > > } > > } > > > > return convertedOptions; > > } > > > > } > > > > HTH ! ?? > > > > /jean > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Eric Fetzer > > Sent: Wednesday, August 27, 2003 17:09 > > To: Nant Users > > Subject: [Nant-users] slingshot task > > > > > > I'm experiencing a problem with slingshot: > > > > D:\projects\procard>nant -f:BuildWebBuild.build > > NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw > http://nant.sourceforge.net <http://nant.sourceforge.net> > Buildfile: file:///D:/projects/procard/BuildWebBuild.build > <file:///D:/projects/procard/BuildWebBuild.build> > [slingshot] Converting ProCard.Centre.Web.sln to > MySolution.build using > nant format [slingshot] -- option = bin Total time: 0 seconds. BUILD > FAILED The <parameters> option 'build.basedir' is required. > > My <parameters> option contains build.basedir as follows: > > <project name="Web"> > <slingshot solution="Project.SubProject.Web.sln" format="nant" > output="MySolution.build"> > <parameters> > <option name="build.basedir" value="bin"/> > </parameters> > <maps> > <option name=" http://localhost <http://localhost> " > value="."/> > </maps> > </slingshot> > </project> > > I'm having the problem no matter which version of the binaries I > download. Anybody have a clue? > > Thanks, > Eric > > > > _____ > > Do you Yahoo!? > SBC > <http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://pro mo.yahoo.c om/sbc/> Yahoo! DSL - Now only $29.95 per month! ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users