[NAnt-users] NUnit2 task running x86 tests

2015-04-29 Thread Mike Alekseev
Hello!

Im trying to run some tests using NAnt nunit2 task, but it fails with next 
error:

---Could not load file or assembly '-assembly info-' or one of its 
dependencies. An attempt was made to load a program with an incorrect format.

I tried to configure appconfig but it gave no result.

Then i tried to reproduce the error in NUnit-standalone and figured out that 
same error occures if i use nunit-console.exe instead of 
nunit-console-x86.exe.

Its important to run the nunit2 task because Teamcity supports Code Coverage 
only for that task.

Is it possible to run nunit2 task with behaviour of nunit-console-x86.exe?

Thank you,
Mikhail.

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread mike
I have a modified copy of the XMLLIST task that I use for this. This issue comes up quite often for me; I don't understand why this type of situation/solution seems to get downplayed as "...don't do that".You can find a way to the originalhere:http://weblogs.asp.net/soever/archive/2006/12/01/nant-xmllist-command-updated.aspx--Mike Frederick

--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] CCnet progress reporting from NAnt

2009-09-30 Thread Mike Frederick
I have implemented a custom script task for NAnt which makes progress 
reporting back to CCNet much easier.  Progress reporting is accomplished 
by inserting XML into a file which is read by CCNet to display progress 
information.  See 
http://confluence.public.thoughtworks.org/display/CCNETCOMM/Viewing+build+progress+with+Nant+and+MSBuild
 
for official details.

I am attaching the script for anyone to use.  What I do is:

1) save the contents of the script below in a file named CCNet-progress.xml
2) include the new file in any NAnt script which will want to utilize it 
like:

include buildfile=CCnet-progress.xml/

3) call the progress reporter when you want to update the progress of 
your task, like this:

CCnet-progress message=Beginning the web site clean-up 
file=${CCNetListenerFile}/

and that's it.  I usually do a little more, like set a true/false 
variable like this:

property name=progress.logging value=false/
property name=progress.logging value=true 
if=${property::exists('CCNetListenerFile')}/

and then my actual progress logging calls look like:

CCnet-progress message=Beginning the web site clean-up 
file=${CCNetListenerFile} if=${progress.logging}/

This allows my NAnt scripts to continue working when I am using them 
outside of CCNet.

Here's the file:

==
?xml version=1.0 encoding=utf-8?
project name=CCNet-extensions
script language=C#
references
include name=System.Xml.dll/
/references
imports
import namespace=System.Xml/
/imports
code![CDATA[
   
[TaskName(CCNet-progress)]
public class TestTask : Task
{
#region Private Instance Fields
private string _message;
private string _file;
#endregion Private Instance Fields
   
#region Public Instance Properties
[TaskAttribute(message, Required=true)]
[StringValidator(AllowEmpty=false)]
public string Message
{
get { return _message; }
set { _message = value; }
}
[TaskAttribute(file, Required=true)]
[StringValidator(AllowEmpty=false)]
public string FileName
{
get { return _file; }
set { _file = value; }
}
#endregion Public Instance Properties
   
#region Override implementation of Task
   
protected override void ExecuteTask()
{
XmlDocument progressXML = new XmlDocument();
if (File.Exists(_file))
{
progressXML.Load (_file);
}
else
{
XmlElement newDE = 
progressXML.CreateElement(data);
progressXML.AppendChild (newDE);
}
XmlElement newNode = progressXML.CreateElement (Item);
newNode.SetAttribute (Time, DateTime.Now.ToString ());
newNode.SetAttribute (Data, _message);
progressXML.DocumentElement.AppendChild (newNode);
progressXML.Save (_file);
}
   
#endregion Override implementation of Task
}
   
]]/code
/script
/project
==

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Using JScript.NET to implement a function

2009-08-28 Thread Mike Frederick
Bob Archer wrote:
 Bob Archer wrote:
 
 I am very familiar with JScript, but not with JScript.NET or C#.  I
 want
 to write a function in JScript.NET that I can use in my NAnt script.

 I currently have:

 project name=TestFunction

 target name=goecho${script::testfunc()}/echo/target

 script language=JS
 code
 ![CDATA[
 public function testfunc():String { return (Hello World
 
 from
 
 JS); }
 ]]
 /code
 /script
 /project

 But when I run this I get:

 C:\hp\Scriptsnant -f:a.build go
 NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
 Copyright (C) 2001-2007 Gerry Shaw
 http://nant.sourceforge.net

 Buildfile: file:///C:/hp/Scripts/a.build
 Target framework: Microsoft .NET Framework 3.5
 Target(s) specified: go

[script] Scanning assembly l-qhzdpm for extensions.

 go:


 BUILD FAILED

 C:\hp\Scripts\a.build(4,4):
 Unknown function 'script::testfunc'.
 Expression: ${script::testfunc()}

 
 I'm not sure but you may have to annotate the function name:

 [Function(testfunc)]

 at the top of your script.

 BOb



   
 Yes, that's what I thought.  When I add that line, I get:

 C:\hp\Scriptsnant -f:a.build go
 NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
 Copyright (C) 2001-2007 Gerry Shaw
 http://nant.sourceforge.net

 Buildfile: file:///C:/hp/Scripts/a.build
 Target framework: Microsoft .NET Framework 3.5
 Target(s) specified: go


 BUILD FAILED

 C:\hp\Scripts\a.build(7,3):
 Compilation failed:
 C:\Documents and Settings\mike\Local Settings\Temp\oaw_xbfp.0.js(28,3)
 :
 error JS1002: Syntax error
 //-
 -
 /// autogenerated
 /// This code was generated by a tool.
 /// Runtime Version: 2.0.50727.1433
 ///
 /// Changes to this file may cause incorrect behavior and will be
 lost if
 /// the code is regenerated.
 /// /autogenerated
 //-
 -

 //@cc_on
 //@set @debug(off)

 import System;
 import System.Collections;
 import System.Collections.Specialized;
 import System.IO;
 import System.Text;
 import System.Text.RegularExpressions;
 import NAnt.Core;
 import NAnt.Core.Attributes;


 public FunctionSet(script, script)
 class nant7f8689ee26f04ddb9472f9b5a112bd8c extends
 NAnt.Core.FunctionSetBase {


   [Function(testfunc)]
   public function testfunc():String
   {
return (Hello World from JS);
   }


 public function nant7f8689ee26f04ddb9472f9b5a112bd8c(project :
 NAnt.Core.Project, propDict : NAnt.Core.PropertyDictionary) {
 super(project, propDict);
 }
 }

 

 Hmm... I use C#. How complex if the function you want to write? Is there a 
 reason you can use C#?

 BOb
   
OK, I was hoping to use a language that I already know.  And JScript.NET 
is supposed to be supported, right?

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Using JScript.NET to implement a function

2009-08-27 Thread Mike Frederick
Bob Archer wrote:
 I am very familiar with JScript, but not with JScript.NET or C#.  I
 want
 to write a function in JScript.NET that I can use in my NAnt script.

 I currently have:

 project name=TestFunction

 target name=goecho${script::testfunc()}/echo/target

 script language=JS
 code
 ![CDATA[
 public function testfunc():String { return (Hello World from
 JS); }
 ]]
 /code
 /script
 /project

 But when I run this I get:

 C:\hp\Scriptsnant -f:a.build go
 NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
 Copyright (C) 2001-2007 Gerry Shaw
 http://nant.sourceforge.net

 Buildfile: file:///C:/hp/Scripts/a.build
 Target framework: Microsoft .NET Framework 3.5
 Target(s) specified: go

[script] Scanning assembly l-qhzdpm for extensions.

 go:


 BUILD FAILED

 C:\hp\Scripts\a.build(4,4):
 Unknown function 'script::testfunc'.
 Expression: ${script::testfunc()}
 

 I'm not sure but you may have to annotate the function name:

 [Function(testfunc)]

 at the top of your script. 

 BOb


   
Yes, that's what I thought.  When I add that line, I get:

C:\hp\Scriptsnant -f:a.build go
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/hp/Scripts/a.build
Target framework: Microsoft .NET Framework 3.5
Target(s) specified: go


BUILD FAILED

C:\hp\Scripts\a.build(7,3):
Compilation failed:
C:\Documents and Settings\mike\Local Settings\Temp\oaw_xbfp.0.js(28,3) : 
error JS1002: Syntax error
//--
/// autogenerated
/// This code was generated by a tool.
/// Runtime Version: 2.0.50727.1433
///
/// Changes to this file may cause incorrect behavior and will be 
lost if
/// the code is regenerated.
/// /autogenerated
//--

//@cc_on
//@set @debug(off)

import System;
import System.Collections;
import System.Collections.Specialized;
import System.IO;
import System.Text;
import System.Text.RegularExpressions;
import NAnt.Core;
import NAnt.Core.Attributes;


public FunctionSet(script, script)
class nant7f8689ee26f04ddb9472f9b5a112bd8c extends 
NAnt.Core.FunctionSetBase {


  [Function(testfunc)]
  public function testfunc():String
  {
   return (Hello World from JS);
  }


public function nant7f8689ee26f04ddb9472f9b5a112bd8c(project : 
NAnt.Core.Project, propDict : NAnt.Core.PropertyDictionary) {
super(project, propDict);
}
}


Total time: 0.4 seconds.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Using JScript.NET to implement a function

2009-08-26 Thread Mike Frederick
Hello,

I am very familiar with JScript, but not with JScript.NET or C#.  I want 
to write a function in JScript.NET that I can use in my NAnt script.

I currently have:

project name=TestFunction

target name=goecho${script::testfunc()}/echo/target
   
script language=JS
code
![CDATA[
public function testfunc():String { return (Hello World from 
JS); }
]]
/code
/script
/project

But when I run this I get:

C:\hp\Scriptsnant -f:a.build go
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/hp/Scripts/a.build
Target framework: Microsoft .NET Framework 3.5
Target(s) specified: go

   [script] Scanning assembly l-qhzdpm for extensions.

go:


BUILD FAILED

C:\hp\Scripts\a.build(4,4):
Unknown function 'script::testfunc'.
Expression: ${script::testfunc()}
  ^

Total time: 0.4 seconds.

even though it sure looks like I have defined the function testfunc.  
Anybody have any pointers?

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Navigating XML documents ...

2009-01-29 Thread Mike Frederick
It is a little painful, but it is possible.  The idea is to be able to 
address each FileItem node individually.  If each Path property is 
unique across all of the FileItem nodes, then you can use that property 
to pick-out each FileItem node:

project name=Ken default=go
property name=XMLFile value=Ken.xml/
property name=xpath value=/MyFileList/FileItems/FileItem/
target name=go
xmllist file=${XMLFile} xpath=${xpath}/@Path 
property=pathlist/
foreach item=String delim=, in=${pathlist} property=path
echoFile: ${path}/echo
xmllist file=${XMLFile} xpath=${xpath} 
[...@path='${path}']/@Status property=status/
xmllist file=${XMLFile} xpath=${xpath} 
[...@path='${path}']/@Mode property=mode/
echo  status: ${status}, mode: ${mode}/echo
echo /
/foreach
/target
/project

Since you have gotten this far, I will mention that I tend to address 
this situation by creating nodename that are unique, such as:

?xml version=1.0?
MyFileList
summary
/summary
FileItems
File01 Path=file01.txt Status=good Mode=ok /
File02 Path=file02.txt Status=bad Mode= ok /
File03 Path=file03.txt Status=good Mode=notok/
File04 Path=file04.txt Status=ignore Mode=ok /
File05 Path=file05.txt Status=bad Mode=ok /
/FileItems
/MyFileList

which is ugly from a schema perspective, but I have a mod to xmllist 
that allows me to do:

project name=Ken default=go
property name=XMLFile value=Ken.xml/
property name=xpath value=/MyFileList/FileItems/
target name=go
xmllist file=${XMLFile} xpath=${xpath}/* property=filelist/
foreach item=String delim=, in=${filelist} 
property=fileitem
xmllist file=${XMLFile} 
xpath=${xpath}/${fileitem}/@Path property=path/
xmllist file=${XMLFile} 
xpath=${xpath}/${fileitem}/@Status property=status/
xmllist file=${XMLFile} 
xpath=${xpath}/${fileitem}/@Mode property=mode/
echoFile: ${path}/echo
echo  status: ${status}, mode: ${mode}/echo
echo /
/foreach
/target
/project

which I like a lot better from a programming perspective.  The mod I 
made was to allow a file nodename to be a *, which is interpreted as 
return a list of all child nodenames.

The idea is to
 Thanks for the reference to xmllist.  I have built this code into my
 standard extension DLL and it seems to be working as advertised.

 However, there is a part of the problem that I have yet to find a good
 solution.  In the example below, I can generate a list of all the 'Path'
 attributes, or all the 'Status' attributes.  However, there is no
 practical way (that I can think of) to iterate over these two lists
 simultaneously.  

 What I really need is to 'fetch' each FileItem node, one at a time,
 then gather the various attributes set for that node.  Then, iterate to
 the next FileItem node in the file.

 Is there any way to do this via xmllist or with some combination of
 other Nant tasks?

 ?xml version=1.0?
 MyFileList
   summary
   /summary
   FileItems
   FileItem Path=file01.txt Status=good Mode=ok /
   FileItem Path=file02.txt Status=bad Mode= ok /
   FileItem Path=file03.txt Status=good Mode=notok
 /
   FileItem Path=file04.txt Status=ignore Mode=ok /
   FileItem Path=file05.txt Status=bad Mode=ok /
   /FileItems
 /MyFileList

 The only other solution I can find is to execute three  xmllist tasks
 and fetch the 'Path' , 'Status' and 'Mode' attributes into separate
 comma separated strings.  Then, perform string manipulations in such a
 way as to fetch the 'Path' , 'Status' and 'Mode' attributes in
 parallels.

 It seems like there must be a more straightforward and direct solutions
 to this?  Has anyone attempted to modify the xmllist task to fetch and
 xml element, then it's subsequent attributes?

 Thanks,

 Ken Parrish
 Gomez, Inc.

   


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] NAnt-users Digest, Vol 32, Issue 6

2009-01-27 Thread Mike Frederick
Ken,

Yes, I do this all the time with xmllist.  I made a slight 
modification that I use a lot, but your particular case doesn't need my 
mod.  Look at 
http://weblogs.asp.net/soever/archive/2006/12/01/nant-xmllist-command-updated.aspx.
  
This is a blog entry, but it has a link to the code you want.
 Message: 4
 Date: Tue, 27 Jan 2009 11:53:26 -0500
 From: Parrish, Ken kparr...@gomez.com
 Subject: [NAnt-users] Navigating XML documents ...
 To: nant-users@lists.sourceforge.net
 Message-ID:
   6d3ca9b0bea31640b4e6338360c84740041c0...@entdc1ms02.corp.gomez.com
 Content-Type: text/plain; charset=us-ascii

 Sometime back there were several postings regarding the problem of
 navigating through a collection of XML nodes in an XML document.
  
 I have a Nant task that needs to fetch a collection of XML nodes from a
 file and iterate over the collection and take action against each node.
 An example of the content of the XML file is shown below.
  
 In this case, I need to fetch the FileItems node and iterate over this
 child nodes.  I am aware that the xmlpeek task has a node number that
 can be use to fetch the nth node in a list.  However, my files
 potentially have 100's of nodes to this technique seems pretty
 cumbersome.
  
 I recall seeing a reference to an xmllist task, but my link to this
 task is broken.
  
 Are there any reasonable solutions to this problem?  Any Nant libraries
 for parsing and navigating XML files?
  
 ?xml version=1.0?
 MyFileList
   summary
   /summary
   FileItems
 FileItem Path=file01.txt /
 FileItem Path=file02.txt /
 FileItem Path=file03.txt /
 FileItem Path=file04.txt /
 FileItem Path=file05.txt /
   /FileItems
 /MyFileList


 Thank you,
  
 Ken Parrish
 Gomez, Inc.
   

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] xmlpeek multinode and script parameters

2008-11-17 Thread Mike Frederick
I'm only addressing the XMLPEEK question; my answer makes the second 
question unnecessary.

Don't use xmlpeek for this operation.  I only use xmllist 
now...http://weblogs.asp.net/soever/archive/2006/12/01/nant-xmllist-command-updated.aspx

XMLLIST allows for multi-attribute/multi-node reads.  It also does the 
correct thing with output (output only occurs when logging is set to 
Verbose).

Date: Sun, 16 Nov 2008 15:17:33 +0800 (CST)
From: netvampire.tw [EMAIL PROTECTED]
Subject: [NAnt-users] xmlpeek multinode and script parameter?
To: nant-users@lists.sourceforge.net
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=utf-8

I have a XML see blow,I want to read the revision recuresively.I had read 
Archives history.I can use nodeindex and foreach to read.but in the history it 
must already know how many nodeindex are there in xml file.I write a script to 
count nodeindex.
I have problems
1.may I use dynamic xmlpeek recursively?
2.how can I use method parameter in the script? I need use scirpt with 
parameters with input filename and xpath



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Bug found - interaction of NAnt and NAntContrib

2008-11-05 Thread Mike Frederick
All,

I stumbled into this one today.  If you use a fileset task by itself 
in a target, all is ok; but if you put that task inside of a choose it 
fails.

Example script:

project name=a
property name=deploy.root value=/
target name=go
choose
when test=${string::get-length(deploy.root)==0}
fileset id=deploy.clean.fileset basedir=${deploy.root}
include name=**\*.*/
/fileset
/when
otherwise
echoIn the OTHERWISE/echo
/otherwise
/choose
/target
/project

Here is the output:

C:\build\Titannant -f:a.build go
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/build/Titan/a.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: go

go:

BUILD FAILED

C:\build\Titan\a.build(6,6):
Unknown task fileset.

Total time: 0 seconds.

Doesn't matter if you put the fileset in the when or the 
otherwise, you always get Unknown task fileset.  Remove the 
choose altogether and it works fine.  I'm using Windows XP SP2, you 
can see the version of NAnt in the output and the newest available 
NAntContrib.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] xmlpeek - Multiple nodes found with the XPath expression

2008-10-16 Thread Mike Frederick
I ran into this issue *so* many times that I obtained the xmllist task 
and source from:

http://weblogs.asp.net/soever/archive/2006/12/01/nant-xmllist-command-updated.aspx

and modified the code so that if the final nodename specified is *, 
all nodenames are returned in a comma-separated list.

Then I just use a foreach item=String delim=, ... to go back and 
fetch each node explicitly.  The xmllist task also gives you many 
other advantages; enough that I don't use xmlpeek any more.

Example:

I have an XML file driving the build process that contains a collection 
of web.config modifications that need to be made after a web 
deployment.  The relevant XML nodes look like:

ConfigMods
web.config path=web.config
DBname value=myDB .../
DBUser value=secretUser .../
authPath value=192.168.164.12 .../
/web.config
/ConfigMods

and I do the following to process the list:

xmllist file=configDirectives.xml xpath=/ConfigMods/web.config/* 
property=web.config.names/
foreach item=String delim=, in=${web.config.names} property=name
xmllist file=configDirectives.xml 
xpath=/ConfigMods/web.config/${name}/@value property=value/
echo  making ${name} modification; changing value to ${value}../echo
/foreach

I use this method *a lot*!   It allows me to drive repetitive processes 
from my XML data.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Web deployment questions

2008-08-13 Thread Mike Frederick
All,

I am in charge of the build/deployment of a web-based product and I have 
scripted the builds and deployments in NAnt.  Now I am being asked to 
also script the complete tear-down/build-up of the underlying IIS web 
sites.  This is to be done in order to guarantee that the final 
deployment web sites are built exactly the same (same properties, same 
files) as the gold copy we hand build/test in-house.

I am wondering how those of you on this list accomplish this task.  I 
have seen the Microsoft TechNet article on this subject 
(http://technet.microsoft.com/en-us/magazine/cc160773.aspx), but I also 
notice that there are a few tasks in the NAntContrib distribution that 
deal in some ways with IIS web deployments.  Can the NAntContrib tasks 
be used to completely tear-down (I'm fairly certain they can do this) 
and xerox an established web site (or virtual directory) onto another 
server?

Any help/tips appreciated.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Web deployment questions

2008-08-13 Thread Mike Frederick
Yes, I am talking about a total tear-down/build-up of the IIS virtual 
directories and their settings.


Bob Archer wrote:
 Sure, anything is possible with enough time and [swear words] money. 

 Are you talking about re-doing the virtual and such too? 

 We do a simple version of what you are saying. Basically stopping IIS,
 deleting all the files in the VD then copying them all out there again.
 But, we are going to move to having the script run the installer to be
 100% sure we are also testing the installer that will go out to clients.

 BOb


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mike
 Frederick
 Sent: Wednesday, August 13, 2008 5:09 PM
 To: nant-users@lists.sourceforge.net
 Subject: [NAnt-users] Web deployment questions

 All,

 I am in charge of the build/deployment of a web-based product and I have

 scripted the builds and deployments in NAnt.  Now I am being asked to 
 also script the complete tear-down/build-up of the underlying IIS web 
 sites.  This is to be done in order to guarantee that the final 
 deployment web sites are built exactly the same (same properties, same 
 files) as the gold copy we hand build/test in-house.

 I am wondering how those of you on this list accomplish this task.  I 
 have seen the Microsoft TechNet article on this subject 
 (http://technet.microsoft.com/en-us/magazine/cc160773.aspx), but I also 
 notice that there are a few tasks in the NAntContrib distribution that 
 deal in some ways with IIS web deployments.  Can the NAntContrib tasks 
 be used to completely tear-down (I'm fairly certain they can do this) 
 and xerox an established web site (or virtual directory) onto another 
 server?

 Any help/tips appreciated.

 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users


   


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] short-circuiting a foreach task

2008-06-05 Thread Nau, Mike
Is there a way to short-circuit a foreach task? For example if I'm looking 
for a specific line within a file and I find that line, can I force the 
foreach task to exit without continuing through the rest of the lines in the 
file?

-Mike
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Using the launchccnetbuild task

2008-05-02 Thread Mike Frederick
All,

I am trying to utilize the launchccnetbuild task.  I have placed the 
files LaunchCCNetBuild.dll and NAnt.LaunchCCNetBuild.dll into my NAnt 
bin folder; however, when I try to run a NAnt project containing this 
task I get the error message that the task is not defined.

I am attempting to run the NAnt project from the command line.

Is there something else I need to do?  Does anyone know how I can get 
this working?  TIA.

-- 
Mike Frederick
[EMAIL PROTECTED]


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Using NAnt 0.86 beta1 on 64-bit Windows

2008-04-29 Thread Mike Frederick
All,

I have been using NAnt for quite some time, but this one has me 
stumped...Some help if you don't mind.

Have installed NAnt 0.86 beta1 on a 64-bit machine and Windows 2003 
Server, 64-bit Edition.  Did what I usually do, which is copy the files 
into a directory, modify the system PATH to include the bin subdirectory 
of the directory where I unloaded all the files.

Now when I run NAnt I get:

BUILD FAILED

Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target 
framework.

Property evaluation failed.
Expression ${path::combine(sdkInstallRoot, 'bin')}

Property 'sdkInstallRoot' has not been set.

Is there something I have done incorrectly?  Please help me if you have 
any ideas.  TIA

Oh, yea, my command line was: nant -f:dnet.build go

-- 
Mike Frederick
[EMAIL PROTECTED]


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Further XML node processing

2008-01-24 Thread Mike Frederick
All,

Is there any way to do the following:

I have an XML file with parameters for my product deployments.  The 
segment looks like:

   DataMods
Input value=abc/
Output value=def/
Intermediate value=xyz/
  /DataMods

and what I really want to do is read every DataMods child element and 
use the nodename and value attribute to modify a deployed config file.  
If I could do this, then when I need to change a value I just edit the 
XML file; if I need to add/remove a value to be modified I still just 
edit the XML data file.

But it appears that no conjuring of the xmlpeek task will quite do 
it.  Does anybody have any ideas on how to loop through each child node 
in an XML file and be able to pick up the nodename and attributes?  TIA!

-- 
Mike Frederick
[EMAIL PROTECTED]


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Invalid framework 'netcf-1.0' specified.

2008-01-20 Thread Mike Vosseller
Trying to build a netcf-1.0 app but I'm getting errors like:
Framework 'netcf-1.0' is invalid and has not been loaded : Registry
Value Not Found! -
key='SOFTWARE\Microsoft\.NETCompactFramework\\sdkInstallRoot';hive='LocalMachine';.
Target framework could not be changed. netcf-1.0 is not a valid
framework identifier. Valid values are: netcf-2.0, net-1.0, net-2.0, net-1.1
.
Invalid framework 'netcf-1.0' specified.

(using nant 0.85 and did try 0.86-beta with no luck)

I have the following packages installed:
Microsoft .NET Framework (English) v1.0.3705
Microsoft .NET Framework 1.1
Microsoft .NET Framework SDK (English) 1.1
Microsoft .NET Framework 2.0
Microsoft .NET Compact Framework 1.0 SP3
Microsoft .NET Compact Framework 1.0 SP3 Developer
Microsoft .NET Compact Framework 2.0 SP2
Microsoft Visual Studio 2005 Professional Edition
Windows Mobile 5.0 Smartphone SDK

Any ideas what I missing?

Incidentally after browsing the registry I was able to make some changes to
NAnt.exe.config and now have it running. The fix is so ugly though that it
still must not being doing the right thing. Here is what I did:

While I don't have the registry setting it is looking for:
SOFTWARE\Microsoft\.NETCompactFramework\\sdkInstallRoot

I do have this one:
SOFTWARE\Microsoft\.NETCompactFramework\v1.0.5000.0\InstallRoot (which
points to C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\)

So I modified NAnt.exe.config to use this setting which caused me to adjust
a few other lines because:
- I don't have a sub-directory called v1.0.5000
- My sub-directory WindowsCE has no space in its name. (
NAnt.exe.config expects Windows CE)
- I don't have a bin sub-directory at all!

Here is the diff:

$diff NAnt.exe.config-orig NAnt.exe.config-hack
435c435
 sdkdirectory=${path::combine(sdkInstallRoot, '
v1.0.5000\bin')}
---
   sdkdirectory=${path::combine(sdkInstallRoot, 'bin')}
// **DIRECTORY DOESN'T EXIST FOR ME**
437c437

frameworkassemblydirectory=${path::combine(sdkInstallRoot, '
v1.0.5000\Windows CE')}
---

frameworkassemblydirectory=${path::combine(sdkInstallRoot, 'WindowsCE')}
450c450

key=SOFTWARE\Microsoft\.NETCompactFramework\sdkInstallRoot
---

key=SOFTWARE\Microsoft\.NETCompactFramework\v1.0.5000.0\InstallRoot\


It now appears to run correctly but as you can imagine I'm skeptical it is
doing the right things.

Any help is greatly appreciated!
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] NAnt-users Digest, Vol 17, Issue 20

2007-10-26 Thread Mike Frederick
It is a common misconception that the constant MAX_PATH refers to the 
maximum length of a Windows path.  It actually refers to the maximum 
length of a Windows path *component*, such as a filename or a folder name.

You can have multiple folder levels, with each folder's name a maximum 
of MAX_PATH characters.
 --

 Message: 1
 Date: Thu, 25 Oct 2007 21:05:27 -0500
 From: Alan Guedeney [EMAIL PROTECTED]
 Subject: Re: [NAnt-users] Advanced NANT question ...
 To: Erich Eichinger [EMAIL PROTECTED],
   nant-users@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1


 Ok, I get a PathTooLongException. Another limitation of using it this way is 
 that the max path size is something ridiculous like 260 characters, where as 
 the system max path size is much larger! On top of that, I do not see a way 
 to retrieve the standard out or standard error from the program. What a pain!


   


-- 
Mike Frederick
[EMAIL PROTECTED]


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Web project deploys

2007-09-11 Thread Mike Frederick
Hello,

I have web project deploys written in NAnt.  They are fairly simple 
UNZips from an archive file to a virtual directory.

Occasionally, these copies fail because IIS has a file open due to 
someone accessing a specific web page.  What is a good practice for 
performing this operation without copy failures?  I thought about 
stopping/starting IIS, but we have so much other stuff running there 
that that option is unworkable.

I know about the mkiisdir task; do you *really* completely 
delete/recreate the IIS virtual directory with each deployment?  Can you 
delete the virtual directory when someone has a web page open?  I guess 
this would make sense if you consider the exact configuration of the IIS 
virtual directory a part of the deployment packaging.

Any advice welcome.  TIA.

-- 
Mike Frederick
[EMAIL PROTECTED]


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Dynamic include?

2007-08-28 Thread Mike Frederick
Hello,

I would like to be able to determine at run-time the name of an include 
file.  Is it possible to do this?  The include file contains nothing but 
a large set of property tasks to define build parameters.

Or do I just need to precede my nant execution by shoving the correct 
include file into place?

-- 
Mike Frederick
[EMAIL PROTECTED]


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Using the LaunchCCNetBuild task

2007-06-19 Thread Mike Frederick
Does anyone use the LaunchCCNetBuild NAnt task?  I need to use it and 
I keep getting errors.  If I setup my NAnt project like:

project name=test
   target name=go
   property name=serverurl 
value=http://localhost:21234/CruiseManager.rem/
   launchccnetbuild serverurl=${serverurl} projectname=ProjectA /
   launchccnetbuild serverurl=${serverurl} projectname=ProjectB /
   /target
/project

I get:

*
 


[launchccnetbuild] Connecting to CCNet server 
http://localhost:21234/CruiseManager.rem

BUILD FAILED

INTERNAL ERROR

System.Net.WebException: The server committed a protocol violation. 
Section=ResponseStatusLine
*
 


with of course a bunch more trace messages.  If I use the project:

project name=test
   target name=go
   property name=serverurl value=http://localhost/ccnet/
   launchccnetbuild serverurl=${serverurl} projectname=ProjectA /
   launchccnetbuild serverurl=${serverurl} projectname=ProjectB /
   /target
/project

I get:
*
 

[launchccnetbuild] Connecting to CCNet server http://localhost/ccnet

BUILD FAILED

INTERNAL ERROR

System.Net.WebException: The remote server returned an error: (403) 
Forbidden.
*
 


Any help would be appreciated.

-- 
Mike Frederick
[EMAIL PROTECTED]


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Checking if a fileset exists

2007-06-15 Thread mike nau
Is there a way to test if a particular fileset exists within an nant script? I 
have a zip task that includes several fileset via refid. If one of these 
filesets doesn't exist, the zip task fails. 

zip zipfile=foo.zip includeemptydirs=true
  fileset refid=assembly.fileset/ 
  fileset refid=testresults.fileset/ 
/zip 

I'm looking for a way to test if all the fileset refid's are valid before 
zipping them up.

Thanks,
-Mike


   

Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=listsid=396545433-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] solution task support for Visual Studio 2005

2007-01-01 Thread Mike Roberts
Excellent news!

Any idea when you'll have a new 'non nightly' release that this will
be included in?

Mike

On 28/12/06, Gert Driesen [EMAIL PROTECTED] wrote:
 Hi,

 Today marks the availability of long-awaited support for Visual Studio 2005
 solutions and projects in the solution task.

 Those eager to try it out can download the lastest nightly build here:
 http://nant.sourceforge.net/nightly/latest

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] running apache-ant through exec doesn't return fail status

2006-11-28 Thread Mike Roberts
I call ant.bat from CruiseControl.NET but I have the same problem

The ant.bat script doesn't respect error codes properly. I edit mine
and put the following line at the end:

exit %ERRORLEVEL%

The only problem with this is that if you run it from a normal command
prompt it exits the command prompt window, so I actually copy ant.bat
to another file ('and-and-exit.bat'), edit that one and then point
CCNet (nant in your case) to that.

HTH,

Mike

On 28/11/06, Moshe Hajaj [EMAIL PROTECTED] wrote:




 I'm trying to combine a java build inside my existing NAnt/.NET nuild
 script.

 The problem is that executing Ant this way:



 exec

   program=${sys.env.ANT_HOME}\bin\ant.bat

   workingdir=${current.dir}

   commandline=-buildfile ibm_java.xml compile

   failonerror=true

 /



 is not causing the build to fail.





 Wrapping it with:



 trycatch

   try

….

  /try

  catch property=failure

 echo message=Java build failed!/

 fail message=${failure} /

  /catch

 /trycatch



 doesn't work either.



 Is there's any way I can have Ant report on error? I checked my XML log file
 (through xml listener) and it captures the errors as warnings!

 Any idea, someone?



 Thanks,

 `M


  
 Access over 1 million songs - Yahoo! Music Unlimited.
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users





-- 
mike roberts | http://www.mikebroberts.com/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Intermittent Cannot copy... errors

2005-11-13 Thread Mike Kozlowski
I'm using Nant as the build tool on a CruiseControl.NET continuous 
integration server.  Nant is deploying the code to a live Web directory 
(so that a working instance of the latest version of the code is always 
available for developers to hit).  Approximately half the time, I get the 
following error:


 [copy] Copying 1 file to 'c:\WebSites\LmsDev\Web\log.config'.

Build Error: NAnt.Core.BuildException
Cannot copy 'c:\LmsSource\Web\logDev.config' to 
'c:\WebSites\LmsDev\Web\log.config'.

in c:\lmssource\web\web.build line: 217 col: 7

   at NAnt.Core.Tasks.CopyTask.DoFileOperations()
   at NAnt.Core.Tasks.CopyTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean 
forceDependencies)

   at NAnt.Core.Tasks.CallTask.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()


The actual file that this happens to is variable, but the log.config file 
(which is a log4net configuration file) is the one that shows up most 
often.


My suspicion is that the running web application is keeping these files 
open (log4net periodically checks the config file for modifications, for 
instance), so they can't be overwritten.


Does this sound correct?  And if so, is there anything I can do to prevent 
it from happening?


--
Mike Kozlowski
http://www.klio.org/mlk/



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] calling include'd targets

2005-08-31 Thread Mike Roberts
Hi all,

OK, maybe I'm being really dumb, but I can't seem to call targets
from a project file I've include'd - is this supported? I'm using
RC3.

Cheers,

Mike

-- 
mike roberts | http://mikeroberts.thoughtworks.net/ |
http://www.thoughtworks.com/


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] .85 RC3 and Nunit 2.2

2005-07-27 Thread Mike Roberts
I agree with Richard here - I find the NUnit tasks in NAnt to cause
problems and just use exec

blatent-self-promotion

http://mikeroberts.thoughtworks.net/blog/archive/Tech/dotNet/Howtosetupa.NETDevelopmentTreePart7.html

/

Mike

On 7/26/05, Foster, Richard - PAL [EMAIL PROTECTED] wrote:
  
 Peter, 
   
 Do you *need* to use the nunit2 task? I've had much more success using
 exec, and it means that I can change my version of NUnit at will. Don't
 forget, to use the NUnit2 task, you have to use the same version of the
 NUnit framework that Nant was compiled against... and I *think* that may be
 2.2.0, not a more recent version. 
   
 Regards, 
 Richard
  
  
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Peter Jones
 Sent: Tuesday, July 26, 2005 03:51
 To: nant-users@lists.sourceforge.net
 Subject: [Nant-users] .85 RC3 and Nunit 2.2
 
  
  
 
 I see a few messages in the archive regarding using Nunit 2.2 with RC3, but
 nothing that really helps me. 
 
 I'm getting an error:[nunit2] Assembly c:\blah\Tests.dll was not built
 with the NUnit framework and/or contains no tests. 
 
 I have Nunit 2.2.2.0 installed and I can use TestDriven.Net to run the tests
 without problem, inside VS.Net. 
 
 Using Reflector I can see that Nant is correctly building the test.dll with
 it's version of Nunit.  My target looks like this: 
 
 nunit2 
   formatter type=Plain / 
   test appconfig=${testdir}\app.exe.config
 assemblyname=${outdir}\Tests.dll / 
 /nunit2 
  
 
 Anyone got any ideas?  I can try .84 I suppose… :{  Any helpful suggestions
 would be great as I need to demo this at a user group in a couple of weeks. 
 
 Thanks 
  
 
  
 Peter G Jones 
 Microsoft .Net MVP 
 Christchurch, New Zealand 
 http://jonesie.net.nz 
  
  


-- 
mike roberts | http://mikeroberts.thoughtworks.net/ |
http://www.thoughtworks.com/


Re: [Nant-users] How do i notify a specific developer?

2005-07-04 Thread Mike Roberts
Kirti,

This question would be better asked on the CCNet-User mailing list [1]

To answer your question though, make sure all your developers are
mapped in the email publisher config section. What I mean by this is
that make sure you are mapping your source control user names for each
of your developers to a correct email address. When CCNet builds, it
sends an email to (at least) all developers who made a modification.
See http://confluence.public.thoughtworks.org/display/CCNET/Email+Publisher
for more details.

You might want to consider using the 'CCTray' application though. Most
CCNet users prefer that to email these days.

Mike

[1] http://lists.sourceforge.net/lists/listinfo/ccnet-user

On 4 Jul 2005 12:38:11 -, Kirti Mali [EMAIL PROTECTED] wrote:

   Hi Nant users,
 I am a new user of cruisecontrol   also a new member of
 this group. Please can you tell me as to how to do i notify a specific
 developer informing him about his checked-in files causing the build to
 fail.How do i trace the developer?


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] NAnt running under CCNET having issue when generating VS.NET 2003 type documentation with NDoc

2005-06-21 Thread Mike Roberts
Hi,

Have you looked at the documentation (
http://confluence.public.thoughtworks.org/display/CCNET/The+Server+Service+Application
) ? Also, I think this question is probably better suited to the CCNet
User ( http://lists.sourceforge.net/lists/listinfo/ccnet-user ) list
rather than the NAnt list.

Mike

On 6/21/05, Sandeep [EMAIL PROTECTED] wrote:
 Hi,
 
 This problem is related to integrating NDoc with NAnt/CCNET. I am
 posting it here to see if someone has implemented it and faced similar
 issue.
 
 I am getting the following error when trying to generate VS.Net 2003
 type of documentation using NDoc:
 
 [exec] Starting 'D:\Program Files\NDoc 1.3\bin\net\1.1\NDocConsole.exe
 (-documenter=VS.NET 2003 -project=Help.ndoc -verbose)' in
 'D:\Root\Doc'
 [exec] NDoc 1.3.1 (Build 1.3.1851.0; net-1.1.win32; release; 1/25/2005)
 [exec] http://ndoc.sourceforge.net
 [exec] Initializing...
 [exec] Last step took 0.2 s
 [exec] Merging XML documentation...
 [exec] Last step took 8.8 s
 [exec] Loading StyleSheets...
 [exec] Last step took 2.2 s
 [exec] Generating HTML...
 [exec] Last step took 3.7 s
 [exec] Compiling Html Help 2 Files...
 [exec] Error: NDoc.Core.DocumenterException
 [exec] An error occured while creating the documentation
 [exec] Error: NDoc.Core.DocumenterException
 [exec] HtmlHelp2 compilation error
 [exec] Error: System.UnauthorizedAccessException
 [exec] Access is denied.
 [exec] at
 NDoc.Documenter.NativeHtmlHelp2.NativeHtmlHelp2Documenter.Build(Project
 project)
 [exec] at NDoc.ConsoleApplication.EntryPoint.Main(String[] args)
 
 I am executing NDoc console from NAnt running under Cruise Control .Net.
 Cruise Control.Net service is running under a domain account who is
 administrator of the server. I am using NDoc version 1.3.1. Everything
 works fine with MSDN type documenter. This error is not giving me any
 clues as to what is wrong. If I run the NDocConsole.exe from command
 prompt, it works fine.
 
 Has anyone experienced this before? Any pointers to this problem will be
 greatly appreciated.
 
 Thanks in advance,
 Sandeep
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick
 ___
 Nant-users mailing list
 Nant-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users
 


-- 
mike roberts | http://mikeroberts.thoughtworks.net/ |
http://www.thoughtworks.com/


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Problem with nunit2

2005-04-04 Thread Mike Roberts
Hi Rick,

It might not be the answer you're looking for, but my suggestion is
'don't use the nunit2 task' . Instead, use exec and call the
nunit-console application.

I wrote this up a little bit here:

http://mikeroberts.thoughtworks.net/blog/archive/Tech/dotNet/Howtosetupa.NETDevelopmentTreePart7.html

Mike

On Apr 4, 2005 9:57 PM, Rick Busch [EMAIL PROTECTED] wrote:
  
  
 
 I am a new Nant user and have so far been unable to execute existing nunit
 tests using the nunit2 task. 
 
 I'm using the 0.85 rc version of Nant and have re-compiled my nunit assembly
 using Nunit 2.2.


---
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=6595alloc_id=14396op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Solution task - Couldn't find Primary Interop Assembly stdole

2005-03-09 Thread Mike Roberts
On Wed, 9 Mar 2005 16:46:28 +0100, Marcin Hoppe [EMAIL PROTECTED] wrote:
 Hi!
 
 I'm using NAnt to compile VS.NET solutions on the build machine. The
 project relies on some 3rd party COM components. These components were
 set up in the same manner on two machines: my workstation and a build
 server. There's no VS.NET installation on the build machine.

That will be the problem. If you look in c:\Program
Files\Microsoft.NET\Primary Interop Assemblies\ or the equivalent on
your workstation, you'll find stdole.dll. Copy this to the same
location on your build machine (create the directory if necessary).
You might have to do a regasm /codebase envdte.dll in that
directory, but try without first.

I don't know why MS didn't include these in the standard SDK...

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=6595alloc_id=14396op=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

2005-02-23 Thread Mike Roberts
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 exec rather than
nunit2 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=6595alloc_id=14396op=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

2005-02-23 Thread Mike Roberts
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 - exec 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=6595alloc_id=14396op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Checking fileset contents?

2005-02-17 Thread Mike Roberts
On Fri, 18 Feb 2005 11:17:00 +0900, Ian MacLean [EMAIL PROTECTED] wrote:

 btw - I quite like the idea of prototyping functions/tasks in script
 tags before considering them for inclusion in NAnt. Maybe we should add
 a user-submitted scripts section on the wiki.

We did heaps in script tags on a project I was on last year. Most of
our Data Migration, build configuration and IIS Automation was done in
them.

Of course, we will need a NantScriptUnit to test them all ;)

I tried in September to do something similar in Ant with Beanshell -
not nearly as nice. :)

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=6595alloc_id=14396op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Re: Multiple output dirs on VS.NET task

2005-02-15 Thread Mike Roberts
A default use of solution will use the Visual Studio 'Debug' 'build
configuration',
which already outputs to 'bin\Debug' in each of the project directories.

I actually like to have a new build configuration though just for building
from NAnt, and this compiles each project to something like 'src
root\build\projectName\'

I wrote about this on my blog recently - you might want to check it out -
http://mikeroberts.thoughtworks.net/blog/archive/Tech/dotNet/Howtosetupa.NETDevelopmentTreePart5.html

Mike

Hello Alexandre,

 Hi all,

 I just got set up with NAnt and I am a bit stuck trying to do a
 particular task. I have a VS.NET solution composed of 4 projects (2
 Web projects, 1 console app and 1 class library).

 I was trying to use the solution task to build the solution, it
 works just fine, but now I need to generate each project contained on
 the solution on a different output dir. Something like one output dir
 per project.

 Can I do this using the solution task or would I need to use the
 csc to compile the projects on a more detailed configuration?



---
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=6595alloc_id=14396op=click
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Visual Studio.NET Add-In for NAnt

2005-02-03 Thread McKenzie, Mike
For anyone interested, I have an alpha-quality Nant Addin that we use to
easily build from within VS.NET.  The Add-in creates a Build With Nant
menu item on the project context menu in the Solution Explorer with sub
menus for each build file you have in the folder tree for your solution.  It
then adds sub menus to those that enumerate the build targets from the build
file.  Click on it and it will run Nant and output results to the output
window in VS.NET.  Make sure you have the path to nant.exe somewhere in your
PATH environment variable.

Download at:  http://www.dotnetosphere.com - both source and a binary setup
are available.

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Donal McCarthy
Sent: Wednesday, February 02, 2005 7:41 AM
To: Bill Arnette
Cc: Arnette, Bill; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] is there an add-in to run nant from within vs.net?

Bill,
The reason NAnt would not be running is that you need to tell the AddIn
where the NAnt executable is.  You should be able to do this with the tools
- options - nantrunner settings.  For some people, this options panel
doesn't work correctly due in large part to the way a shim component is used
to host the .Net based NAntRunner in VS.Net.

This shim component was given away by Microsoft as an unsupported piece of
code for hosting .net components in COM based applications.  This component
can sometimes seem to cause conflicts with other addins in VS.Net  There is
a new model in Whidbey which means this unreliable component is no longer
required.  Until then, you can set any options in the registry directly.
Look through the soure on sourceforge to find the registry key for setting
up the link to NAnt.

I'm looking for anyone who would like to maintain and enhance this tool
going forward.  Any takers?

Regards,
Donal

quote who=Bill Arnette
 Also, after enabling the Nant Runner Add-in in Add-in manager, the 
 project options dialog is hosed for everything.  If I right click an 
 item in the solution explorer and select Properties and then select 
 anything in the left tree, the dialog for those options is not shown 
 in the right side of the options dialog.

 This is a bummer.  I'd really like to get this working.




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Bill 
 Arnette
 Sent: Tuesday, February 01, 2005 3:32 PM
 To: nant-users@lists.sourceforge.net
 Subject: RE: [Nant-users] is there an add-in to run nant from within 
 vs.net?



  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
  Larson
  Sent: Tuesday, February 01, 2005 2:55 PM
  To: nant-users@lists.sourceforge.net
  Subject: Re: [Nant-users] is there an add-in to run nant from 
  within vs.net?
 
 
  To get the tab to display I had to:
 
  install nantrunner
  start VS.NET 2003
  remove the .build file from a project remove nantrunner from the 
  active addins list add nantrunner to the active addins list add the 
  previously removed build file

 Ok.  I did like above and now have a Nant Runner window.  But when I 
 click a target, the Output window switches to build but there is no 
 output and according to Process Explorer [1] NAnt is not invoked.


 [1] www.sysinternals.com






 ---
 This SF.Net email is sponsored by: IntelliVIEW -- Interactive 
 Reporting Tool for open source databases. Create drag--drop reports. 
 Save time by over 75%! Publish reports on the web. Export to DOC, 
 XLS, RTF, etc.
 Download a FREE copy at http://www.intelliview.com/go/osdn_nl
 ___
 Nant-users mailing list
 Nant-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users




 ---
 This SF.Net email is sponsored by: IntelliVIEW -- Interactive 
 Reporting Tool for open source databases. Create drag--drop reports. 
 Save time by over 75%! Publish reports on the web. Export to DOC, XLS,
RTF, etc.
 Download a FREE copy at http://www.intelliview.com/go/osdn_nl
 ___
 Nant-users mailing list
 Nant-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users




---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool
for open source databases. Create drag--drop reports. Save time by over
75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases

[Nant-users] #import supported by Nant?

2004-12-21 Thread Mike Lee
I'm trying to build a c++ project that uses #import. I've made sure that in 
the project settings, that all the directories of where the library files were 
and I'm getting an error saying that the file I'm importing could not be 
found. Any ideas?



---
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://productguide.itmanagersjournal.com/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Skipping solution build in Nant..WHY?

2004-12-16 Thread Mike Lee
I'm trying to build a solution file with a configuration of Release
MinDependency and Nant seems to skip the build. Here is my build script:
--
--
project name=XMLProxy  default=build.XMLProxy
property name=configuration value=Release MinDependency overwrite=false
/

target name=build.XMLProxy
solution configuration=Release MinDependency solutionfile=XMLProxy.sln /

/target

/project
--
---
Heres What I get:
--
---
W:\src\TIMD\Common\XMLProxynant build
NAnt 0.85 (Build 0.85.1754.0; net-1.0.win32; nightly; 10/20/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///W:/src/TIMD/Common/XMLProxy/XMLProxy.build
Target(s) specified: build


build:


build.XMLProxy:

[solution] Starting solution build.
[solution] Skipping 'XMLProxy' [Release MinDependency] ...

BUILD SUCCEEDED

Total time: 0.4 seconds.
--
-
Any Ideas?



---
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://productguide.itmanagersjournal.com/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Skipping solution build in Nant..WHY?

2004-12-16 Thread Mike Lee
I'm trying to build a solution file with a configuration of Release 
MinDependency and Nant seems to skip the build. Here is my build script:
--
--
project name=XMLProxy  default=build.XMLProxy
property name=configuration value=Release MinDependency overwrite=false 
/

target name=build.XMLProxy
solution configuration=Release MinDependency solutionfile=XMLProxy.sln /

/target

/project
--
---
Heres What I get:
--
---
W:\src\TIMD\Common\XMLProxynant build
NAnt 0.85 (Build 0.85.1754.0; net-1.0.win32; nightly; 10/20/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///W:/src/TIMD/Common/XMLProxy/XMLProxy.build
Target(s) specified: build


build:


build.XMLProxy:

[solution] Starting solution build.
[solution] Skipping 'XMLProxy' [Release MinDependency] ...

BUILD SUCCEEDED

Total time: 0.4 seconds.
--
-
Any Ideas? 



---
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://productguide.itmanagersjournal.com/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] cvs-checkout problem

2004-12-03 Thread Collier, Mike
I am using Nant 0.85-rc1.

I'm having a problem with the cvs-checkout task.  It seems to be
hanging when performing the log in.  Here is the output of the task:
[echo] Checking out module Library from CVS . . .
[cvs-checkout] Using ssh binary:
[cvs-checkout] Using .cvspass file:
[cvs-checkout] Working directory: c:\temp
[cvs-checkout] Executable:
D:\Development\NET\BuildTools\NAnt\0.85-rc1\nant-0.85-rc1\bin\scvs.exe
[cvs-checkout] Arguments:
-d:pserver:[EMAIL PROTECTED]:2401:/opt/apps/udev1cvs/Sterling_Library
-verbose checkout Library
[cvs-checkout] Starting
'D:\Development\NET\BuildTools\NAnt\0.85-rc1\nant-0.85-rc1\bin\scvs.exe
( -
d:pserver:[EMAIL PROTECTED]:2401:/opt/apps/udev1cvs/Sterling_Library
-verbose checkout Library)' in 'c:\temp'
[cvs-checkout] Logging in to
:pserver:[EMAIL PROTECTED]:/opt/apps/udev1cvs/Sterling_Library

It seems like it isn't using the correct server path.  I have the -d
argument set to use port 2401, but it appears to not be using that.
Now, I USED to have the -d argument set without the port number.  I
have since updated it.  Is Nant caching this somehow?


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://productguide.itmanagersjournal.com/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] RE: cvs-checkout problem

2004-12-03 Thread Collier, Mike
Never mind. . . . Figured it out. 

-Original Message-
From: Collier, Mike 
Sent: Friday, December 03, 2004 1:42 PM
To: '[EMAIL PROTECTED]'
Subject: cvs-checkout problem

I am using Nant 0.85-rc1.

I'm having a problem with the cvs-checkout task.  It seems to be
hanging when performing the log in.  Here is the output of the task:
[echo] Checking out module Library from CVS . . .
[cvs-checkout] Using ssh binary:
[cvs-checkout] Using .cvspass file:
[cvs-checkout] Working directory: c:\temp
[cvs-checkout] Executable:
D:\Development\NET\BuildTools\NAnt\0.85-rc1\nant-0.85-rc1\bin\scvs.exe
[cvs-checkout] Arguments:
-d:pserver:[EMAIL PROTECTED]:2401:/opt/apps/udev1cvs/Sterling_Library
-verbose checkout Library
[cvs-checkout] Starting
'D:\Development\NET\BuildTools\NAnt\0.85-rc1\nant-0.85-rc1\bin\scvs.exe
( -
d:pserver:[EMAIL PROTECTED]:2401:/opt/apps/udev1cvs/Sterling_Library
-verbose checkout Library)' in 'c:\temp'
[cvs-checkout] Logging in to
:pserver:[EMAIL PROTECTED]:/opt/apps/udev1cvs/Sterling_Library

It seems like it isn't using the correct server path.  I have the -d
argument set to use port 2401, but it appears to not be using that.
Now, I USED to have the -d argument set without the port number.  I
have since updated it.  Is Nant caching this somehow?


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://productguide.itmanagersjournal.com/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Conditional execution of a target

2004-12-03 Thread Collier, Mike
I seem to be having some problems with the if attribute on a target.
I would like to execute the target if a specific property evaluates to
true.  I have the following:
target name=db.init if=${property::get-value(sql.init)}
depends=db.create.tables, db.create.procs/

I then receive the following error message:
D:\Development\Projects\Library\Build\library.build(22,3):
Function call failed.
Expression: ${property::get-value(sql.init)}
  ^:
NAnt.Core.BuildException:
D:\Development\Projects\Library\Build\library.build(22,3):
Function call failed.
Expression: ${property::get-value(sql.init)}
  ^ --- Property 'false' has
not been set.:
NAnt.Core.BuildException: Property 'false' has not been set.
   at NAnt.Core.ExpressionEvaluator.EvaluateFunction(String
functionName, Object[] args)
   at NAnt.Core.ExpressionEvalBase.ParseValue()
   --- End of inner exception stack trace ---
   at
NAnt.Core.PropertyDictionary.EvaluateEmbeddedExpressions(String input,
Location location, Hashtable state, Stack visiting)
   at NAnt.Core.Target.get_IfDefined()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

How do I get a target to execute based on a value of a specific
property?

I'm using Nant 0.85.


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://productguide.itmanagersjournal.com/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] running Custom Build Setup

2004-11-29 Thread Mike Lee
When compiling a solution file, nant doesnt seem to execute anything written 
in the custom build setup portion of the project. What can I do?



---
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://productguide.itmanagersjournal.com/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Funky Filenames and fileset

2004-10-19 Thread Mike Bresnahan
I want my clean target to delete a bunch of intermediate files that are 
created by emacs, JBuilder, and CVS.  I have tried the following, but it 
doesn't work.

delete failonerror=false
  fileset basedir=.
includes name=**/.#*/
includes name=**/*~/
  /fileset  
/delete

The fileset does not appear to match any files.  I'm guessing this is caused by 
the funky filename formats.  Can someone confirm this is a bug in NAnt?  If so, 
is there a work-around?  If not, what am I doing wrong?

I am using NAnt 0.84.


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] nant include relative paths are not correct.

2004-05-04 Thread Mike Stephens
Is anyone else having this problem or am I doing something incorrectly?

Thanks,

Mike

Original Message Follows
From: Mike Stephens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Nant-users] nant include relative paths are not correct.
Date: Wed, 28 Apr 2004 13:21:10 +
I'm using NAnt and NAntContrib .85 from the last day or two from cvs and I 
have noticed over the last several days that the relative paths for the 
nant and include tasks are no longer what one would expect them to be.
It seems that any build files that are launched by the nant or include 
tasks would have a relative path of the subdirectory of the include file 
instead of the path of the parent Default.build file.

example:
C:\builds\Default.build  //main build file
in the Default.build file
property name=portlets.dir value=portlets //portlets directory
includes name=portlets\announcement\ann.include inheritall=true/
C:\builds\portlets\announcement\ann.include //portlet build file
The problem presents itself here when you try to access any properties that 
were set by the parent build file.   All of the properties from the parent 
build file now are relative to the C:\builds\portlets\announcement directory 
instead of from the C:\builds directory.
So if i were to try to write something back to the C:\builds\portlets 
directory using the property set in the parent build file
copy todir=${portlets.dir} overwrite=true
   fileset basedir=${portlet.bin}
	includes name=*.dll /
   /fileset
/copy
the value of ${portlets.dir} from the parent directory should be equal to  
C:\builds\portlets but now the value is going do be returned as 
C:\builds\portlets\announcments\portlets.
I am not rewriting the value of ${portlets.dir} in my portlet build file, 
this value is only set in the parent directory.

Any help would be appreciated,

Thanks,

Mike

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] nant include relative paths are not correct.

2004-05-04 Thread Mike Stephens
I have many other targets in this build file so i eliminated the ones that 
wouldn't be called just to keep this shorter.
The target build.portlets is what I'm executing and getting the problem 
descriibed below.

My problem lies anywhere where i use a property from the first default.build 
file that i use to call everything else.   So a property such as 
${portal.builds} referenced in the announcements.build file would resolve to 
C:\inetpub\wwwroot\rsiportal\controls\rockwellsoftware.portal\announcments\builds 
instead of the C:\inetpub\wwwroot\rsiportal\builds that was set in the 
parent build file

It also appears that i can't use the ../../ syntax anymore to move up a 
subdirectory it was if it was just being interpreted as a command and not a 
operator to move up subdirectories.

Any help you could provide would be greatly appreciated.

Thanks,

Mike

***
project name=FactoryTalk Portal Framework basedir=. default=dev 
xmlns=http://nant.sf.net/schemas/MSITask.xsd;
	property name=debug value=true /
	property name=builds.dir value=Builds /
	property name=portaltasks.dir 
value=${builds.dir}\RockwellSoftware.Portal.Tasks /
	property name=portalrecords.dir 
value=${builds.dir}\RockwellSoftware.Portal.Records /
	property name=coreapi.dir 
value=${builds.dir}\RockwellSoftware.Portal.Core /
	property name=portletapi.dir 
value=${builds.dir}\RockwellSoftware.Portal.Portlets /
	property name=portaltests.dir 
value=${builds.dir}\RockwellSoftware.Portal.Tests /

	property name=portal.msi.output.name value=RSIPortalSDKSetup.msi /
	property name=portal.msi.product.name value=Rockwell Software Portal 
/
	property name=portal.msi.product.version value=3.00.00.00 /
	property name=portal.build.title value=Athena Release /
	property name=portal.msi.manufacturer value=Rockwell Software /

property name=portal.msi.virtualdirectory.name value=RSIPortal /
property name=builds.basedir value=D:\Builds /
property name=portal.basedir value=. /
property name=draco value=false /
property name=nightlyBuild value=false /
property name=debug value=true /
property name=tasks.debug value=true /
	property name=build.month value=MM /
	property name=build.day value=DD /
	property name=build.year value= /
	property name=build.time value=HHMMSS /
	property name=portal value=/
	property name=portal.src value=src /
	property name=portal.controls value=Controls /
	property name=portal.controls.framework 
value=Controls\RockwellSoftware.Portal\Framework /
	property name=portal.controls.framework.images 
value=Controls\RockwellSoftware.Portal\Framework\Images /
	property name=portal.controls.framework.scripts 
value=Controls\RockwellSoftware.Portal\Framework\Scripts /
	property name=portal.controls.framework.stylesheets 
value=Controls\RockwellSoftware.Portal\Framework\Stylesheets /
	property name=portal.bin value=bin /
	property name=portal.docs value=Docs /
	property name=portal.branding value=Branding /
	property name=portal.builds value=Builds /
	property name=portal.nos value=NOS /
	property name=portal.nant value=NAnt /
	property name=portal.uploads value=uploads /
	property name=portal.install value=install /
	property name=runtime.lib value=RockwellSoftware.Portal.dll /
	property name=runtime.pdb value=RockwellSoftware.Portal.pdb /
	property name=runtime.lib.xml value=RockwellSoftware.Portal.xml /
	property name=portaltasks.lib value=RockwellSoftware.Portal.Tasks.dll 
/
	property name=portaltasks.pdb value=RockwellSoftware.Portal.Tasks.pdb 
/
	property name=nant.builds.dir value=${portal.builds}\SourceForge\NAnt 
/

   !-- build.portlets: Builds portlet projects --
	target name=build.portlets description=Builds portlet projects
		 nant buildfile=Controls\Default.build verbose=true target=build 
inheritall=true failonerror=true /
	/target
/project

*
Controls\Default.build
*
project name=RSIPortlets default=build
   
!--*--
   !--* Builds the portlets in all subdirectories  
   *--
   
!--*--

target name=build description=Builds the portlets in all 
subdirectories
		foreach item=Folder in=. property=companyname.folder
			foreach item=Folder in=${companyname.folder} 
property=portletname.folder
available type=File resource=${portletname.folder}\Default.build 
property=buildfile.present /
if test=${buildfile.present}
	nant buildfile=${portletname.folder}\Default.build target=build 
inheritall=true failonerror=true /
/if
			/foreach
		/foreach
	/target
*
One of my many build files

[Nant-users] nant include relative paths are not correct.

2004-04-28 Thread Mike Stephens
I'm using NAnt and NAntContrib .85 from the last day or two from cvs and I 
have noticed over the last several days that the relative paths for the 
nant and include tasks are no longer what one would expect them to be.
It seems that any build files that are launched by the nant or include 
tasks would have a relative path of the subdirectory of the include file 
instead of the path of the parent Default.build file.

example:
C:\builds\Default.build  //main build file
in the Default.build file
property name=portlets.dir value=portlets //portlets directory
includes name=portlets\announcement\ann.include inheritall=true/
C:\builds\portlets\announcement\ann.include //portlet build file
The problem presents itself here when you try to access any properties that 
were set by the parent build file.   All of the properties from the parent 
build file now are relative to the C:\builds\portlets\announcement directory 
instead of from the C:\builds directory.
So if i were to try to write something back to the C:\builds\portlets 
directory using the property set in the parent build file
copy todir=${portlets.dir} overwrite=true
   fileset basedir=${portlet.bin}
	includes name=*.dll /
   /fileset
/copy
the value of ${portlets.dir} from the parent directory should be equal to  
C:\builds\portlets but now the value is going do be returned as 
C:\builds\portlets\announcments\portlets.
I am not rewriting the value of ${portlets.dir} in my portlet build file, 
this value is only set in the parent directory.

Any help would be appreciated,

Thanks,

Mike

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Bug when using XmlLogger and build exceptions

2004-02-28 Thread Mike Roberts
Hi Gert,

I'd think it would be best to group all types of failures under 1 
'failure' tag. I see what you're saying about internal and build errors 
having different structures though, maybe we could actually put your 
second idea into a failure tag, e.g.

failure
   builderror
   ...
   /
/
or

failure
   internalerror
   ...
   /
/
On a much less important note, this feels better to me to since its 
feasible (maybe?) that later we could get multiple failures? (e.g. for 
parallel builds, should that ever happen) Then we could group all 
failures into one failures / tag.

I know this is verbose, but then there is strictly 1 tag type that 
identifies that there's been a problem (I'm thinking that would make 
parsing the xml log slightly easier).

Apart from that though, everything else looks great.

Cheers,

Mike

Gert Driesen wrote:

Mike,

I've modified the XmlLogger locally, to use the following xml layout to
report
build failures :
for build exceptions :

failure type=build
   message/message
   location
   filename/filename
   linenumber/linenumber
   columnnumber/columnnumber
   /location
   (if location information is available)

   stacktrace/stacktrace
   failure type=build|internal
   nested exception
   /failure
/failure
for internal errors :

failure type=internal
   message/message
   stacktrace/stacktrace
   failure type=build|internal
   nested exception
   /failure
/failure
However, I'm still not sure I like it all that much

eg. should we use elements named builderror and internalerror instead of
using failure type=build|internal ?  Could be better as an internal error
will never have a location node ...
In that case i'd add a type element containing the full name of the type of
the exception that was thrown ...
eg.

builderror
   typeNAnt.Core.BuildException/type
   message![CDATA[Unable to copy file xxx.]]/message
   location
   filenameD:\CVS\nant\test-xmllogger.xml/filename
   linenumber15/linenumber
   columnnumber3/columnnumber
   /location
   stacktrace
   ![CDATA[
   at NAnt.Core.Tasks.FailTask.ExecuteTask() in
D:\CVS\nant\src\NAnt.Core\Tasks\FailTask.cs:line 138
   at NAnt.Core.Task.Execute() in
D:\CVS\nant\src\NAnt.Core\Task.cs:line 151
   at NAnt.Core.Target.Execute() in
D:\CVS\nant\src\NAnt.Core\Target.cs:line 217
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in D:\CVS\nant\src\NAnt.Core\Project.cs:line 768
   at NAnt.Core.Project.Execute() in
D:\CVS\nant\src\NAnt.Core\Project.cs:line 730
   at NAnt.Core.Project.Run() in
D:\CVS\nant\src\NAnt.Core\Project.cs:line 793
   ]]
   /stacktrace
builderror
and

internalerror
   typeSystem.ArgumentNullException/type
   message![CDATA[Argument xx was null.]]/message
   stacktrace
   ![CDATA[
   at NAnt.Core.Tasks.FailTask.ExecuteTask() in
D:\CVS\nant\src\NAnt.Core\Tasks\FailTask.cs:line 138
   at NAnt.Core.Task.Execute() in
D:\CVS\nant\src\NAnt.Core\Task.cs:line 151
   at NAnt.Core.Target.Execute() in
D:\CVS\nant\src\NAnt.Core\Target.cs:line 217
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in D:\CVS\nant\src\NAnt.Core\Project.cs:line 768
   at NAnt.Core.Project.Execute() in
D:\CVS\nant\src\NAnt.Core\Project.cs:line 730
   at NAnt.Core.Project.Run() in
D:\CVS\nant\src\NAnt.Core\Project.cs:line 793
   ]]
   /stacktrace
internalerror
What do you think ?

Gert

 



--
Mike Roberts
http://mikeroberts.thoughtworks.net/


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [Nant-users] Bug when using XmlLogger and build exceptions

2004-02-26 Thread Mike Roberts
Hi Gert - thanks for the reply.

Regarding the xml structure, there's 2 things on my mind
- Try not to change the existing structure too much unless we have to
- This problem with exceptions is actually about failures generally 
(I've tried using just a fail / with a message and the same behaviour 
manifests - you never actually get the failure message in the xml)

With this in mind, lets look at the following script:

project name=example default=okthenfail
 target name=okthenfail depends=ok, fail /
 target name=ok
 echo message=This is OK /
 /target
 target name=fail
 fail message=This is a failure /
 /target
/project
Currently this produces the following output (for the the 'okthenfail' 
target) for plain and xml outputs:

--
Buildfile: file:///C:/tools/eclipse/workspace/ccnet/temp.build
Target(s) specified: okthenfail
ok:

[echo] This is OK

fail:

BUILD FAILED

C:\tools\eclipse\workspace\ccnet\temp.build(9,5):
This is a failure
Total time: 0.2 seconds.

--
buildresults project=example
 message level=Info![CDATA[Buildfile: 
file:///C:/tools/eclipse/workspace/ccnet/temp.build]]/message
 message level=Info![CDATA[Target(s) specified: 
okthenfail]]/message
 target name=ok
   task name=echo
 message level=Info![CDATA[This is OK]]/message
   /task
 /target
 target name=fail
   task name=fail /
 /target
/buildresults
--

The thing I get from this is that what we are losing is the failure 
message we have from the plain output and this failure message is 
reported outside of any targets or tasks. My suggestion is therefore 
that we simply add a failure tag, so that the xml looks like:

buildresults project=example
 message level=Info![CDATA[Buildfile: 
file:///C:/tools/eclipse/workspace/ccnet/temp.build]]/message
 message level=Info![CDATA[Target(s) specified: 
okthenfail]]/message
 failure
   
location![CDATA[C:\tools\eclipse\workspace\ccnet\temp.build(9,5)]]/location
   message![CDATA[This is a failure]]/message
 /failure
 target name=ok
   task name=echo
 message level=Info![CDATA[This is OK]]/message
   /task
 /target
 target name=fail
   task name=fail /
 /target
/buildresults

Optionally, it would be nice to add an attribute to the 'buildresults' 
root tag called 'success' that is either true or false.

It would also be good to introduce a time units=seconds tag, that 
could be used both underneath the top level to indicate the time for the 
whole build, and maybe also for each target to show how long each target 
takes.

What do you think?

Cheers,

Mike

Gert Driesen wrote:

Mike,

This is a known issue
(http://sourceforge.net/tracker/index.php?func=detailaid=788650group_id=31
650atid=402868), which is probably very easy to fix.  But I was actually
waiting for a good proposal for the xml structure.
Taken from the existing bug report :

Currently the layout of the xml logger output is something like
this :
buildresults project=...
  message level=Info/message
  target name=...
 task name=...

 /task
  /target
/buildresults
we could rename the buildresults node to
build, and add a
result node under that node with a status attribute (with
possible values failure or success) and
output the details
of the build failure as content of that node.
eg.

build project=...
  result status=Failure
 Unable to 
  /result
/build
Can you propose something, then I'll implement it. Does that sound ok ? :-)

Gert



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Bug when using XmlLogger and build exceptions

2004-02-25 Thread Mike Roberts
Hi there,

We've been seeing a problem for a while when using CruiseControl.NET 
where if a NAnt build fails due to an exception then the reason is not 
outputted. We use the xmllogger when driving NAnt from CCNet so that we 
can style the output later.

I always thought that it would be on standard error, and we just weren't 
capturing it properly, but it appears that there's actually a bug, which 
I can reproduce. Attached are some details - are there any plans to fix 
this?

Cheers,

Mike

--

C:\tools\eclipse\workspace\ccnettype temp.build
project name=example default=all
 target name=makeexception
   script language=C#
   code![CDATA[
   public static void ScriptMain(Project 
project)
   {
   throw new Exception(Making 
target throw exception);
   }
   ]]/code
   /script
 /target

/project
C:\tools\eclipse\workspace\ccnettools\nant\nant.exe 
-buildfile:temp.build makeexception
NAnt 0.84 (Build 0.84.1435.0; net-1.0.win32; rc 1; 06/12/2003)
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/tools/eclipse/workspace/ccnet/temp.build
Target(s) specified: makeexception
makeexception:

BUILD FAILED

C:\tools\eclipse\workspace\ccnet\temp.build(4,4):
Script exception.
Making target throw exception
Total time: 1.6 seconds.

C:\tools\eclipse\workspace\ccnettools\nant\nant.exe 
-logger:NAnt.Core.XmlLogger -buildfile:temp.build makeexception
NAnt 0.84 (Build 0.84.1435.0; net-1.0.win32; rc 1; 06/12/2003)
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

buildresults project=example
 message level=Info![CDATA[Buildfile: 
file:///C:/tools/eclipse/workspace/ccnet/temp.build]]/message
 message level=Info![CDATA[Target(s) specified: 
makeexception]]/message
 target name=makeexception
   task name=script /
 /target
/buildresults
C:\tools\eclipse\workspace\ccnet



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] delete element within target

2004-02-10 Thread Mike Gage








I am looking at a build file with a delete element within a
target.



The structure is:



target name=

 ndoc

 

 /ndoc

 delete

 fileset

 

 /fileset

 /delete

/target



I assume that the delete instructions are carried out before the NDoc build?
Is this the way that delete always works within a target?



Thanks.



-Mike Gage










[Nant-users] Com dll metadata?

2003-08-09 Thread Mike Duncan



I'm compilingC# and sucessfully referencing a 
bunch of .NET dlls in my build. The problem is when the compiler gets to a 
3rd party dll which is COM, I get the following 
fatal error CS0009: Metadata file 
'c:\cvs\tn_pos\TicketNetwork\dll\FDXParser.dll' could not be opened -- 'There 
isn't metadata in the memory or stream'

This all compiles fine from VStudio.

My references look like this:
 
references 
includes 
name="${dlls.dir}\*.dll"/ 
  includes name="C:\Program 
Files\Common Files\Crystal 
Decisions\1.0\Managed\*.dll"//references

And i have unsafe = "true" on my csc 
line.

Not sure what what I'm up against here, any help 
would be appreciated.

-- Mike Duncan
-- [EMAIL PROTECTED]



[Nant-users] CSC and resource embedding

2003-03-13 Thread Mike Gilbert
Folks,

My question is to do with the the resources part of the csc task.

I've got a bunch of resources that all seem to get embedded perfectly bar 
two.  These two files are embedded but not fully qualified like the rest of 
the files.

my.project.namespace.class1.resource
duff1.resource
duff2.resource
my.project.namespace.class2.resource
Has anyone else encountered anything like this ?

I've looked at the resx files and there doesnt seem to be any difference in 
the headers etc.

Any pointers appreciated.

Thanks

Mike+

_



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Emacs mode?

2002-10-01 Thread Mike Bridge

Hi-

Hey, just discovered nant yesterday - very cool!

One question: Is there any plan to implement an equivalent to ant's --emacs
mode in nant?  That would really
help for compiling.

Thanks,

-Mike



---
This sf.net email is sponsored by: DEDICATED SERVERS only $89!
Linux or FreeBSD, FREE setup, FAST network. Get your own server 
today at http://www.ServePath.com/indexfm.htm
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users