RE: [Nant-users] More task woes
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Merrill Cornish > Sent: Tuesday, February 22, 2005 5:45 PM > To: Arnette, Bill; 'nant-users@lists.sourceforge.net' > Subject: Re: [Nant-users] More task woes > > > Bill, > > I haven't done it recently, but I've prviously been able to > call targets (did you really mean "tasks") defined in an > included NAnt script from the calling Nant script. Of > course, the include must come before the call to the included target. > No, I mean targets. But according to the docs, tasks defined at the project level should be run when at the point the file is included. So I put an task at the project level in my included file and it doesn't get run. I also tried putting a in the included file and then tried to the value after the task to verify it was being set and it is not. I can't call targets in the included file and project-level tasks do not run at the point of the include. Is it possible the task is broken in RC2? --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
[Nant-users] sysinfo feature request
Hello I am using sysinfo task to get the values of environment variables (so I can find things like where I have installed python on the build machine for example). I useNow properties "sys.env.xxx" are created with all my environment variables' values in (great). I can look at sys.env.PYTHON_HOME to find out where python is installed. I can however forsee me running into problems when I move my script from machine to machine. Some machines may have environment variables called PYTHON_HOME some have python_home. Windows/DOS doesn't care about the case of the environment variables but NAnt (quite correctly) cares about the case of property names! What do people think about putting a boolean property on this task that if set, populated the sys.env.xxx properties are named with all UPPER case names (or all lower case names - it doesn't matter as long as the names are all one case). The default behaviour can remain the same - i.e. the property names take the Case Sensitive names of the environment variables. Just an idea. Chris. __ This email has been scanned by the MessageLabs Email Security System - after being sent from Granta Design Ltd __
Re: [Nant-users] More task woes
Bill Arnette wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill Cornish Sent: Tuesday, February 22, 2005 5:45 PM To: Arnette, Bill; 'nant-users@lists.sourceforge.net' Subject: Re: [Nant-users] More task woes Bill, I haven't done it recently, but I've prviously been able to call targets (did you really mean "tasks") defined in an included NAnt script from the calling Nant script. Of course, the include must come before the call to the included target. No, I mean targets. But according to the docs, tasks defined at the project level should be run when at the point the file is included. So I put an task at the project level in my included file and it doesn't get run. I also tried putting a in the included file and then tried to the value after the task to verify it was being set and it is not. I can't call targets in the included file and project-level tasks do not run at the point of the include. Is it possible the task is broken in RC2? can you post your buld files. I think there is a kown problem with xml namespaces and include files - althought I can't recall the details offhand. Ian --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] More task woes
Ian MacLean wrote: No, I mean targets. But according to the docs, tasks defined at the project level should be run when at the point the file is included. So I put an task at the project level in my included file and it doesn't get run. I also tried putting a in the included file and then tried to the value after the task to verify it was being set and it is not. I can't call targets in the included file and project-level tasks do not run at the point of the include. Is it possible the task is broken in RC2? can you post your buld files. I think there is a kown problem with xml namespaces and include files - althought I can't recall the details offhand. heres the relevant part from an old post : I tried it out and discovered that if you omit the xmlns attribute on the project in the main build file, it then works. Further testing reveals that if both the main and included build file have the identical xmlns attribute, it also works. Gary Are you using xmlns= in either the main build file or the include ? Ian --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
RE: [Nant-users] More task woes
> Ian MacLean wrote: > > > > I tried it out and discovered that if you omit the xmlns > attribute on > > the project in the main build file, it then works. Further testing > > reveals that if both the main and included build file have the > > identical xmlns attribute, it also works. Gary > > Are you using xmlns= in either the main build file or the include ? > > Ian Indeed I was. I put the namespace declaration in all my include files and (so far) all is well now! Thanks! Oh. Except, -projecthelp still does not display the targets from the include files. Bill --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
[Nant-users] Solution building obj's but not dll
Title: Solution building obj's but not dll I have a solution file that has a couple VC++ projects in it. I managed to fix the last problem of it giving me a nullreference, but now I’m on to the next problem. It’s creating the obj’s for the files, but it never creates the dll. I would like to be able to just hand NAnt the solution, have it go through the projects and build everything properly, which has worked for me in the past, until we added in these VC++ projects. Does anyone have any suggestions? Please let me know if you need more clarification of the situation. Also I am using the latest release .85 RC2 Thanks, Marisa
Re: [Nant-users] More task woes
Bill Arnette wrote: Ian MacLean wrote: I tried it out and discovered that if you omit the xmlns attribute on the project in the main build file, it then works. Further testing reveals that if both the main and included build file have the identical xmlns attribute, it also works. Gary Are you using xmlns= in either the main build file or the include ? Ian Indeed I was. I put the namespace declaration in all my include files and (so far) all is well now! Thanks! no problem. Maybe the task should check the declarations and emit a warning if they don't match. Oh. Except, -projecthelp still does not display the targets from the include files. yeah - its implemented as an xslt script now - ie it doesn't execute any tasks ( included :) ). Perhaps a better implementation could be written that processes the includes as well. It could probably be done with xslt but that may not be the best approach. Do you want to log a bug for this ? Ian --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] More task woes
Ian MacLean wrote: yeah - its implemented as an xslt script now - ie it doesn't execute any tasks ( included :) ). Perhaps a better implementation could be written that processes the includes as well. It could probably be done with xslt but that may not be the best approach. Do you want to log a bug for this ? looks like you already did :) Ian --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
RE: [Nant-users] More task woes
> Ian MacLean wrote: > > >> > > yeah - its implemented as an xslt script now - ie it > doesn't execute > > any tasks ( included :) ). Perhaps a better > implementation > > could be written that processes the includes as well. It could > > probably be done with xslt but that may not be the best approach. > > > > Do you want to log a bug for this ? > > > looks like you already did :) > Ian > Indeed I did. Some thought needs to be given to the whole namespace issue. For example, shouldn't there be a schema for NantContrib, with its own namespace? You might have a build file: --- begin test.build --- http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd";> --- end test.build --- With an include file: --- begin scm.include --- http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd"; xmlns:contrib="http://nant.sf.net/schemas/nant-contrib-0.85.win32.net-1.0.xs d"> --- end scm.include --- --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
[Nant-users] On the right track?
I've been using NAnt only for a few days, but bear with me. I'm seeking direction, not necessarily the answer. Here's the situation: - I have a VS2003 Solution that consists of multiple projects. A few projects have dependencies on the others. - We maintain our source code in Subversion. - We have multiple developers manipulating/adding code to the repository for all projects contained in this solution. - Subversion projects correllate to the projects in the solution. - We don't include .csproj files in the repository. Presence of the files in the repository implies inclusion in the particular project. My goal: - Create a build routine that uses NAnt, Subversion and/or any other utilities to automate our builds. - Zero manual management of .csproj files on the build system. I want those files to be created/managed automatically. - Very limited manual management of the NAnt build script. My questions: - Do I require the individual .csproj files to be current for a NAnt build script? Do I have other options to use besides those files? - How can I maintain the .csproj files automatically as a result of an svn update? - Can I avoid the use of .csproj files altogether for the build routine? If so, can I construct the build script in such a way that I'm not required to provide specific file/folder names? - Is there a better way to go about this? I'm certain someone else has run into this, but I haven't made much progress in my research thus far this week. Any help or guidance is greatly appreciated. Links to information that point me in the right direction are welcome. Thanks. --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] On the right track?
On Wed, 23 Feb 2005 10:21:59 -0800, Jeff Rodenburg <[EMAIL PROTECTED]> wrote: > My questions: > - Do I require the individual .csproj files to be current for a NAnt > build script? Do I have other options to use besides those files? The csc task can build source files based on patterns, lists, whatever. So something like is totally legal... > - Can I avoid the use of .csproj files altogether for the build > routine? If so, can I construct the build script in such a way that I'm > not required to provide specific file/folder names? See above for including sources in assembly building. The model I use is: each project has a build file. the build file includes sources based on patterns. the build file is created from a template domain-specific knowledge within a project build file is limited to; project name, project references. project build scripts can be executed alone, or are controlled by a main build script. > - Is there a better way to go about this? I'm sure there are other solutions also. A side-effect to note of this model is that sources removed from the repository may potentially still exist locally. The build script lacking a source list will still include those sources in any builds until they are removed. I hope this is helpful -josh --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
[Nant-users] Accelerating Resource Creation on
Title: Accelerating Resource Creation on Is there a way to accelerate the resource creation on the task. I can see that is calling for all the files included in the attribute. It looks as if resgen is being called once for each files included in the . I did some testing with calling resgen for a set of resx files. First I called the resgen task once for every resx file (similar to what it appears is doing) and the speed was in-line with what I see in the task. But when I call resgen and pass in a fileset of resx files, the resource generation is significantly faster? Is there a way to setup the csc task to generate the resources in a single call, rather than one-by-one? Thanks, Mike.
[Nant-users] On the right track?
I've been using NAnt only for a few days, but bear with me. I'm seeking direction, not necessarily the answer. Here's the situation: - I have a VS2003 Solution that consists of multiple projects. A few projects have dependencies on the others. - We maintain our source code in Subversion. - We have multiple developers manipulating/adding code to the repository for all projects contained in this solution. - Subversion projects correllate to the projects in the solution. - We don't include .csproj files in the repository. Presence of the files in the repository implies inclusion in the particular project. My goal: - Create a build routine that uses NAnt, Subversion and/or any other utilities to automate our builds. - Zero manual management of .csproj files on the build system. I want those files to be created/managed automatically. - Very limited manual management of the NAnt build script. My questions: - Do I require the individual .csproj files to be current for a NAnt build script? Do I have other options to use besides those files? - How can I maintain the .csproj files automatically as a result of an svn update? - Can I avoid the use of .csproj files altogether for the build routine? If so, can I construct the build script in such a way that I'm not required to provide specific file/folder names? - Is there a better way to go about this? I'm certain someone else has run into this, but I haven't made much progress in my research thus far this week. Any help or guidance is greatly appreciated. Links to information that point me in the right direction are welcome. Thanks. --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
[Nant-users] Nant and Nunit 2.2 problem
Alright, so I figured out my problem form yesterday. It helped that I pointed it to which directory the test was in and boom, were done.. So unit tests are running and I'm happy. but I want the XML output from Nunit so I can merge that with CC.NET 0.8. I'm using nant 0.85rc2 (0.85.1869.0) and here is my file if I set usefile=false.. works fine... if I set usefile=true I get Build Error: NAnt.Core.BuildException Tests Failed. in C:\BuildSupport\Projects\AgileTimeTracker2005\webservice\default.build line: 93 col: 4 at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() which is referring the the aformentioned XML... Frustating when your this close and have something silly step in the way! =) Thanks in advance, Chris --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] Nant and Nunit 2.2 problem
On Wed, 23 Feb 2005 16:14:51 -0600, Chris Taylor <[EMAIL PROTECTED]> wrote: > Alright, so I figured out my problem form yesterday. It helped that I > pointed it to which directory the test was in and boom, were done.. > > So unit tests are running and I'm happy. but I want the XML output > from Nunit so I can merge that with CC.NET 0.8. I'm not sure if you want to do this, but I use rather than to run my tests. I've written this up at http://mikeroberts.thoughtworks.net/blog/archive/Tech/dotNet/Howtosetupa.NETDevelopmentTreePart7.html Mike --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] Nant and Nunit 2.2 problem
Jeez Mike do you just sit on all the lists? =) Ok, since this is a concern between ccnet and nant then you are probably the perfect person to ask. Using your method described in your blog, will cc.net still fail upon failed unit tests? That was kind of the pretty feature I liked about the nunit2 task. I didn't see this covered in your post, but assume it to be true. If nunit-console returns > 0 (through exception or whatever) the exec task fails therefore breaking the build... CCNET stops and reports the failed build. Am I right? Now, this is perhaps silly (and maybe I should just try it) but using the merge task in ccnet will I get the Unit Test subsection on the main build page of the CCNET dash? Maybe it doesn't matter, and maybe thats a stupid question, but I liked it. Anyways, I'll give this a shot. Thanks for the advice. on a side note for NANT developers reading this. Could this issue be looked into? I'll be reporting it to the bug tracker tommorow. Thanks again, CJ On Thu, 24 Feb 2005 16:21:13 +1300, Mike Roberts <[EMAIL PROTECTED]> wrote: > On Wed, 23 Feb 2005 16:14:51 -0600, Chris Taylor <[EMAIL PROTECTED]> wrote: > > Alright, so I figured out my problem form yesterday. It helped that I > > pointed it to which directory the test was in and boom, were done.. > > > > So unit tests are running and I'm happy. but I want the XML output > > from Nunit so I can merge that with CC.NET 0.8. > > I'm not sure if you want to do this, but I use rather than > to run my tests. I've written this up at > http://mikeroberts.thoughtworks.net/blog/archive/Tech/dotNet/Howtosetupa.NETDevelopmentTreePart7.html > > Mike > --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] Nant and Nunit 2.2 problem
On Wed, 23 Feb 2005 21:42:49 -0600, Chris Taylor <[EMAIL PROTECTED]> wrote: > Jeez Mike do you just sit on all the lists? =) Not *all* of them. I leave Cobol.NET to themselves ;) > Using your method described in your blog, will cc.net still fail upon > failed unit tests? Yes - honours non-zero exit codes for failures (there's a 'failonerror' attribute if you want to turn it off). > Now, this is perhaps silly (and maybe I should just try it) but using > the merge task in ccnet will I get the Unit Test subsection on the > main build page of the CCNET dash? Yes. Its the same method we use to run CCNet against itself on http://ccnetlive.thoughtworks.com/ccnet/ . Mike --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] Nant and Nunit 2.2 problem
Forgive me for butting in, but I might have a hint that would help. I thought CC.NET automatically directs NAnt to produce XML output which can be merged. If I'm correct, you don't have to do any of this, it should Just Work. http://confluence.public.thoughtworks.org/display/CCNET/NAnt+Builder On Wed, 2005-02-23 at 16:14 -0600, Chris Taylor wrote: > Alright, so I figured out my problem form yesterday. It helped that I > pointed it to which directory the test was in and boom, were done.. > > So unit tests are running and I'm happy. but I want the XML output > from Nunit so I can merge that with CC.NET 0.8. > > I'm using nant 0.85rc2 (0.85.1869.0) > > and here is my file > > >outputdir="${dir.artifacts}" type="Xml" /> > /> > > > if I set usefile=false.. works fine... > > if I set usefile=true > > I get > > > Build Error: NAnt.Core.BuildException > Tests Failed. > in C:\BuildSupport\Projects\AgileTimeTracker2005\webservice\default.build > line: 93 col: 4 > >at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask() >at NAnt.Core.Task.Execute() >at NAnt.Core.Target.Execute() >at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) >at NAnt.Core.Project.Execute() >at NAnt.Core.Project.Run() > > > which is referring the the aformentioned XML... > Frustating when your this close and have something silly step in the way! =) > > Thanks in advance, > Chris > > > --- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > ___ > Nant-users mailing list > Nant-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users -- Scanned for viruses by ClamAV --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [Nant-users] Nant and Nunit 2.2 problem
On Wed, 23 Feb 2005 21:58:44 -0700, Kevin Williams <[EMAIL PROTECTED]> wrote: > I thought CC.NET automatically directs NAnt to produce XML output which > can be merged. If I'm correct, you don't have to do any of this, it > should Just Work. If you use the NUnit tasks, that's true, but its not the case if you use . http://confluence.public.thoughtworks.org/display/CCNET/Using+CruiseControl.NET+with+NUnit Probably best to move any further CCNet discussion onto its mailing lists... Mike --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users