Re: [NAnt-users] Problem with vsscheckin task

2014-01-15 Thread Bob Archer
 I'm using the latest release versions of NAnt and NAnt Contrib (0.92) on a 64
 bit Windows 7 box. I am using the files from Issue 54
 (https://github.com/rmboggs/nant/downloads). I created the scripts on a 32
 bit XP machine, which has since bit the dust.
 
 I am using it to do some things in Visual SourceSafe and perform a build. The
 vssget, vsscheckout, and vssadd tasks all seem to be working fine, but
 vsscheckin only checks in a few files and stops. The task does not throw an
 error, in fact, it states it completed successfully. I have been banging my
 head on the wall with this and can't figure this out.
 
 We are phasing out XP, so getting a new XP machine is out of the question.
 
 Any suggestions would be good.

I suggest using the exec task to execute the native vss command line tools. 

BOb


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] nightly build Solution format not supported

2014-01-07 Thread Bob Archer
I suggest you modify your build script to use MSBuild task instead of the 
solution task.

BOb


From: Joao Miguel Ferreira [mailto:joao.miguel.c.ferre...@gmail.com]
Sent: Tuesday, January 07, 2014 10:33 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] nightly build Solution format not supported

Hello,

I'm using VS2010 on a Win7 32 bit. A few months ago I was able to build my C# 
.sln with nant-0.92. Meanwhile some developers moved to VS 2012 (I did not). 
Maybe some other changes happened that I'm not aware of.

Well, it does not build with nant anymore (tried 0.92 and the latest nightly 
build).

The message is the same in both:

Solution format of file 'c:\...\\...sln' is not supported

Can you help?

Thank you
Joao


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Support for .Net 4.5 and 4.5.1 running/targeting

2013-11-19 Thread Bob Archer
I wonder if anyone is actively working on this project. I need to be able to 
build targeting .Net 4.5.1... it seems the last release stops support at 4.0.

If this is just a matter of adding some config info so Nant can find the 
framework/msbuild paths (it seems MSBuild 12 is now in the SDK path and not in 
the framework path) I would be happy to make the changes. Seems like a 
worthwhile thing to release .93 with only adding this.

I'm not sure what the solution task would need... but frankly I don't use it.

Anybody?

BOb

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] MS Build 12

2013-10-22 Thread Bob Archer
So is NAnt going to use MS Build 12 now? I'm not sure how it finds the MSBuild 
path. Does it find paths based on the Framework targeting version?

I guess a more general question, is NAnt able to work with .Net 4.5.1 yet? I 
don't use the SOLUTION task I use the MSBUILD Task.

BOb

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Nested variables

2013-06-17 Thread Bob Archer
 Hello,
 I'm working on converting an Ant script to Nant and have ran into an issue 
 with
 joining several variables together in Nant.
 
 Below is the original Ant script in which it pulls information from a 
 properties
 file and uses the information to feed the build. The project starts by looping
 through build order (NETDLLS, App) and then uses that variable to prepend to
 the ProjectName to check out of StarTeam.
 
 Project.Build.Order=NETDLLs,App
 
 # Windows - .NET DLLs
 NETDLLs.ProjectName=Windows - .NET DLLs
 NETDLLs.ViewName=Windows - .NET DLLs
 NETDLLs.Label=201300722.20130508
 
 ANT script:
 target name=build.project
       property name=ProjectName
 value=${buildProp.${project.Ord}.ProjectName}/
   property name=ViewName
 value=${buildProp.${project.Ord}.ViewName}/
   property name=Label value=${buildProp.${project.Ord}.Label}/
 
   antcall target=checkoutModuleSrc inheritall=true/
 
 Here is what I have come up with in Nant which doesn't seem to be working.
 
 NAnt script:
 target name=build.project
       property name=ProjectName
 value=${'properties.project.Ord'+'.ProjectName'}/
   property name=ViewName
 value=${'properties.project.Ord'+'.ViewName'}/
   property name=Label value=${'properties.project.Ord'+'.Label'}/
   echo${ProjectName} ${ViewName} ${Label}/echo
   call target=checkoutModuleSrc/
 

I assume based on your title nested variables you want to do something like 
this:


property name=ProjectName 
value=${property::get-value('properties.project.Ord.ProjectName')}/

?

BOb



 Results of the script at the command line:
 checkoutModuleSrc:
 
  [exec] StarTeam 10.4 Command Line Interface, Build 10.4.8.36
  [exec] Copyright (c) 2003-2008 Borland Software Corporation. All rights 
 res
 erved.
  [exec] Using ini file: C:\Documents and Settings\All Users\Application 
 Data
 \Borland\StarTeam\ConnectionManager.ini
  [exec] Project not found: properties.project.Ord.ProjectName
 
 I would appreciate any help you can provide.
 
 Thanks,
 -Doug Labout
 
 
 The information contained in this electronic communication and any document
 attached hereto or transmitted herewith is confidential and intended for the
 exclusive use of the individual or entity named above. If the reader of this
 message is not the intended recipient or the employee or agent responsible for
 delivering it to the intended recipient, you are hereby notified that any
 examination, use, dissemination, distribution or copying of this communication
 or any part thereof is strictly prohibited. If you have received this
 communication in error, please immediately notify the sender by reply e-mail
 and destroy this communication. Thank you.

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Nested variables

2013-06-17 Thread Bob Archer
 Hello,
 I'm working on converting an Ant script to Nant and have ran into an issue 
 with
 joining several variables together in Nant.
 
 Below is the original Ant script in which it pulls information from a 
 properties
 file and uses the information to feed the build. The project starts by looping
 through build order (NETDLLS, App) and then uses that variable to prepend to
 the ProjectName to check out of StarTeam.
 
 Project.Build.Order=NETDLLs,App
 
 # Windows - .NET DLLs
 NETDLLs.ProjectName=Windows - .NET DLLs
 NETDLLs.ViewName=Windows - .NET DLLs
 NETDLLs.Label=201300722.20130508
 
 ANT script:
 target name=build.project
       property name=ProjectName
 value=${buildProp.${project.Ord}.ProjectName}/
   property name=ViewName
 value=${buildProp.${project.Ord}.ViewName}/
   property name=Label value=${buildProp.${project.Ord}.Label}/
 
   antcall target=checkoutModuleSrc inheritall=true/
 
 Here is what I have come up with in Nant which doesn't seem to be working.
 
 NAnt script:
 target name=build.project
       property name=ProjectName
 value=${'properties.project.Ord'+'.ProjectName'}/

What are you trying to do here? The value you are going to get in project name 
is:

properties.project.Ord.ProjectName

I assume that is not what you want? When you put something in an expression in 
quotes it is a string literal, it won't be evaluated. Are you trying to get the 
value of properties.project.Ord.ProjectName and put it into project name? I 
really don't understand your snippet here.

Also, what line does that error occur on?

BOb


   property name=ViewName
 value=${'properties.project.Ord'+'.ViewName'}/
   property name=Label value=${'properties.project.Ord'+'.Label'}/
   echo${ProjectName} ${ViewName} ${Label}/echo
   call target=checkoutModuleSrc/
 
 Results of the script at the command line:
 checkoutModuleSrc:
 
  [exec] StarTeam 10.4 Command Line Interface, Build 10.4.8.36
  [exec] Copyright (c) 2003-2008 Borland Software Corporation. All rights 
 res
 erved.
  [exec] Using ini file: C:\Documents and Settings\All Users\Application 
 Data
 \Borland\StarTeam\ConnectionManager.ini
  [exec] Project not found: properties.project.Ord.ProjectName
 
 I would appreciate any help you can provide.
 
 Thanks,
 -Doug Labout
 
 
 The information contained in this electronic communication and any document
 attached hereto or transmitted herewith is confidential and intended for the
 exclusive use of the individual or entity named above. If the reader of this
 message is not the intended recipient or the employee or agent responsible for
 delivering it to the intended recipient, you are hereby notified that any
 examination, use, dissemination, distribution or copying of this communication
 or any part thereof is strictly prohibited. If you have received this
 communication in error, please immediately notify the sender by reply e-mail
 and destroy this communication. Thank you.

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Nested variables

2013-06-17 Thread Bob Archer
Ok... I guess I'm still not understanding what is in each variable:

 You are correct in that I'm trying to put together a couple of variables.
 The build order is assigned to the variable ${properties.project.Ord}. I then

What is the exact text in that variable?

 append to the end of that variable the .ProjectName,

Is that a property, or a literal? What value is in .ProjectName (assuming that 
is a variable?)

 .ViewName, and .Label
 and assign them to ${ProjectName}. I then pass $ProjectName to my starteam
 checkout.

Same questions...

Are you trying to build a new variable name? So, when you say you want to 
append .ProjectName you mean the contents of that? 

If I knew what was in each variable in addition to the final value you expect 
in the variable, I could help you with more specific code.

BOb


 
 The trouble is that ${properties.project.Ord} returns as NETDLLS but when I
 want the variable ${NETDLLS.ProjectName} to be returned as
 NETDLLs.ProjectName=Windows - .NET DLLs it instead comes back as
 NETDLLS.ProjectName.
 
 StarTeam goes looking for a NETDLLS.ProjectName and of course can't find it
 and dies.
 
 Thanks for the help!
 Much appreciated!
 -Doug
 
 -Original Message-
 From: Bob Archer [mailto:bob.arc...@amsi.com]
 Sent: Monday, June 17, 2013 9:22 AM
 To: Labout, Douglas; 'nant-users@lists.sourceforge.net'
 Subject: RE: Nested variables
 
  Hello,
  I'm working on converting an Ant script to Nant and have ran into an
  issue with joining several variables together in Nant.
 
  Below is the original Ant script in which it pulls information from a
  properties file and uses the information to feed the build. The
  project starts by looping through build order (NETDLLS, App) and then
  uses that variable to prepend to the ProjectName to check out of StarTeam.
 
  Project.Build.Order=NETDLLs,App
 
  # Windows - .NET DLLs
  NETDLLs.ProjectName=Windows - .NET DLLs NETDLLs.ViewName=Windows -
  .NET DLLs
  NETDLLs.Label=201300722.20130508
 
  ANT script:
  target name=build.project
property name=ProjectName
  value=${buildProp.${project.Ord}.ProjectName}/
property name=ViewName
  value=${buildProp.${project.Ord}.ViewName}/
property name=Label
  value=${buildProp.${project.Ord}.Label}/
 
antcall target=checkoutModuleSrc inheritall=true/
 
  Here is what I have come up with in Nant which doesn't seem to be working.
 
  NAnt script:
  target name=build.project
property name=ProjectName
  value=${'properties.project.Ord'+'.ProjectName'}/
property name=ViewName
  value=${'properties.project.Ord'+'.ViewName'}/
property name=Label
  value=${'properties.project.Ord'+'.Label'}/
echo${ProjectName} ${ViewName} ${Label}/echo
call target=checkoutModuleSrc/
 
 
 I assume based on your title nested variables you want to do something like
 this:
 
 
 property name=ProjectName value=${property::get-
 value('properties.project.Ord.ProjectName')}/
 
 ?
 
 BOb
 
 
 
  Results of the script at the command line:
  checkoutModuleSrc:
 
   [exec] StarTeam 10.4 Command Line Interface, Build 10.4.8.36
   [exec] Copyright (c) 2003-2008 Borland Software Corporation. All
  rights res erved.
   [exec] Using ini file: C:\Documents and Settings\All
  Users\Application Data \Borland\StarTeam\ConnectionManager.ini
   [exec] Project not found: properties.project.Ord.ProjectName
 
  I would appreciate any help you can provide.
 
  Thanks,
  -Doug Labout
 
 
  The information contained in this electronic communication and any
  document attached hereto or transmitted herewith is confidential and
  intended for the exclusive use of the individual or entity named
  above. If the reader of this message is not the intended recipient or
  the employee or agent responsible for delivering it to the intended
  recipient, you are hereby notified that any examination, use,
  dissemination, distribution or copying of this communication or any
  part thereof is strictly prohibited. If you have received this
  communication in error, please immediately notify the sender by reply e-mail
 and destroy this communication. Thank you.
 
 The information contained in this electronic communication and any document
 attached hereto or transmitted herewith is confidential and intended for the
 exclusive use of the individual or entity named above. If the reader of this
 message is not the intended recipient or the employee or agent responsible for
 delivering it to the intended recipient, you are hereby notified that any
 examination, use, dissemination, distribution or copying of this communication
 or any part thereof is strictly prohibited. If you have received this
 communication in error, please immediately notify the sender by reply e-mail
 and destroy this communication. Thank you.

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net

Re: [NAnt-users] Nested variables

2013-06-17 Thread Bob Archer
Right... so use the property::get-value() function. I think this is what you 
need to do:

?xml version=1.0 ?
project name=test


loadproperties file=buildLabels.properties /

!-- The foreach bellow will loop through the list of projects in the 
Project.Build.Order in the buildLabels.properties --
foreach item=String in=${Project.Build.Order} delim=, 
property=properties.project.Ord
echo message=${properties.project.Ord} /

 call target=build.project/
/foreach

target name=build.project
property name=ProjectName value=${ 
property::get-value(properties.project.Ord+'.ProjectName')}/
property name=ViewName value=${ 
property::get-value(properties.project.Ord +'.ViewName')}/
property name=Label value=${ 
property::get-value(properties.project.Ord +'.Label')}/
echo${ProjectName} ${ViewName} ${Label}/echo
call target=checkoutModuleSrc/
/target

!-- checkout src directory --
target name=checkoutModuleSrc
!--
exec program=${starteam.cmd}
 arg line=co -p 
${STUser}:${STPassword}@${STServer}:${STPort}/${ProjectName} -o -cfgl 
${Label}/
/exec
-- 
echo message=${ProjectName} -o -cfgl ${Label} /

/target


/project

 -Original Message-
 From: Labout, Douglas [mailto:douglas.lab...@efirstbank.com]
 Sent: Monday, June 17, 2013 2:24 PM
 To: Bob Archer; 'nant-users@lists.sourceforge.net'
 Subject: RE: Nested variables
 
 Hmm,
 Let's see if I can explain it better...
 
 Here is the properties file that contains all the components to be built and 
 their
 associated views and labels.
 
 # Projects Build Order
 Project.Name=WCFServices
 Project.Build.Directory=C:\/VisualStudio\/
 Project.Build.Order=NETComponents,NETDLLs,App
 Project.Deploy=C:\/VisualStudio\/\Windows - BuildScripts\/Deploy\/
 
 # Windows - .NET Components
 NETComponents.ProjectName=Windows - .NET Components
 NETComponents.ViewName=Windows - .NET Components
 NETComponents.Label=201261654
 
 # Windows - .NET DLLs
 NETDLLs.ProjectName=Windows - .NET DLLs
 NETDLLs.ViewName=Windows - .NET DLLs
 NETDLLs.Label=2013064494
 
 # Windows - WCFServices_NewAccounts.DataAccess
 App.ProjectName=Windows - _WCFServices
 App.ViewName=Windows - _WCFServices
 App.Label=20781
 
 I use loadproperties file=buildLabels.properties / to load the lines in 
 the
 property file.
 
 Here is the loop that pulles build order:
 
 !-- The foreach bellow will loop through the list of projects in the
 Project.Build.Order in the buildLabels.properties --
 
 foreach item=String in=${Project.Build.Order} delim=,
 property=properties.project.Ord
  call target=build.project/
 /foreach
 
 Here is the build.project target:
 
 target name=build.project
 property name=ProjectName value=${
 properties.project.Ord+'.ProjectName'}/
 property name=ViewName value=${ properties.project.Ord'
 +'.ViewName'}/
 property name=Label value=${ properties.project.Ord'+'.Label'}/
 echo${ProjectName} ${ViewName} ${Label}/echo
 call target=checkoutModuleSrc/
 
 And finally, here is the checkoutModuleSrc target:
 
 !-- checkout src directory --
   target name=checkoutModuleSrc
 
 exec program=${starteam.cmd}
  arg line=co -p
 ${STUser}:${STPassword}@${STServer}:${STPort}/${ProjectName} -o -cfgl
 ${Label}/
 /exec
 
 
 You can see that I loop through the build order and pick up one of the 
 projects
 to be built, then append the .Projectname, .viewname and .label and then
 check out the code.
 
 The problem is that I can get it to return the property.project.Ord, but can't
 append the .ProjectName, .ViewName, or Label without it interpreting it as
 NETDLLs.ProjectName.
 
 
 -Original Message-
 From: Bob Archer [mailto:bob.arc...@amsi.com]
 Sent: Monday, June 17, 2013 10:47 AM
 To: Labout, Douglas; 'nant-users@lists.sourceforge.net'
 Subject: RE: Nested variables
 
 Ok... I guess I'm still not understanding what is in each variable:
 
  You are correct in that I'm trying to put together a couple of variables.
  The build order is assigned to the variable ${properties.project.Ord}.
  I then
 
 What is the exact text in that variable?
 
  append to the end of that variable the .ProjectName,
 
 Is that a property, or a literal? What value is in .ProjectName (assuming 
 that is
 a variable?)
 
  .ViewName, and .Label
  and assign them to ${ProjectName}. I then pass $ProjectName to my
  starteam checkout.
 
 Same questions...
 
 Are you trying to build a new variable name? So, when you say you want to
 append .ProjectName you mean the contents of that?
 
 If I knew what was in each variable in addition to the final value you expect 
 in
 the variable, I could help you

Re: [NAnt-users] Delete old files task

2012-09-06 Thread Bob Archer
 Hi all,
 Is it possible to use some nant task to do this:
 I need delete files with specific name NameOfFile*.zip which are older then 1
 month and in dir must be at least 3 files of that name.
 My english is not so good so here is example.
 
 1. I have 30 files of specific name pattern. 25 are older then one month
 - that 25 file will be deleted, because there still will be 5 files 2. I have 
 30 files
 of specific name pattern. 29 are older then one month
 - 27 oldest files will be deleted, because I need at least 3 files of that 
 pattern.
 
 Hopefully you can understand me
 
 Best Regards Ales

Here is my hazel target. I thought of creating it as a task... but have been 
too lazy. But, if someone wants to add the hazel task to Nantcontrib I don't 
have a problem with that. This clears leaving behind a certain number of files, 
but it could easily be changed to use age of file instead.

target name=hazel
property name=hazel.searchPattern value=* overwrite=false /
script language=C#
  code![CDATA[
public static void ScriptMain(Project project)
{
string path = project.Properties[hazel.dirToClean];
string searchPattern = 
project.Properties[hazel.searchPattern];
string [] folders = 
System.IO.Directory.GetDirectories(path,searchPattern,SearchOption.TopDirectoryOnly);

System.Collections.ArrayList dirlist = new 
System.Collections.ArrayList();
foreach (string folder in folders)
{
dirlist.Add(new DirectoryInfo(folder));
}
dirlist.Sort(new DirectoryInfoDateComparer());
dirlist.Reverse();

for (int i = 5; i  dirlist.Count; i++)
{
string foldername = ((DirectoryInfo)dirlist[i]).Name;;
try
{
((DirectoryInfo)dirlist[i]).Delete(true);
project.Log(Level.Info, String.Format(Deleted folder {0}, 
foldername));

}
catch (Exception e) { project.Log(Level.Warning, 
String.Format(Unable to delete folder {0}, {1}, foldername, e.Message)); }
}
}

internal class DirectoryInfoDateComparer : System.Collections.IComparer
{
public int Compare(object x, object y)
{
DirectoryInfo di1 = (DirectoryInfo)x;
DirectoryInfo di2 = (DirectoryInfo)y;

return di1.CreationTime.CompareTo(di2.CreationTime);
}
}
  ]]/code
/script
  /target

Here is an example of how I would call it:

property name=hazel.dirToCleanvalue=${InstallDir} /
property name=hazel.searchPattern value=CD 
${version.major}_${version.minor}_${version.build}_${version.revision}_* /
call target=hazel /

BOb


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] NANT-LOG4NET ERROR:internet zone

2012-06-27 Thread Bob Archer
 Nant will not start after Windows update to Win 2008 server. Get log4net
 error. Tried putting name=requirePermission=false in nant and log4net
 section heads, no change. Any ideas? Thanks JCH

Are you running from the command line? Try to open the cmd window as 
administer and see if that solves it.




 
 Microsoft Windows [Version 6.1.7601]
 Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
 
 C:\Users\cm_backupnant
 log4net:ERROR XmlConfiguratorAttribute: Exception getting
 ConfigurationFileLocat ion. Must be able to resolve ConfigurationFileLocation
 when ConfigFile and Confi gFileExtension properties are not set.
 System.Security.SecurityException: Request for the permission of type
 'System.Se curity.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0,
 Culture=neutral,  PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand,
 StackCrawlMa rk stackMark, Boolean isPermSet)
at
 System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission
 cap, S
 tackCrawlMark stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.AppDomainSetup.VerifyDir(String dir, Boolean normalize)
at log4net.Util.SystemInfo.get_ConfigurationFileLocation()
at log4net.Config.XmlConfiguratorAttribute.ConfigureFromFile(Assembly
 sourceA
 ssembly, ILoggerRepository targetRepository) The action that failed was:
 Demand
 The type of the first permission that failed was:
 System.Security.Permissions.FileIOPermission
 The Zone of the assembly that failed was:
 Internet
 
 Unhandled Exception: System.Security.SecurityException: Request for
 Configuratio nPermission failed while attempting to access configuration
 section 'nant'.
 To a
 llow all callers to access the data for this section, set section attribute 
 'req
 uirePermission' equal 'false' in the configuration file where this section is 
 de
 clared. --- System.Security.SecurityException: Request for the permission of
 ty pe 'System.Configuration.ConfigurationPermission, System.Configuration,
 Version= 4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand,
 StackCrawlMa rk stackMark, Boolean isPermSet)
at
 System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission
 cap, S
 tackCrawlMark stackMark)
at System.Security.CodeAccessPermission.Demand()
at
 System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(St
 ring
  configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
--- End of inner exception stack trace ---
 --
 View this message in context: http://old.nabble.com/NANT-LOG4NET-
 ERROR%3Ainternet-zone-tp34082361p34082361.html
 Sent from the NAnt - Users mailing list archive at Nabble.com.
 
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Help copying a folder structure

2012-05-31 Thread Bob Archer
If you want to go FROM src TO dest, it looks like you have your code 
backwards... shouldn't it be:

copy todir=${destDir}
   fileset basedir=${srcDir}
  include name=** /
 /fileset
/copy

Also, you can (should be able to) simplify your include to ** which should 
match all files and folders.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, May 30, 2012 3:39 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Help copying a folder structure

This way...

copy todir=${srcDir}
   fileset basedir=${destDir}
  include name=**\* /
 /fileset
/copy


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, May 30, 2012 3:13 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Help copying a folder structure

I looked at this 
http://nant.sourceforge.net/nightly/latest/help/tasks/copy.html, and googled 
some.

I want to copy files from ${srcDir} to ${destDir} and preserve the directory 
struncture. I tried this, but the directory structure is NOT preserved in 
${destDir}. Any clues?

copy todir=${srcDir}
   fileset
  include name=${destDir}\**\* /
 /fileset
/copy

-chris

***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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 Bob Archer
But, is there something unique in the node that you want to update? I assume no 
since you are looping through them all?

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:48 AM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes

That's all I want to do, find a node and update it.

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, April 20, 2012 9:36 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes

For more than a simple find a node and update it I would recommend you write 
you own code using the script task. Or write your own task.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:02 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpeek and multiple nodes

How can I use xmlpeek/xmlpoke to recursively peruse all the similarly named 
nodes in a file, the the test node below.

tests
   test.../test
   test.../test
   test.../test
/tests

This didn't help, 
http://nant.sourceforge.net/release/0.85/help/tasks/xmlpeek.html

And I found this
http://old.nabble.com/xmlpeek---Multiple-nodes-found-with-the-XPath-expression-td20017190.html

Per that page, do I really have to do this, that is hard code the indices? So 
if I add a 16th node, I'll have to change the script to add a 16th index?
foreach item=String in=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 delim=, 
property=index
   xmlpeek file=${somefile} nodeindex=${index} /
/foreach

So I found this 
http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg11179.html
But my nant version 0.91 complains about xmllist being an unknown task or 
data type.

-chris

***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
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


Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Bob Archer
In other words, if you can't get to a specific node with an XPath expression 
you really need to roll your own. That's really what it is designed for.

You could do something like what you are doing, however, you probably still 
need your own script task to get the count of matching nodes. A quick google 
find this http://bgeek.net/2005/09/19/nant-xml-node-counting/

BOb

From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:48 AM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes

That's all I want to do, find a node and update it.

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, April 20, 2012 9:36 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes

For more than a simple find a node and update it I would recommend you write 
you own code using the script task. Or write your own task.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:02 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpeek and multiple nodes

How can I use xmlpeek/xmlpoke to recursively peruse all the similarly named 
nodes in a file, the the test node below.

tests
   test.../test
   test.../test
   test.../test
/tests

This didn't help, 
http://nant.sourceforge.net/release/0.85/help/tasks/xmlpeek.html

And I found this
http://old.nabble.com/xmlpeek---Multiple-nodes-found-with-the-XPath-expression-td20017190.html

Per that page, do I really have to do this, that is hard code the indices? So 
if I add a 16th node, I'll have to change the script to add a 16th index?
foreach item=String in=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 delim=, 
property=index
   xmlpeek file=${somefile} nodeindex=${index} /
/foreach

So I found this 
http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg11179.html
But my nant version 0.91 complains about xmllist being an unknown task or 
data type.

-chris

***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
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


Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Bob Archer
For more than a simple find a node and update it I would recommend you write 
you own code using the script task. Or write your own task.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:02 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpeek and multiple nodes

How can I use xmlpeek/xmlpoke to recursively peruse all the similarly named 
nodes in a file, the the test node below.

tests
   test.../test
   test.../test
   test.../test
/tests

This didn't help, 
http://nant.sourceforge.net/release/0.85/help/tasks/xmlpeek.html

And I found this
http://old.nabble.com/xmlpeek---Multiple-nodes-found-with-the-XPath-expression-td20017190.html

Per that page, do I really have to do this, that is hard code the indices? So 
if I add a 16th node, I'll have to change the script to add a 16th index?
foreach item=String in=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 delim=, 
property=index
   xmlpeek file=${somefile} nodeindex=${index} /
/foreach

So I found this 
http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg11179.html
But my nant version 0.91 complains about xmllist being an unknown task or 
data type.

-chris

***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
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


Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Bob Archer
Not really, no.

From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 10:03 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] xmlpeek and multiple nodes

So no canned support for this?

-chris

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, April 20, 2012 9:59 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes

In other words, if you can't get to a specific node with an XPath expression 
you really need to roll your own. That's really what it is designed for.

You could do something like what you are doing, however, you probably still 
need your own script task to get the count of matching nodes. A quick google 
find this http://bgeek.net/2005/09/19/nant-xml-node-counting/

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:48 AM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes

That's all I want to do, find a node and update it.

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, April 20, 2012 9:36 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes

For more than a simple find a node and update it I would recommend you write 
you own code using the script task. Or write your own task.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:02 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpeek and multiple nodes

How can I use xmlpeek/xmlpoke to recursively peruse all the similarly named 
nodes in a file, the the test node below.

tests
   test.../test
   test.../test
   test.../test
/tests

This didn't help, 
http://nant.sourceforge.net/release/0.85/help/tasks/xmlpeek.html

And I found this
http://old.nabble.com/xmlpeek---Multiple-nodes-found-with-the-XPath-expression-td20017190.html

Per that page, do I really have to do this, that is hard code the indices? So 
if I add a 16th node, I'll have to change the script to add a 16th index?
foreach item=String in=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 delim=, 
property=index
   xmlpeek file=${somefile} nodeindex=${index} /
/foreach

So I found this 
http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg11179.html
But my nant version 0.91 complains about xmllist being an unknown task or 
data type.

-chris

***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
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


Re: [NAnt-users] xmlpeek and multiple nodes

2012-04-20 Thread Bob Archer
I don’t think I said “don’t do that”… All I said was, out of the box xmlpoke 
and xmlpeek are really designed to work with an xpath that matches a single 
element in the XML. ;)

BOb


From: m...@thefrederickhome.name [mailto:m...@thefrederickhome.name]
Sent: Friday, April 20, 2012 11:44 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] xmlpeek and multiple nodes

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 original here: 
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


Re: [NAnt-users] The vendor attribute does not exist, or has no value.

2012-03-01 Thread Bob Archer
Do you really have net-4.0 in there twice?

BOb


From: Chad Petersen [mailto:chad.peter...@harlandfs.com]
Sent: Thursday, March 01, 2012 1:18 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] The vendor attribute does not exist, or has no value.

Our build machine is being converted to Nant 0.91 and .NET 4.0. When I try to 
run my builds they are giving this message. I've compared my nant.exe.config to 
a working system on the same version of Nant 0.91 and not seeing anything 
different. Any ideas what might be causing this error?


NAnt 0.91 (Build 0.91.4312.0; release; 10/22/2011)
Copyright (C) 2001-2011 Gerry Shaw
http://nant.sourceforge.net


INTERNAL ERROR

The vendor attribute does not exist, or has no value.

Stacktrace:

System.ArgumentException: The vendor attribute does not exist, or has no value
.
   at NAnt.Core.FrameworkInfo..ctor(XmlNode frameworkNode, XmlNamespaceManager n
sMgr)
   at NAnt.Core.ProjectSettingsLoader.ProcessFrameworks(XmlNode platformNode)
   at NAnt.Core.ProjectSettingsLoader.ProcessPlatform(XmlNode platformNode)
   at NAnt.Core.ProjectSettingsLoader.ProcessSettings()
   at NAnt.Core.Project.CtorHelper(XmlDocument doc, Level threshold, Int32 inden
tLevel, Optimizations optimization)
   at NAnt.Core.Project..ctor(String uriOrFilePath, Level threshold, Int32 
indentLevel)
   at NAnt.Core.ConsoleDriver.Main(String[] args)

Please send a bug report (including the version of NAnt you're using) to nant-de
velop...@lists.sourceforge.netmailto:velop...@lists.sourceforge.net




I do have this in my config file. Vendor=Microsoft
*snippet*
framework
name=net-4.0
family=net
version=4.0
description=Microsoft .NET Framework 4.0
sdkdirectory=${sdkInstallRoot}
frameworkdirectory=${path::combine(installRoot, 
'v4.0.30319')}
frameworkassemblydirectory=${path::combine(installRoot, 
'v4.0.30319')}
clrversion=4.0.30319
clrtype=Desktop
vendor=Microsoft
 framework
name=net-4.0
family=net
version=4.0
description=Microsoft .NET Framework 4.0
sdkdirectory=${sdkInstallRoot}
frameworkdirectory=${path::combine(installRoot, 
'v4.0.30319')}
frameworkassemblydirectory=${path::combine(installRoot, 
'v4.0.30319')}
clrversion=4.0.30319
clrtype=Desktop
vendor=Microsoft


--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

2012-02-29 Thread Bob Archer
I expect it is the return value sent from nant.exe and that you can't modify 
it. What are you trying to do?

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, February 29, 2012 11:40 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

What is the nant property that is set for CC.NET to report a pass/fail 
condition? I assume I can modify this property? Is it nant.onfailure? Thanks!

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

2012-02-29 Thread Bob Archer
Just call the fail task then. That will report a filed build.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, February 29, 2012 12:05 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Nant property passed to CC.NET for pass/fail 
condition?

I build TWO projects in one nant.build project file, say project1 and project2, 
that share a LOT of common files; hence, for NOW, I want to keep it this way.

I do this

Set properties project1_ok=false and project2_ok=false

Build project1 and project2 shared files
If project1 and project2 shared files fail
   Stop the build and report failure

Continue building project1-specific files
If project1-specific files build
   project1_ok=true

Continue building project2-specific files
If project2-specific files build
   Project2_ok=true

nant_pass_fail_property = project1_ok AND project2_ok

So if either project1_ok or project2_ok is false, I want ccnet to report a 
failure.

Make sense?

-chris




From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Wednesday, February 29, 2012 11:51 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: Nant property passed to CC.NET for pass/fail condition?

I expect it is the return value sent from nant.exe and that you can't modify 
it. What are you trying to do?

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, February 29, 2012 11:40 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Nant property passed to CC.NET for pass/fail condition?

What is the nant property that is set for CC.NET to report a pass/fail 
condition? I assume I can modify this property? Is it nant.onfailure? Thanks!

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] How to suppress exec errors?

2012-02-23 Thread Bob Archer
I think the best/only way you can do this is to create a batch file to do the 
disconnect and have it always return a success return code. I have a similar 
issues with a command line app that doesn't return 0 for success and there is 
no way to tell Nant what return code signifies success/failure.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Thursday, February 23, 2012 9:42 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] How to suppress exec errors?

One of the things I do in my script is to disconnect a network drive, 
regardless is it's connected or not, and of course if it's not already 
connected I get an error. I ignore the error via failonerror=false, but I want 
to go one step further and suppress the error generated.



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Various NAnt Updates

2012-02-23 Thread Bob Archer
Looks like some good changes.

Is the nunit stuff going to be version specific? Or, is it chaining out to 
whatever version of nunit you have or point to in your project? 

You might want to update the readme with the versions that are supported:
 
   Windows
   ---

   * A version of the Microsoft .NET Framework

   Available from http://msdn.microsoft.com/netframework/
 
   You will need the .NET Framework SDK as well as the runtime 
   components if you intend to compile programs.

   Note: NAnt currently supports versions 1.0, 1.1 and 2.0 
   of the Microsoft .NET Framework. 

   or

   * Mono for Windows (version 1.0 or higher)

   Available from http://www.mono-project.com/downloads/

BOb


 -Original Message-
 From: Ryan Boggs [mailto:rmbo...@gmail.com]
 Sent: Wednesday, February 22, 2012 11:31 PM
 To: nant-develop...@lists.sourceforge.net; nant-users@lists.sourceforge.net
 Subject: [NAnt-users] Various NAnt Updates
 
 Hi all,
 
 Just checking in with some progress that has been occurring in NAnt's
 development.  It's not a complete list but there are a few big ones that I 
 think
 are worth highlighting.
 
 * The VS project solution files for both NAnt and NAntContrib projects have
 been updated to VS2010 format.
 
 * .NET/Mono 1.* runtime support for NAnt has been dropped.  Target support
 for .NET/Mono 1.* still exists, however.
 
 * The style/ task has been updated to use xslCompiledTransform, which
 should address the issue described here on Stackoverflow:
 http://stackoverflow.com/questions/5032347/xslt-stylesheet-replaces-self-
 closing-tags-with-empty-paired-tags
 Thanks to Michael Tutty for the contribution via pull request for this item.
 
 * The mail/ task has been updated to use System.Net.Mail instead of
 System.Web.Mail.  During the process of updating this task, additional 
 features
 were added that we thought to be very helpful (such as specifying a reply to
 address, specifying the port number to send mail to, indicating whether or not
 to use an ssl connection, etc).
 
 * More work has gone into the msbuild/ with the help from Dominik Guder
 and Martin Aliger.  From what I understand, there are still a couple of
 outstanding issues with this item but the task is working better with recent
 versions of msbuild scripts.  This is still a high priority.
 
 * Quite a bit of work has been put into upgrading the nunit2/ task to
 reference the latest version of NUnit.  I'm happy to say that these changes 
 are
 currently in review to be imported into nant/master.  The version of NUnit
 being used for this upgrade is 2.6 final (which was released just a few days
 ago).  I'm hoping that this will go into master soon.  I want to say thanks to
 Charles Poole and the rest of the NUnit dev team for their help and insight to
 get the nunit2/ up to speed.  They were very helpful in this process.  
 Anyone
 interested in viewing these changes can see them here:
 https://github.com/nant/nant/tree/nunitupdates
 
 * The nightly process for both NAnt and NAntContrib projects have started up
 again.  This time, an automated process has been setup with extensive help
 from Dominik Guder to make sure that new nightly files are generated
 whenever changes occur on the master branches of either project.  The last
 nightly was built on 2/19/2012 and includes all the changes listed above 
 except
 for the nunit changes.  The nightly files can be found in the following 
 locations:
 NAnt Nightlys:
 https://sourceforge.net/projects/nant/files/nant/nightly/
 
 NAntContrib Nightlys:
 https://sourceforge.net/projects/nantcontrib/files/nantcontrib/nightly/
 
 We are still trying to nail down release dates and should be announcing them
 as soon as they are finalized.
 
 The next version number being targeted for NAnt/NAntContrib is currently
 0.92. It seems like the natural progression but we are curious if you have any
 reasons to use a different version number (ie:
 should we skip 0.92 and go to 0.95, etc).
 
 That's all I have for now.  I will try to send out these kinds of notices 
 more often
 as progress continues.
 
 Thanks,
 Ryan
 
 --
 Virtualization  Cloud Management Using Capacity Planning Cloud computing
 makes use of virtualization - but cloud computing also focuses on allowing
 computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

Re: [NAnt-users] non-readonly properties

2012-02-22 Thread Bob Archer
Properties set on the command line are always read-only.

If you want to not reset a property value if it was set from the command line 
you can use overwrite=false.

Also, when you pass false from the command line you don't need to quote it.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, February 22, 2012 1:04 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] non-readonly properties

I have the following properties defined in mynant.build file
!-- Use these Bools for enable either Project1 and/or Project2 
builds --
property name=enable_project1_build value=true 
readonly=false /
property name=enable_project2_build value=true 
readonly=false /

But when I run script where I override the defined properties, e.g.,
C:\ nant mynant.build -D:enable_project1_build=false

I get...
Read-only property enable_project1_build cannot be overwritten.

I do echo the values for testing, I get the correct value, so should I just 
ignore the noise?

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Help with resultproperty please

2012-02-21 Thread Bob Archer
property name=buildstatus value=true /
target name=buildmodule1
   exec commandline=buildmodule1.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule2
   exec commandline=buildmodule2.bat Failonerror=false 
resultproperty=module_ok /
/target

target name=buildmodule
   call target=buildmodule1/
  property name=buildstatus value=${module_ok == 0} if=${buildstatus} /
   call target=buildmodule2/
  property name=buildstatus value=${module_ok == 0} if=${buildstatus} /
/target

In effect you only update buildstatus if it is currently true. Once it is false 
it won't be updated any more.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Tuesday, February 21, 2012 9:59 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Help with resultproperty please

I'm aware of this feature

target name=buildmodule
   exec commandline=buildmodule.bat Failonerror=false 
resultproperty=module_ok /
/target

However, I want to do this...

target name=buildmodule1
   exec commandline=buildmodule1.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule2
   exec commandline=buildmodule2.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule
   call target=buildmodule1
   call target=buildmodule2
/target

That is, buildmodule needs a lot of buildmoduleN's (two in the example, but can 
be more). I do NOT want the build to stop if one of the buildmoduleN's fails 
(hence, failonerror=false) but I want module_ok to evaluate false if at least 
one of them fails. I know the way I have it, the buildmoduleN build will 
eclipse the buildmoduleN-1 build. So how can I set it up so if one buildmoduleN 
fails, the module_ok property persists?

Thanks!
-Chris









***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build process

2012-01-23 Thread Bob Archer
I have found the best solution was to use  msbuild to actually do the compile 
called from the exec task.

BOb


From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, January 23, 2012 11:23 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build 
process

We are starting to have .NET 4.0 Framework Projects that will need to be built. 
 We currently build by using the CSC tag and not using the project files.

So I will need to be able to build csc with either 4.0 or 3.5 depending on the 
dll.  we are using NAnt version 0.91

Thanks for any help.  I will post to the list what I finally get to work.



Scott Pennington
Senior Software Engineer
Prosper Marketplace, Inc.
111 Sutter Street, 22nd Floor
San Francisco CA 94104
www.prosper.comhttp://www.prosper.com/


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build process

2012-01-23 Thread Bob Archer
If you already have a solution and you can build with Visual Studio it is 
pretty easy. Just do something like:

msbuild project=${ProjectDir}/Product/${project::get-name()}.sln 
verbose=true
  property name=Configuration value=Release /
  arg line=/noconsolelogger /
  arg 
line=/logger:nant/ThoughtWorks.CruiseControl.MSBuild.dll;msbuild-results.xml 
/
/msbuild

Actually, I am using the msbuild task. Nant will use the correct version of 
msbuild based on the netframework setting you use. And, msbuild will support 
the targeting automatically. So, if you are targeting .Net 3.5 with a Visual 
Studio 2010 project then you will get the right binaries. When I have moved 
from Visual Studio 2008 projects to 2010 all I have had to do is change:

If you don't have a solution just create one with Visual Studio, add in all the 
projects with the correct dependency. It should be pretty easy.

This:

property name=nant.settings.currentframework value=net-3.5 /

To this:

property name=nant.settings.currentframework value=net-4.0 /

BOb


From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, January 23, 2012 1:11 PM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build 
process

Bob,

Thanks for the reply.  I am working with a system that has been in place for a 
while and many different DLLs are currently being built with CSC.  How 
different is building with MSBuild as opposed to CSC?

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Monday, January 23, 2012 8:53 AM
To: Scott Pennington; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build 
process

I have found the best solution was to use  msbuild to actually do the compile 
called from the exec task.

BOb


From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, January 23, 2012 11:23 AM
To: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net
Subject: [NAnt-users] using CSC for both 3.5 and 4.0 within the same build 
process

We are starting to have .NET 4.0 Framework Projects that will need to be built. 
 We currently build by using the CSC tag and not using the project files.

So I will need to be able to build csc with either 4.0 or 3.5 depending on the 
dll.  we are using NAnt version 0.91

Thanks for any help.  I will post to the list what I finally get to work.



Scott Pennington
Senior Software Engineer
Prosper Marketplace, Inc.
111 Sutter Street, 22nd Floor
San Francisco CA 94104
www.prosper.comhttp://www.prosper.com/







CONFIDENTIALITY STATEMENT: This email message, together with all attachments, 
is intended only for the individual or entity to which it is addressed and may 
contain legally privileged or confidential information. Any dissemination, 
distribution or copying of this communication by persons or entities other than 
the intended recipient, is strictly prohibited, and may be unlawful. If you 
have received this communication in error please contact the sender immediately 
and delete the transmitted material and all copies from your system, or if 
received in hard copy format, return the material to us via the United States 
Postal Service. Thank you.
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] How to setup two projects with a subset of common files?

2012-01-06 Thread Bob Archer
Don't you want a build of common to trigger a build of Project1 and Project2? 
If so, you can set up a ccnet trigger to do that. Use a project trigger on 
Project1  Project2. They will both trigger on a successful build of Common. 
Now, if you have Project1 and Project2 in the same queue that will keep them 
from building at the same time.

http://www.cruisecontrolnet.org/projects/ccnet/wiki/Project_Trigger

Simple and no need to change and build scripts.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Thursday, January 05, 2012 3:33 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] How to setup two projects with a subset of common 
files?

I'm implementing this idea. However, some questions.

Won't this build CommonSW twice, once when Project1 is built and next when 
Project2 is built, in the case where I build both projects? I really want to 
just build CommonSW once in this case.

Also if projects are in the same queue, does that imply a serial build or 
parallel build?

-chris

From: Philip Sayers [mailto:p...@cds-am.net]
Sent: Thursday, January 05, 2012 1:36 PM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] How to setup two projects with a subset of common 
files?

Easiest way to get you want would be..

Create two nant files.

File1: builds commonSW  Project1
File2: builds commonSW  Project2

Setup 2 ccnet projects, each one pointing at one of the nant files

Put both projects in the same queue


I posted this in the ccnet-users Google group, but I thought I'd post this too 
hoping I'm not alone in using ccnet+nant environment, and not the first one to 
try this.

I use CC.NET v1.6.7981.1 and Nant v0.91. I trigger the builds via CC.NET but 
do the bulk of the work in Nant - no surprise here.
I want to independently build, force or continuous, two projects that share a 
subset of common files between them. All files are built with VS2008 using the 
devenv command line in Nant. Here's my structure
Common SW - used by both below
Project1 SW - needs Common SW to build first
Project2 SW - needs Common SW to build first
I want to be able to do the following.
Show both Project1 and Project2 on the ccnet web dashboard, and be able to 
Force either project. However, if one project is already building, doesn't 
matter which one, and the other project is triggered, it should wait for the 
first running project to finish.
Any pointers please? Thanks!
-chris




***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] NAnt/NAntContrib has moved to github

2011-11-14 Thread Bob Archer
YEA! Congrats. Time to fork-n-hack. ;)

 -Original Message-
 From: Ryan Boggs [mailto:rmbo...@gmail.com]
 Sent: Monday, November 14, 2011 1:56 AM
 To: nant-develop...@lists.sourceforge.net; nant-
 us...@lists.sourceforge.net; nantcontrib-develo...@lists.sourceforge.net;
 nant-annou...@lists.sourceforge.net
 Subject: [NAnt-users] NAnt/NAntContrib has moved to github
 
 Hi,
 
 I'm happy to say that we were able to successfully migrate the
 sourceforge.net CVS NAnt/NAntContrib repos to github.com.  There are still
 some clean-up tasks left to do (ie: update the website links to point to
 github.com, update the development guide, etc) but the new repositories at
 GitHub are set and ready to go.  The links to the new repos are listed below.
 
 NAnt:
 https://github.com/nant/nant
 
 NAntContrib:
 https://github.com/nant/nantcontrib
 
 For those of you who love to code, fork either of the projects through
 GitHub and start coding/hacking away.  If you don't have a GitHub account,
 it's simple to signup.
 https://github.com/signup/free
 
 We'll continue to send out updates as soon as new developments come up.
 
 Thanks,
 Ryan
 
 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Windows Installer for NAnt

2011-11-14 Thread Bob Archer
I don't put nant into program files. I put it into the lib folder of each 
project I use. This way, I can upgrade the version of nant used by the project 
without worrying about what everyone has installed or if it will break other 
projects.

BOb


 -Original Message-
 From: Timotheus Pokorra [mailto:timotheus.poko...@gmail.com]
 Sent: Friday, November 11, 2011 7:36 AM
 To: nant-users@lists.sourceforge.net
 Subject: [NAnt-users] Windows Installer for NAnt
 
 Hello all,
 
 thanks for the very useful tool of NAnt! We are heavily using it for our
 OpenPetra project.
 
 But we have had now several problems with permissions for executing nant
 on Windows, from the Program Files directory. Also the creation of the
 nant.bat was not trivial, and could cause problems with permissions.
 
 The easy solution was to create a small InnoSetup Installer.
 You can download it from our files section at SourceForge:
 http://sourceforge.net/projects/openpetraorg/files/openpetraorg/Tools/N
 Ant-Setup-0.91.exe/download
 
 The script file for InnoSetup looks like this:
 
 [Setup]
 AppName=NAnt
 AppVerName=NAnt 0.91
 DefaultDirName={pf}\NAnt
 DefaultGroupName=NAnt
 LicenseFile=nant-0.91\COPYING.txt
 OutputBaseFilename=NAnt-Setup-0.91
 [Files]
 Source: nant-0.91\*.*; DestDir: {app}; Flags: recursesubdirs createallsubdirs
 [Code] procedure CurStepChanged(CurStep: TSetupStep); begin
   if CurStep=ssPostInstall then
   begin
 SaveStringToFile(ExpandConstant('{win}/nant.bat'),
 ExpandConstant('@{app}\bin\NAnt.exe %*'), False);
   end;
 end;
 
 If you have trouble with your old NAnt installation, you should delete the
 folder first from the Program Files, before you run the installer!
 
 see also http://tpokorra.blogspot.com/2011/11/windows-installer-for-
 nant.html
 
 Thanks again,
   Timotheus
 
 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Testing NAnt on Windows 8

2011-10-26 Thread Bob Archer
I have no problem unblocking the zip. If you do provide an installer then 
please continue the binary/zip distribution as well.

You might consider creating a nu-get package with the ability to run the build 
from the nu-get console. 

Also, are you moving the source control to git and github... or did you decide 
to stick with CVS?

BOb


 -Original Message-
 From: Ryan Boggs [mailto:rmbo...@gmail.com]
 Sent: Tuesday, October 25, 2011 7:30 PM
 To: Markus Ewald
 Cc: NAnt-users mailing list
 Subject: Re: [NAnt-users] Testing NAnt on Windows 8
 
 Hi,
 
 On Tue, Oct 25, 2011 at 4:18 PM, Markus Ewald cy...@nuclex.org wrote:
  Hi!
 
  I'm just playing with the Windows 8 Developer Preview and of course, I
  installed NAnt, too.
 
  I downloaded NAnt as .zip archive (which means it gets the mark of
  the web), moved it to my Program Files directory and tried to launch
  it. Result was the probably by now well-known security exception:
 
  Unhandled Exception: System.Security.SecurityException: Request for
  ConfigurationPermission failed while attempting to access
  configuration section 'nant'. To allow all callers to access the data
  for this section, set section attribute 'requirePermission' equal
  'false' in the configuration file where this section is declared. ---
 System.Security.SecurityException:
  Request for the permission of type
  'System.Configuration.ConfigurationPermission, System.Configuration,
  Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 failed.
 
  Checking the properties of NAnt.exe, I clicked 'Unblock'. Error still
  occurred. Opened properties again - the 'Unblock' button was still
  there. It appears I cannot unblock and I'm not being given an error
 message.
 
  Well, long story short, I had to extract NAnt to a network share
  (hosted on a Linux system - try putting hidden stream on that,
  Windows!) and back to get rid of the mark of the web.
 
  Works splendid now!
 This bit of information is most welcome.  Thank you for taking the time to try
 NAnt out on Win8 Preview.
 
 Makes me wonder the best method of distributing NAnt in the future.
 The way Windows is treating downloaded zip files lately has been much of a
 pain.  Should we look into installers for NAnt/NAntContrib? Now is the time
 to think about these things.
 
 Thanks,
 Ryan
 
  -Markus-
 
  --
   The demand for IT networking professionals continues to grow,
  and the demand for specialized networking skills is growing even more
  rapidly.
  Take a complimentary Learning@Cisco Self-Assessment and learn about
  Cisco certifications, training, and career opportunities.
  http://p.sf.net/sfu/cisco-dev2dev
  ___
  NAnt-users mailing list
  NAnt-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nant-users
 
 
 
 --
 The demand for IT networking professionals continues to grow, and the
 demand for specialized networking skills is growing even more rapidly.
 Take a complimentary Learning@Cisco Self-Assessment and learn about
 Cisco certifications, training, and career opportunities.
 http://p.sf.net/sfu/cisco-dev2dev
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Versions in Properties are compared as strings

2011-10-25 Thread Bob Archer
The property task documentation shows that the value element is a string. So, 
I am guessing anything you put into a property is done with a ToString();

You can run this to prove that out:

?xml version=1.0 ?
project name=TestParse

property name=Item1 value=${int::parse('5')} /
property name=Item2 value=${int::parse('5')} /
echo message=Add ints: ${int::parse('5') + int::parse('5')}/
echo message=Add props: ${Item1 + Item2}/
/project

The results are:

 [echo] Add ints: 10
 [echo] Add props: 55

BOb


From: Bosch, Andreas [mailto:andreas.bo...@swissray.com]
Sent: Wednesday, October 12, 2011 9:15 AM
To: 'nant-users@lists.sourceforge.net'
Subject: [NAnt-users] Versions in Properties are compared as strings

Hi everyone,

I just figured out why my build script produced a messed up installer: My 
version checks were made as string comparisons rather than real version 
comparisons (without me knowing this). The funny thing is that this worked 
perfectly, but since we changed the version from 0.9.9.0 to 0.9.10.0 it 
suddenly stopped working. New DLLs were not copied although their version had 
been increased. In the end I found out that versions are obviously converted to 
strings (or considered as such) if they are saved in a property and therefore, 
0.9.9.0 is greater than 0.9.10.0.

The following snippet explains my assumption (source file's version is 
0.9.10.0, and target file's version is 0.9.9.0):

property
name=source.file.version

value=${fileversioninfo::get-file-version(fileversioninfo::get-version-info(source.file.absolute))}/
property
name=target.file.version

value=${fileversioninfo::get-file-version(fileversioninfo::get-version-info(target.file.absolute))}/

echo message=Source file version: ${source.file.version}/ !-- 0.9.10.0 --
echo message=Target file version: ${target.file.version}/ !-- 0.9.9.0 --

!-- Property comparison --
if test=${source.file.version  target.file.version}
echo message=Property comparison successful!/
/if

!-- Direct comparison --
if 
test=${fileversioninfo::get-file-version(fileversioninfo::get-version-info(source.file.absolute))
  
fileversioninfo::get-file-version(fileversioninfo::get-version-info(target.file.absolute))}
echo message=Direct comparison successful!/
/if

!-- Parsed comparison --
if test=${version::parse(source.file.version)  
version::parse(target.file.version)}
echo message=Parsed comparison successful!/
/if

The result is that the first check (Property comparison) is not successful, 
while the other two (Direct and Parsed) are successful. Since all checks 
compare the same versions, they should all yield the same results. However, the 
first seems to compare the versions as strings which explains why it worked 
until 0.9.9.0, but does not work with 0.9.10.0.

My question is: Is this the expected behavior? Is it by design? Can someone 
explain this to me? In my eyes, there is no conversion from Version to string 
in my code. I found it very irritating and hard to locate.

Thanks in advance,
Andreas
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Find and Replace String.

2011-09-30 Thread Bob Archer
Is the file in question something that you control, or it a template file or 
something?

If so, you can use a filterchain during a copy or move to replace tokens with 
some value.

BOb


From: Sastry, Dilip IN PUN SISL [mailto:dilip.sas...@siemens.com]
Sent: Friday, September 30, 2011 6:51 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Find and Replace String.

Hi,

Can you send me Nant Script for the following task.

Open the bat file.
Read the file
Collect the File contents to an array
Match a particular string

Open the same File again
And Replace the above captured string with a new string.


Thnx,
Dilip Sastry.
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] unsubscribe this guy..

2011-09-30 Thread Bob Archer
List mods...

Can you please unsubscribe this guy:

irfan.duhe...@de.gbs.commailto:irfan.duhe...@de.gbs.com

His out of office auto reply's are quite annoying.

BOb

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] rename a folder

2011-09-28 Thread Bob Archer
Yes, I did see this option, but it seemed like a lot of work to rename a 
folder. That’s why I asked. I was too lazy to look at the move code to see why 
it wouldn’t rename a folder, since Ant (I know it’s N(ot)Ant) did.

BOb


From: Khairuddin Abdullah [mailto:khairuddina...@yahoo.com]
Sent: Tuesday, September 27, 2011 6:51 PM
To: Bob Archer
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] rename a folder

Bob:

Try the following on one or two folders as a test (make sure you create a back 
up, just in case). If you do not wish to purge old empty folders (with 
Company.* in name), you need to comment out the last delete line.  Good luck!

  foreach item=Folder property=folderpath
in
 items
  include 
name=C:\Builds\TestRename\8.0.0.4\Company.* /
/items
 /in
do
 echo message=${folderpath} /
echo message=${string::replace(folderpath, 
'Company.', '')}/
move todir=${string::replace(folderpath, 
'Company.', '')}
 fileset basedir=${folderpath}
 include name=*.* /
 /fileset
/move
  !-- commented out the following delete line 
if you do not want to purge old empty folders --
  delete dir=${folderpath} /
/do
 /foreach

--- On Tue, 9/27/11, Bob Archer 
bob.arc...@amsi.commailto:bob.arc...@amsi.com wrote:

From: Bob Archer bob.arc...@amsi.commailto:bob.arc...@amsi.com
Subject: [NAnt-users] rename a folder
To: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net 
nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net
Date: Tuesday, September 27, 2011, 5:49 PM

Seriously, this should be easy but it is not.



I want to rename folders.. but the move doesn’t seem to want to. Can move 
rename a folder. Any examples?



I am doing something like this:



?xml version=1.0 ?

project name=TestRename default=info



foreach item=Folder property=folderpath

in

items 
basedir=C:\Builds\TestRename\8.0.0.4

include 
name=Company.* /

/items

/in

do

echo message=${folderpath} /

echo 
message=${string::replace(folderpath, 'Company.', '')}/

move file=${folderpath} 
todir=${string::replace(folderpath, 'Company.', '')} verbose=true /

/do

/foreach



/project



I’ve tried todir and tofile.  If I remark out the move the correct paths are 
displayed as messages.



BOb



-Inline Attachment Follows-
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1

-Inline Attachment Follows-
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.nethttp://us.mc1613.mail.yahoo.com/mc/compose?to=NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] rename a folder

2011-09-28 Thread Bob Archer
Yes, supposedly in ant if you do:

move file=”c:/path/to/folder” tofile=”c:/path/to/newfolder” /

It will rename the folder.

Since Ant 1.6.3, the file attribute may be used to move (rename) an entire 
directory. If tofile denotes an existing file, or there is a directory by the 
same name in todir, the action will fail.

I’m not clear if you are supposed to use tofile or todir… since I don’t have 
ant set up to try it.

BOb


From: Ryan Boggs [mailto:rmbo...@gmail.com]
Sent: Wednesday, September 28, 2011 12:44 PM
To: Bob Archer
Cc: Khairuddin Abdullah; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] rename a folder

Ant does this, you say? Hmmm...

Thanks,
Ryan

On Sep 28, 2011, at 7:02 AM, Bob Archer 
bob.arc...@amsi.commailto:bob.arc...@amsi.com wrote:
Yes, I did see this option, but it seemed like a lot of work to rename a 
folder. That’s why I asked. I was too lazy to look at the move code to see why 
it wouldn’t rename a folder, since Ant (I know it’s N(ot)Ant) did.

BOb


From: Khairuddin Abdullah [mailto:khairuddina...@yahoo.com]
Sent: Tuesday, September 27, 2011 6:51 PM
To: Bob Archer
Cc: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] rename a folder

Bob:

Try the following on one or two folders as a test (make sure you create a back 
up, just in case). If you do not wish to purge old empty folders (with 
Company.* in name), you need to comment out the last delete line.  Good luck!

  foreach item=Folder property=folderpath
in
 items
  include 
name=C:\Builds\TestRename\8.0.0.4\Company.* /
/items
 /in
do
 echo message=${folderpath} /
echo message=${string::replace(folderpath, 
'Company.', '')}/
move todir=${string::replace(folderpath, 
'Company.', '')}
 fileset basedir=${folderpath}
 include name=*.* /
 /fileset
/move
  !-- commented out the following delete line 
if you do not want to purge old empty folders --
  delete dir=${folderpath} /
/do
 /foreach

--- On Tue, 9/27/11, Bob Archer 
bob.arc...@amsi.commailto:bob.arc...@amsi.com wrote:

From: Bob Archer bob.arc...@amsi.commailto:bob.arc...@amsi.com
Subject: [NAnt-users] rename a folder
To: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net 
nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net
Date: Tuesday, September 27, 2011, 5:49 PM

Seriously, this should be easy but it is not.



I want to rename folders.. but the move doesn’t seem to want to. Can move 
rename a folder. Any examples?



I am doing something like this:



?xml version=1.0 ?

project name=TestRename default=info



foreach item=Folder property=folderpath

in

items 
basedir=C:\Builds\TestRename\8.0.0.4

include 
name=Company.* /

/items

/in

do

echo message=${folderpath} /

echo 
message=${string::replace(folderpath, 'Company.', '')}/

move file=${folderpath} 
todir=${string::replace(folderpath, 'Company.', '')} verbose=true /

/do

/foreach



/project



I’ve tried todir and tofile.  If I remark out the move the correct paths are 
displayed as messages.



BOb



-Inline Attachment Follows-
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1

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


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more

[NAnt-users] rename a folder

2011-09-27 Thread Bob Archer
Seriously, this should be easy but it is not.

I want to rename folders.. but the move doesn't seem to want to. Can move 
rename a folder. Any examples?

I am doing something like this:

?xml version=1.0 ?
project name=TestRename default=info

foreach item=Folder property=folderpath
in
items 
basedir=C:\Builds\TestRename\8.0.0.4
include 
name=Company.* /
/items
/in
do
echo message=${folderpath} /
echo 
message=${string::replace(folderpath, 'Company.', '')}/
move file=${folderpath} 
todir=${string::replace(folderpath, 'Company.', '')} verbose=true /
/do
/foreach

/project

I've tried todir and tofile.  If I remark out the move the correct paths are 
displayed as messages.

BOb

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] nant 0.91 alpha2 with VS 2010

2011-09-23 Thread Bob Archer
I have been using MSBuild for quite a while. Does the solution task have 
advantages over it?

BOb


 -Original Message-
 From: Dominik Guder [mailto:o...@guder.org]
 Sent: Friday, September 23, 2011 4:35 PM
 To: nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] nant 0.91 alpha2 with VS 2010
 
 Hi Neil,
 
 give us some other day. We are on the way doing next nant release.
 
 So far
 Dominik
 
 Am 23.09.2011 21:05, schrieb Liu, Neil:
  Hi there,
 
  Is there a way to build a Visual Studio 2010 solution with
  'nant-0.91-alpha2'? I got Solution format of file 'xxx.sln' is not
  supported error when trying to do that.
 
  Thanks for any input...
 
  Neil
 
 
 
 
 --
 The answer to the great question of life, the universe and everything is 42
 (Douglas Adams)
 
 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2dcopy2
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] xmlpoke vs token replace for Config Files

2011-08-29 Thread Bob Archer
You might want to take a look at slow cheetah.

http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspx

BOb


From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, August 29, 2011 2:50 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpoke vs token replace for Config Files

This is a long post.  The simple question is what methods have you chosen to 
maintain config files when deployed to multiple environments?


I am in the process of reworking a set of build, package, install NAnt scripts 
that mainly use Token Replace and I am trying to decide if it is better to 
switch to a method I have used before of XMLPoke.

The current method is to take the existing config file and replace the 
AppSettings with a version of the AppSettings that have all of the values 
replaced as tokens with the token name being the same name as the key.  When 
the script comes to the part where it needs to set the values for the 
environment it will pass the each config file to a single target.  In the 
target it has all of the replacestokens for each file seperated by an if in the

replacetokens if=${output.config.name == 'MailerService.exe.config'}

and then it sets the tokens for that specific config file.  Once it has gone 
through all the ones it know s about it has a section that it tries to catch 
the ones that might be there.

I see some good things and bad things with this method.

Bad
1)  I don't really like the Target being the all in one place for each config 
file (this could be fixed with refactoring)
2) Lots of repeated values (this could be fixed with refactoring)
3) If new appsettings are added the token will need to be added.

Good
1)  Each config could have unique values
2)  When a appsetting is missed the build will fail allowing new appsettings to 
not be forgotten
3) it is already built
4) The name of the token is always the name of the appsetting


A method I came up with to handle config files would work here but I am not 
sure it is worth the effort in the long run.  I will share the basic method 
below.

There are 4 files.
1) Run.build is where you will be determining what values need to be set in the 
config file and what config file to work with
2) config.helper.build is where the actual replacement happens.
3) config.xpath.build is where the actual xpaths of where the specific item is 
located in the config file
4) env.properties.build is where the specific values are set for each value.  
This is the file you would be changing for each environment.  change all you 
need in one file.

The over view of the process is that you create a file that holds all the xpath 
to each of the settings.  if the values need to be different in different 
config files for the same key and xpath you will need to create a unique 
property/target combo name that is unique.  Each item that you want to set in a 
config file has a property and a target of the same name.  This way you can 
easily find the property and xpath match.  For each time you want to set the 
property in your config file you simply need to set the config file you want to 
change and call the target of the item you want to replace.  This is really 
clean and easy to read.


Bad
1) need to track down all the valid XPaths
2) need seperate property / target when the same xpath and different values are 
needed
3) could miss values set for keys that are not specifically called out leaving 
dev or other values in the deployed version.

Good
1) easy to see what all the values are
2) know specifically what is being replaced for each config file
3) one file for each environment
4) no need to create and replace tokens
5) can replace any attribute in the config file as long as you can create an 
XPath to it.
6) more likely to reuse properties for configs



Run.build
project name=SupportConfig default=config.update
  property name=property.values.file value=env.properties.build /
  include buildfile=${property.values.file} /
  include buildfile=config.xpath.build /
  include buildfile=config.helper.build /

  target name=support.config.update
property name=this.config.file 
value=${Depot_Path}\projects\Support\web.config /
call target=PUBLIC_SITE_URL /
call target=PUBLIC_SITE_SECURE_URL /
   /target
/project

config.helper.build
project name=config.helper
  property name=this.config.file value= /
  property name=this.xpath value= /
  property name=this.value value= /
  target name=config.poke
if test=${file::exists(this.config.file)}
  xmlpoke file=${this.config.file} value=${this.value} 
xpath=${this.xpath} /
  echo message=Poked ${this.config.file}.  Changed value @ ${this.xpath} 
to ${this.value} /
/if

if test=${not file::exists(this.config.file)}
  echo message=The version file ${this.config.file} doesn't exist! /
/if
   /target
/project

config.xpath.build
project name=config.xpath
  target name=PUBLIC_SITE_URL
property 

Re: [NAnt-users] xmlpoke vs token replace for Config Files

2011-08-29 Thread Bob Archer
Works for both... actually, it is taking the stuff build into the web 
application publish process and making it more generic. A quote from the blog 
entry:

This kind of config file transformation is so useful in fact, that it's one of 
the #1 feature requests...as a generalized solution. Folks want to transform 
their app.configs, or any XML file as part of their builds. Additionally, the 
current system only runs the transforms as a part of the publish process and 
folks would rather the transform happen on F5 or on build.

BOb


From: Wilson, Brian [mailto:brian.wil...@dhr.alabama.gov]
Sent: Monday, August 29, 2011 3:54 PM
To: Bob Archer; Scott Pennington; nant-users@lists.sourceforge.net
Subject: RE: xmlpoke vs token replace for Config Files

I do believe that only works for Windows applications, not web applications, 
but I could be wrong.


Brian Wilson
Programmer Analyst, Associate
Department of Human Resources
Email: brian.wil...@dhr.alabama.govmailto:brian.wil...@dhr.alabama.gov


From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Monday, August 29, 2011 2:52 PM
To: Scott Pennington; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] xmlpoke vs token replace for Config Files

You might want to take a look at slow cheetah.

http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspx

BOb


From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, August 29, 2011 2:50 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpoke vs token replace for Config Files

This is a long post.  The simple question is what methods have you chosen to 
maintain config files when deployed to multiple environments?


I am in the process of reworking a set of build, package, install NAnt scripts 
that mainly use Token Replace and I am trying to decide if it is better to 
switch to a method I have used before of XMLPoke.

The current method is to take the existing config file and replace the 
AppSettings with a version of the AppSettings that have all of the values 
replaced as tokens with the token name being the same name as the key.  When 
the script comes to the part where it needs to set the values for the 
environment it will pass the each config file to a single target.  In the 
target it has all of the replacestokens for each file seperated by an if in the

replacetokens if=${output.config.name == 'MailerService.exe.config'}

and then it sets the tokens for that specific config file.  Once it has gone 
through all the ones it know s about it has a section that it tries to catch 
the ones that might be there.

I see some good things and bad things with this method.

Bad
1)  I don't really like the Target being the all in one place for each config 
file (this could be fixed with refactoring)
2) Lots of repeated values (this could be fixed with refactoring)
3) If new appsettings are added the token will need to be added.

Good
1)  Each config could have unique values
2)  When a appsetting is missed the build will fail allowing new appsettings to 
not be forgotten
3) it is already built
4) The name of the token is always the name of the appsetting


A method I came up with to handle config files would work here but I am not 
sure it is worth the effort in the long run.  I will share the basic method 
below.

There are 4 files.
1) Run.build is where you will be determining what values need to be set in the 
config file and what config file to work with
2) config.helper.build is where the actual replacement happens.
3) config.xpath.build is where the actual xpaths of where the specific item is 
located in the config file
4) env.properties.build is where the specific values are set for each value.  
This is the file you would be changing for each environment.  change all you 
need in one file.

The over view of the process is that you create a file that holds all the xpath 
to each of the settings.  if the values need to be different in different 
config files for the same key and xpath you will need to create a unique 
property/target combo name that is unique.  Each item that you want to set in a 
config file has a property and a target of the same name.  This way you can 
easily find the property and xpath match.  For each time you want to set the 
property in your config file you simply need to set the config file you want to 
change and call the target of the item you want to replace.  This is really 
clean and easy to read.


Bad
1) need to track down all the valid XPaths
2) need seperate property / target when the same xpath and different values are 
needed
3) could miss values set for keys that are not specifically called out leaving 
dev or other values in the deployed version.

Good
1) easy to see what all the values are
2) know specifically what is being replaced for each config file
3) one file for each environment
4) no need to create and replace tokens
5) can replace any attribute in the config file as long as you

Re: [NAnt-users] xmlpoke vs token replace for Config Files

2011-08-29 Thread Bob Archer
The whole point of it is that it is not XSLT. It is a much simpler method of 
add/edit/changing items and an XML config file. If you build a new Web 
Application in VS 2010 targeting .Net 4.0 and look at the 
web.config.debug/release files you see it is pretty simple to set up.

Of course, as someone else mentioned just keeping a template copy for each 
environment and using the correct one when doing your copy works will too.. it 
just means you have to edit each template when things change. But, it is pretty 
simple method and understandable.

From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, August 29, 2011 4:12 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] xmlpoke vs token replace for Config Files

Bob,

I have used XSLT extensively in the past.  I am the only one here that has 
though.  I was hoping to keep it all within the NAnt paradigm.  I agree, this 
methodology has a lot of power.  I don't thing I need to add this much 
complexity to the build system for this application.

Thanks Scott

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Monday, August 29, 2011 12:52 PM
To: Scott Pennington; nant-users@lists.sourceforge.net
Subject: RE: xmlpoke vs token replace for Config Files

You might want to take a look at slow cheetah.

http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspx

BOb


From: Scott Pennington [mailto:spenning...@prosper.com]
Sent: Monday, August 29, 2011 2:50 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpoke vs token replace for Config Files

This is a long post.  The simple question is what methods have you chosen to 
maintain config files when deployed to multiple environments?


I am in the process of reworking a set of build, package, install NAnt scripts 
that mainly use Token Replace and I am trying to decide if it is better to 
switch to a method I have used before of XMLPoke.

The current method is to take the existing config file and replace the 
AppSettings with a version of the AppSettings that have all of the values 
replaced as tokens with the token name being the same name as the key.  When 
the script comes to the part where it needs to set the values for the 
environment it will pass the each config file to a single target.  In the 
target it has all of the replacestokens for each file seperated by an if in the

replacetokens if=${output.config.name == 'MailerService.exe.config'}

and then it sets the tokens for that specific config file.  Once it has gone 
through all the ones it know s about it has a section that it tries to catch 
the ones that might be there.

I see some good things and bad things with this method.

Bad
1)  I don't really like the Target being the all in one place for each config 
file (this could be fixed with refactoring)
2) Lots of repeated values (this could be fixed with refactoring)
3) If new appsettings are added the token will need to be added.

Good
1)  Each config could have unique values
2)  When a appsetting is missed the build will fail allowing new appsettings to 
not be forgotten
3) it is already built
4) The name of the token is always the name of the appsetting


A method I came up with to handle config files would work here but I am not 
sure it is worth the effort in the long run.  I will share the basic method 
below.

There are 4 files.
1) Run.build is where you will be determining what values need to be set in the 
config file and what config file to work with
2) config.helper.build is where the actual replacement happens.
3) config.xpath.build is where the actual xpaths of where the specific item is 
located in the config file
4) env.properties.build is where the specific values are set for each value.  
This is the file you would be changing for each environment.  change all you 
need in one file.

The over view of the process is that you create a file that holds all the xpath 
to each of the settings.  if the values need to be different in different 
config files for the same key and xpath you will need to create a unique 
property/target combo name that is unique.  Each item that you want to set in a 
config file has a property and a target of the same name.  This way you can 
easily find the property and xpath match.  For each time you want to set the 
property in your config file you simply need to set the config file you want to 
change and call the target of the item you want to replace.  This is really 
clean and easy to read.


Bad
1) need to track down all the valid XPaths
2) need seperate property / target when the same xpath and different values are 
needed
3) could miss values set for keys that are not specifically called out leaving 
dev or other values in the deployed version.

Good
1) easy to see what all the values are
2) know specifically what is being replaced for each config file
3) one file for each environment
4) no need to create and replace tokens
5) can replace any attribute

Re: [NAnt-users] Restarting a script conditionally

2011-08-09 Thread Bob Archer
Two hours. Wow...

No, but you can check by using UPTODATE to see if any source is newer than the 
binaires or outputs or whatever and skip stuff as needed.

I do with our sql packaging stuff. We use a tool called DbGhost packager that 
is an EXE you can ship to update a database. However, the packager takes a bit 
of time to build. So, I use UPTODATE to see if the packager exe has an older 
date than and of the SQL script files. If it's not UPTODATE the packager 
builds, but if it is up to date I just skip that step.

BOb


From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com]
Sent: Tuesday, August 09, 2011 11:37 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Restarting a script conditionally


I'm still a bit green with Nant scripting.  I have a build script that has one 
main target, and a ton of calls to other targets.  During the build process, 
I'm building a client GUI, Mid Tier piece and a web service piece.  At the 
start of the build process, there are calls to targets that pull  tickets and 
change sets from TFS that are ready for a daily build process then writes them 
to a file to be included in a final report at the end of the build.  There are 
a few other things that take place but my main concern is that if my build 
breaks anywhere thereafter it adds additional time to the build.  Right now the 
whole build process takes roughly 2  hours to complete and builds both .NET and 
VB6 code.  I'd like to be able to be able to set something in the script  as a 
conditional and only rebuild or rerun a portion of the build process.

Has anyone done anything such as this?

Thank you for your time and I look forward to hearing your replies.

Jim
--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] sending SMS messages with NANT

2011-06-09 Thread Bob Archer
Probably be easier to use the email and send it that way. Every wireless 
provider provides an email to SMS gateway.

From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com]
Sent: Thursday, June 09, 2011 4:48 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] sending SMS messages with NANT


Has anyone come across an SMS task for Nant?  I'd like to be able to send text 
messages to my phone if an error occurs in my build script.

Thanks
--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Can NAnt be used to get files from source control?

2011-05-27 Thread Bob Archer
I'm sure you'll find something to do. I know the other team who's build I 
automated which used to take 1 person a day and they did it once a week has 
found stuff to keep herself busy. Also, QA doesn't have to wait a week for new 
builds to test.

From: Jed Padilla [mailto:jpadi...@flclerks.com]
Sent: Friday, May 27, 2011 2:57 PM
To: 'Thierry Lach'
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Can NAnt be used to get files from source control?

I actually found out TFS has a command line counterpart (tf.exe).  I am now 
using the exec command to do a full get before I do my build.  My only question 
now is what I will do with all my free time in the mornings when I am not 
getting/cleaning/building? :)

From: Thierry Lach [mailto:thierry.l...@gmail.com]
Sent: Friday, May 27, 2011 2:51 PM
To: Jed Padilla
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Can NAnt be used to get files from source control?

I've not used any of them, but there are visual sourcesafe tasks in NAntContrib 
(http://nantcontrib.sourceforge.net/release/latest/help/tasks/).  Not sure if 
they work with TFS if that's what you're using...

On Fri, May 27, 2011 at 1:44 PM, Jed Padilla 
jpadi...@flclerks.commailto:jpadi...@flclerks.com wrote:
I have my other NAnt script working perfectly now and want to try to add one 
last thing to it.  Is it possible to use NAnt to perform a 'get latest' from 
source control (VS 2010 in this case?)

Thanks again for all the help getting to this point.

Jedadiah Padilla


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.netmailto:NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



--
---
Give a person a fish and you feed them for a day; teach that person to use the 
Internet and they won't bother you for weeks.
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Solution format of file is not supported.

2011-05-26 Thread Bob Archer
Did you try it without passing any properties? Frankly I use the exec task to 
run MSBuild.

Can you build with MSbuild from your command line? Be sure that works so you 
can rule this out as an issue.

BOb


From: Jed Padilla [mailto:jpadi...@flclerks.com]
Sent: Thursday, May 26, 2011 4:01 PM
To: 'Chris Fouts'; 'Brass Tilde'
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Solution format of file is not supported.

Somehow I managed to download NAnt .85 and not NAntContrib (I wondered why it 
looked exactly like the other binary I had, size and all).  Now I am getting a 
better error message (I think)

build.FACCBase:

  [msbuild] Build started 5/26/2011 3:57:55 PM.
  [msbuild] Project C:\TESTTFS\FACCBase\FACCBase.sln on node 0 (default target
s).
  [msbuild] C:\TESTTFS\FACCBase\FACCBase.sln.cache(136,5): error MSB4126: The sp
ecified solution configuration debug|BNB is invalid. Please specify a valid so
lution configuration using the Configuration and Platform properties (e.g. MSBui
ld.exe Solution.sln /p:Configuration=Debug /p:Platform=Any CPU) or leave those
properties blank to use the default solution configuration.
  [msbuild] Done Building Project C:\TESTTFS\FACCBase\FACCBase.sln (default ta
rgets) -- FAILED.
  [msbuild]
  [msbuild] Build FAILED.
  [msbuild]
  [msbuild] C:\TESTTFS\FACCBase\FACCBase.sln (default target) (1) -
  [msbuild] (ValidateSolutionConfiguration target) -
  [msbuild]   C:\TESTTFS\FACCBase\FACCBase.sln.cache(136,5): error MSB4126: The
specified solution configuration debug|BNB is invalid. Please specify a valid
solution configuration using the Configuration and Platform properties (e.g. MSB
uild.exe Solution.sln /p:Configuration=Debug /p:Platform=Any CPU) or leave tho
se properties blank to use the default solution configuration.
  [msbuild]
  [msbuild] 0 Warning(s)
  [msbuild] 1 Error(s)
  [msbuild]
  [msbuild] Time Elapsed 00:00:00.01

BUILD FAILED

C:\TESTTFS\FACCBase\FACCBase.build(21,5):
Failed to start MSBuild.
C:\TESTTFS\FACCBase\FACCBase.build(21,5):
External Program Failed: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe
(return code was 1)

From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Thursday, May 26, 2011 3:52 PM
To: Jed Padilla; 'Brass Tilde'
Cc: nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Solution format of file is not supported.

The installation instruction for nantcontrib say to copy the nantcontrib\bin 
files in the nant\bin folder. Did you do that?

-chris

From: Jed Padilla [mailto:jpadi...@flclerks.com]
Sent: Thursday, May 26, 2011 3:49 PM
To: 'Brass Tilde'
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Solution format of file is not supported.

I guess I am missing something simple.  I went out and downloaded nantcontrib 
0.85.  I tried adding the following to my build.FACCBase target

msbuild project=FACCBase.sln
property 
name=Configuration value=debug/
/msbuild

And now I am getting the error Invalid element msbuild. Unknown task or 
datatype.

I put NAntContrib in a different spot that I put NAnt 0.9, and changed my 
nant.bat file to reflect the new location.  What did I not do correctly?  I 
think once I overcome this initial hurdle I will be good to go.

From: Brass Tilde [mailto:brassti...@gmail.com]
Sent: Thursday, May 26, 2011 3:32 PM
To: Jed Padilla
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Solution format of file is not supported.

We've found that it's easiest to just use the MSBuild task, rather than the 
solution task, which calls out to MSBuild itself.
On Thu, May 26, 2011 at 2:22 PM, Jed Padilla 
jpadi...@flclerks.commailto:jpadi...@flclerks.com wrote:
I recently had a friend recommend NAnt to me.  The project I am working on has 
10 different solutions to it, and each solution usually has multiple projects 
within that will output dll files for the final solution to use.  I have a very 
simple .build file right now:

project name=Solution Build Example default=rebuild
property name=configuration value=release/

target name=clean description=Delete all previously compiled binaries.
delete
fileset
include name=**/bin/** /
include name=**/obj/** /
/fileset
/delete
/target

target name=build description=Build all targets.
   call target=build.FACCBase/
/target

target name=rebuild depends=clean, build /

target name=build.FACCBase
solution configuration=${configuration} solutionfile=FACCBase.sln
/solution
/target

/project

The clean part is working fine, however when I get to the build portion I get 
errors:

Solution format of file 'C:\TESTTFS\FACCBase\FACCBase.sln' is not supported.

I am sure that you all will need more information to help me, so if you tell me 
what I am missing to get this working I will 

Re: [NAnt-users] Is there a template/example for this setup?

2011-05-13 Thread Bob Archer
CI Factory's scripts do this. IIRC he creates a text file with any changed 
files to determine if the project needs to be built. While I don't use CI 
Factory anymore I got several ideas from it and learned quite a few nant 
tricks. Even if you don't use it, setting it up and looking at the scripts is 
quite eye opening.

http://cifactory.org/joomla/

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, May 13, 2011 9:15 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Is there a template/example for this setup?

This is a common architecture so I'm hoping someone's done this before.

Say I have a Windows project with 2 components, each component in its on 
directory, like so:

ProjectA
   Component1
  File1.h
  File1.cpp
  File1.sln
   Component2
  File2.h
  File2.cpp
  File2.sln

I only want to build a component if a file changed in its corresponding folder. 
This entails that I have to:

-  Check for changes in the component directory with our SCM tool 
(sadly, Starteam in our case)

-  If changes exist, check out the changes

-  Build the solution file

Then if and only if ALL components build, I do

-  Check in files

-  Label files

-chris




***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Is there a template/example for this setup?

2011-05-13 Thread Bob Archer
Its really as simple as comparing the current binary to the sourcecode using 
uptodate and only building a project if needed?

I do that in my own builds. We have a tool that builds a database packager. I 
only build a new packager exe if any of the SQL schema source files have newer 
dates than the current packager exe.

As a matter of fact, most compiler has a built in mode that will do this, don't 
they?

BOb

From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, May 13, 2011 12:41 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Is there a template/example for this setup?

Thanks, but I don't have time to delve into yet another tool now, though I did 
d/l the app and perused through it a little.

One thing that will help is if I can setup a nant target that checks for 
modifications on a certain folder, similar to the filtered sourcecontrol 
element of ccnet.

-chris

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, May 13, 2011 9:37 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: Is there a template/example for this setup?

CI Factory's scripts do this. IIRC he creates a text file with any changed 
files to determine if the project needs to be built. While I don't use CI 
Factory anymore I got several ideas from it and learned quite a few nant 
tricks. Even if you don't use it, setting it up and looking at the scripts is 
quite eye opening.

http://cifactory.org/joomla/

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, May 13, 2011 9:15 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Is there a template/example for this setup?

This is a common architecture so I'm hoping someone's done this before.

Say I have a Windows project with 2 components, each component in its on 
directory, like so:

ProjectA
   Component1
  File1.h
  File1.cpp
  File1.sln
   Component2
  File2.h
  File2.cpp
  File2.sln

I only want to build a component if a file changed in its corresponding folder. 
This entails that I have to:

-  Check for changes in the component directory with our SCM tool 
(sadly, Starteam in our case)

-  If changes exist, check out the changes

-  Build the solution file

Then if and only if ALL components build, I do

-  Check in files

-  Label files

-chris




***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] (no subject)

2011-05-11 Thread Bob Archer
Can you send your full ccnet config or at least what is in the publishers 
section. Of course, this really is a ccnet issue, not a nant issue. You could 
ask for help on the CCNet google group.


 No ccnet does not send a build failed email when nant calls
 fail; hence I posted the question. I'm not sure I set this part
 up correctly.
 
 -Original Message-
 From: Adam Bruss [mailto:abr...@awrcorp.com]
 Sent: Tuesday, May 10, 2011 10:35 PM
 To: Chris Fouts; nant-users@lists.sourceforge.net
 Subject: RE: [NAnt-users] (no subject)
 
 So is ccnet sending a build failed email when nant calls fail?
 It should and it always has for me.
 
 -Original Message-
 From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
 Sent: Tuesday, May 10, 2011 9:04 PM
 To: nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] (no subject)
 
 Yeah I have this; I used to have a pure ccnet script that worked.
 However, I switched to NAnt and put all my software  build tasks in
 the NAnt script. So my ccnet project looks like this
 
 project
sourcecontrol ... /
tasks
   !-- NAnt script does the VS2010 software build --
   nant  /nant
/tasks
publishers.../publishers
 /project
 
 The problem I'm having is I have a tasks block that calls a
 nant script, and if the build fails in the NAnt script, it just
 calls the fail block of the NAnt script, and stops.
 
 
 From: Adam Bruss [abr...@awrcorp.com]
 Sent: Tuesday, May 10, 2011 8:02 PM
 To: Chris Fouts; nant-users@lists.sourceforge.net
 Subject: RE: [NAnt-users] (no subject)
 
 Here's a ccnet example of a publisher block that sends mail.
 
 publishers
   email from=foo...@fubar.com mailhost=smtp.foobar.com
 includeDetails=TRUE
 users
 user name=frank group=buildmaster
 address=fr...@fubar.com/
 user name=bob group=buildmaster
 address=b...@fubar.com/
 user name=jon group=buildmaster
 address=fr...@fubar.com/
 
  user name=paul group=developers
 address=devd...@fubar.com/
 /users
 groups
 group name=buildmaster
   notifications
 notificationTypeAlways/notificationType
   /notifications
 /group
 group name=developers
   notifications
 notificationTypeAlways/notificationType
   /notifications
 /group
 /groups
   /email
 /publishers
 
 For us the publishers block is the last thing in the project block.
 
 From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
 Sent: Tuesday, May 10, 2011 4:07 PM
 To: nant-users@lists.sourceforge.net
 Subject: [NAnt-users] (no subject)
 
 I've started using ccnet with NAnt, where my ccnet script calls a
 NAnt script to do the actual build. However, I want ccnet to send
 an e-mail, not nant, when a script fails. I have a publisher
 ccnet block that I want executed that sends the e-mail.
 
 -chris
 
 
 
 ***This e-mail message is intended only for the above named
 recipient(s) and may contain information that is sensitive or
 proprietary. If you have received this message in error or are not
 the named recipient(s), please immediately notify the sender,
 delete this e-mail message without making a copy and do not
 disclose or relay this e-mail message to anyone.***
 
 ---
 ---
 Achieve unprecedented app performance and reliability What every
 C/C++ and Fortran developer should know.
 Learn how Intel has extended the reach of its next-generation tools
 to help boost performance applications - inlcuding clusters.
 http://p.sf.net/sfu/intel-dev2devmay
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users
 
 ---
 ---
 Achieve unprecedented app performance and reliability
 What every C/C++ and Fortran developer should know.
 Learn how Intel has extended the reach of its next-generation tools
 to help boost performance applications - inlcuding clusters.
 http://p.sf.net/sfu/intel-dev2devmay
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] (no subject)

2011-05-11 Thread Bob Archer
I think modifierNotifcationTypes defaults to always. But I'm not sure 
notification to groups has any default. The docs I look at don't list one. Can 
you add an Allways notification type to your groups and see if that works.

That said it could be trying to send the email and failing. Are you sure your 
SMTP server allows relays from the build servers IP?

Did you look at the SMTP servers logs?

BOb
 

 -Original Message-
 From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
 Sent: Wednesday, May 11, 2011 10:53 AM
 To: nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] (no subject)
 
 Yes I posted it in the ccnet group, but I'm not sure it's a ccnet
 issue, so I asked here too. Ccnet does know that the Nant script
 failed since the dashboard indicates so.
 
 One thing I see that I missed is the notifications block, but
 shouldn't that default to Always?
 
 -chris
 
   tasks
   nant
   descriptionCalling Nant script/description
   executablenant.bat/executable
   baseDirectoryC:\SomeFolder/baseDirectory
   buildFilenant.build/buildFile
   targetList
   targetall/target
   /targetList
 
   buildTimeoutSeconds$(timeout90)/buildTimeoutSeconds
   /nant
   /tasks
   publishers
   xmllogger /
   buildpublisher
   publishDirc:\ccnet\SomeFolder/publishDir
   /buildpublisher
   email from=bradley.buil...@mycompany.com
  mailhost=smtpmail.mycompany.com
  mailport=25
  includeDetails=TRUE
 
   mailhostUsername$(domain)\$(user)/mailhostUsername
   mailhostPassword$(pw)/mailhostPassword
   users
   user name=My Name group=BuildMeister
 address=my.n...@mycompany.com /
   /users
   groups
   group name=BuildMeister /
   group name=Bradley_A3_PE /
   group name=Bradley_A3_Developers /
   /groups
   /email
   /publishers
 
 -Original Message-
 From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
 Sent: Wednesday, May 11, 2011 10:37 AM
 To: Adam Bruss; nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] (no subject)
 
 No ccnet does not send a build failed email when nant calls
 fail; hence I posted the question. I'm not sure I set this part
 up correctly.
 
 -Original Message-
 From: Adam Bruss [mailto:abr...@awrcorp.com]
 Sent: Tuesday, May 10, 2011 10:35 PM
 To: Chris Fouts; nant-users@lists.sourceforge.net
 Subject: RE: [NAnt-users] (no subject)
 
 So is ccnet sending a build failed email when nant calls fail?
 It should and it always has for me.
 
 -Original Message-
 From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
 Sent: Tuesday, May 10, 2011 9:04 PM
 To: nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] (no subject)
 
 Yeah I have this; I used to have a pure ccnet script that worked.
 However, I switched to NAnt and put all my software  build tasks in
 the NAnt script. So my ccnet project looks like this
 
 project
sourcecontrol ... /
tasks
   !-- NAnt script does the VS2010 software build --
   nant  /nant
/tasks
publishers.../publishers
 /project
 
 The problem I'm having is I have a tasks block that calls a
 nant script, and if the build fails in the NAnt script, it just
 calls the fail block of the NAnt script, and stops.
 
 
 From: Adam Bruss [abr...@awrcorp.com]
 Sent: Tuesday, May 10, 2011 8:02 PM
 To: Chris Fouts; nant-users@lists.sourceforge.net
 Subject: RE: [NAnt-users] (no subject)
 
 Here's a ccnet example of a publisher block that sends mail.
 
 publishers
   email from=foo...@fubar.com mailhost=smtp.foobar.com
 includeDetails=TRUE
 users
 user name=frank group=buildmaster
 address=fr...@fubar.com/
 user name=bob group=buildmaster
 address=b...@fubar.com/
 user name=jon group=buildmaster
 address=fr...@fubar.com/
 
  user name=paul group=developers
 address=devd...@fubar.com/
 /users
 groups
 group name=buildmaster
 /group
 group name=developers
   notifications
 notificationTypeAlways/notificationType
   /notifications
 /group
 /groups
   /email
 /publishers
 
 For us the publishers block is the last thing in the project block.
 
 From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
 Sent: Tuesday, May 10, 2011 4:07 PM
 To: nant-users@lists.sourceforge.net
 Subject: [NAnt-users] (no subject)
 
 I've started using ccnet with NAnt, where my ccnet 

Re: [NAnt-users] Changesets included in the current build?

2011-05-11 Thread Bob Archer
I expect the easiest way would be to use a command line tfs client via the EXEC 
nant tag.

From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com]
Sent: Wednesday, May 11, 2011 10:50 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Changesets included in the current build?


Can anyone tell me if there is a way to retrieve the changesets from tfs for 
the current build using Nant, or the nant references in a C# script?

Thanks
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] (no subject)

2011-05-10 Thread Bob Archer
 I've started using ccnet with NAnt, where my ccnet script calls a
 NAnt script to do the actual build. However, I want ccnet to send
 an e-mail, not nant, when a script fails. I have a publisher
 ccnet block that I want executed that sends the e-mail.
 
 -chris

We do that. Did you have a question?

BOb


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Help recursively setting readonly attribute

2011-05-05 Thread Bob Archer
If you want to set the read only attribute, wouldn't you set readonly=true ???

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, May 04, 2011 6:01 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Help recursively setting readonly attribute

I thought I had this, but apparently not, since I can't overwrite files in 
them. I run as Administrator so I have permission to do this.

I want to set the read-only attribute for all files and subdirs under the two 
directories

target name=removeReadOnly
description=Remove read-only attribute of files
attrib readonly=false
fileset
include name=C:\Some 
Folder\**\* /
include name=C:\Other 
Folder\**\* /
/fileset
/attrib
/target

What am I missing?

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Help recursively setting readonly attribute

2011-05-05 Thread Bob Archer
Ah got it... the include patterns are a bit tricky.

From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Thursday, May 05, 2011 10:11 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Help recursively setting readonly attribute

I did NOT want the files to be read only, hence false. I should've said I 
wanted to set the read only attribute to false.

-chris

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Thursday, May 05, 2011 9:59 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: Help recursively setting readonly attribute

If you want to set the read only attribute, wouldn't you set readonly=true ???

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, May 04, 2011 6:01 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Help recursively setting readonly attribute

I thought I had this, but apparently not, since I can't overwrite files in 
them. I run as Administrator so I have permission to do this.

I want to set the read-only attribute for all files and subdirs under the two 
directories

target name=removeReadOnly
description=Remove read-only attribute of files
attrib readonly=false
fileset
include name=C:\Some 
Folder\**\* /
include name=C:\Other 
Folder\**\* /
/fileset
/attrib
/target

What am I missing?

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] NAnt .NET 4.0 Security Problem

2011-04-18 Thread Bob Archer
 just upgraded to .NET 4.0 and NAnt 0.91 Alpha 2 and got the same
 problem as others reported.
 
 Looks like its not  a problem with your .NET 4.0 install nor with
 NAnt itsself.
 
 After unpacking the zip file, all distributed .dll and .exe files
 are blocked.
 Right click on a single file - properties - unblock
 
 When all files are unblocked, everything works fine.
 
 So it looks like that the zip file is not correctly created.

I think that's prettty standard stuff with windows.

After you d/l a zip file unblock it before you unzip it.

I don't think this is due to the way the zip is created.

BOb


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Are people still using NAnt

2011-03-14 Thread Bob Archer
Hi Folks... we rely heavily on NAnt for our builds. But, it seems that 
development and activity here has really slowed down. Have people moved to MS 
Build or is NAnt just at that stage where it is stable enough so people don't 
have problems with it and it doesn't need a lot of changes?

BOb

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Are people still using NAnt

2011-03-14 Thread Bob Archer
I would be willing to help with development. NAnt has been very good for us, 
and me personally and I would like to give back. Even if that only means doing 
some testing or doc writing.

BOb


From: Ryan Boggs [mailto:rmbo...@gmail.com]
Sent: Monday, March 14, 2011 1:03 PM
To: Macdiarmid, James D.
Cc: Bob Archer; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Are people still using NAnt

Hi,

I'm trying to pick up development again.  I had a big project take up much of 
my time the last couple of months. Now that the project is wrapping up, I can 
shift back here.

I setup a branch that I am currently working in to address the 4.0 fallout 
issues. I am avoid head commits at the moment because the changes I am 
currently working on are pretty chaotic and not really stable yet.  In fact, I 
made a couple commits to that branch yesterday.

Heres to hoping that we can get this off the ground again. ;)

Thanks,
Ryan

On Mar 14, 2011, at 9:35 AM, Macdiarmid, James D. 
james.d.macdiar...@saic.commailto:james.d.macdiar...@saic.com wrote:
Hi Bob,

Yes,  I’m heavily using Nant in our build projects, in addition to Ant.   It’s 
an awesome tool and I too wish more development could be done.

Jim

From: 
nant-users-boun...@lists.sourceforge.netmailto:nant-users-boun...@lists.sourceforge.net
 [mailto:nant-users-boun...@lists.sourceforge.net] On Behalf Of Bob Archer
Sent: Monday, March 14, 2011 11:54 AM
To: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net
Subject: [NAnt-users] Are people still using NAnt

Hi Folks... we rely heavily on NAnt for our builds. But, it seems that 
development and activity here has really slowed down. Have people moved to MS 
Build or is NAnt just at that stage where it is stable enough so people don't 
have problems with it and it doesn't need a lot of changes?

BOb

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.netmailto:NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] may I get nant exec task error message?

2011-02-10 Thread Bob Archer
 I use nant exec task to auto build script for a while.I can get
 error code but I
 can't get error message in property.I want to record error message
 when it fail
 build.Is that possible without using xmllogger log everything then
 find errors
 Thanks for help

Can you clarify what you want the error from... the whole build task.. or a 
specific EXEC call?

BOb


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] may I get nant exec task error message?

2011-02-10 Thread Bob Archer
 I want to use exec program=aaa.bat resultproperty=errorcode
 output=log.txt failonerror=falsefail
 if=${int::parse(errorcode)!=0}/
 to get errocode if exit 0 or not,if not print out what happened in
 my logfile
 now I use to exec aaa.bat execute fail like there is no aaa.bat
 file, output
 log.txt would not generate
 I couldn't get build result in my email,I should go to server to
 see what
 happened.
 I also use nant contrib trycatch,but the catch exception message is
 from
 failcustom message/fail
 I wonder to get detail message like parameters error or I use wrong
 batch/execute file just like .net try catch throw exception could
 throw
 exception.message or like console print out
 thanks

I'm trying my best to understand what you are saying. If you exec something and 
it outputs to standard out then it should going into your log.txt. You would 
have to read in log.txt to get that message into a property and/or the NAnt log.

Here is a simple build script:

?xml version=1.0 ?
project name=Test1
property name=errormessage value=/
exec program=abc.bat output=log.txt resultproperty=execresult 
failonerror=false/
if test=${execresult=='1'}
foreach item=Line in=log.txt property=logline
property name=errormessage value=${errormessage + 
logline}/
/foreach
echo message=The stdout was: ${errormessage}/
fail message=${errormessage}/
/if
/project

Here is the bat file:

echo This is sent to standard out!
exit 1

When I run the script I get this output:

Buildfile: file:///C:/Users/rarch/Development/Amsi-v7.0.0/Build/text.build
Target framework: Microsoft .NET Framework 4.0

 [exec] C:\Users\rarch\Development\Amsi-v7.0.0\Build\text.build(4,3):
 [exec] External Program Failed: 
C:\Users\rarch\Development\Amsi-v7.0.0\Build\abc.bat (return code was 1)
 [echo] The stdout was: C:\Users\rarch\Development\Amsi-v7.0.0\Buildecho 
This is sent to standard out! This
 to standard out!C:\Users\rarch\Development\Amsi-v7.0.0\Buildexit 1

BUILD FAILED - 1 non-fatal error(s), 0 warning(s)

C:\Users\rarch\Development\Amsi-v7.0.0\Build\text.build(10,4):
C:\Users\rarch\Development\Amsi-v7.0.0\Buildecho This is sent to standard out! 
This is sent to standard out!C:\
rch\Development\Amsi-v7.0.0\Buildexit 1

Total time: 0.1 seconds.

---

Of course, you can use the contents of errormessage to build an email or 
whatever. 

Many programs that you exec don't actually output to standard out but they can 
write out a log file. I use this quite a bit to parse the log file and look for 
the error message so I can insert it into the nant log. 

Hth,
BOb

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Using NAnt to build Windows Application

2011-01-14 Thread Bob Archer
 Good Morning,
 
 Has anyone ever used NAnt to build a windows application?  If so,
 is there any special steps to do?  How do you handle the automatic
 inclusion of a library you developed?

What do you mean by windows application? That's all I've ever used nant for.

Or do you mean windows forms ???

What are you trying? What isn't working? Is this a .Net application?

BOb


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Using NAnt to build Windows Application

2011-01-14 Thread Bob Archer
I think you already got the answer use MSBuild.

 -Original Message-
 From: Wilson, Brian [mailto:brian.wil...@dhr.alabama.gov]
 Sent: Friday, January 14, 2011 1:22 PM
 To: 'nant-users@lists.sourceforge.net'
 Subject: Re: [NAnt-users] Using NAnt to build Windows Application
 
 I have a .Net application that is a Windows application (.exe) that
 I need to automate the build.  I want to use NAnt, but I have only
 ever used it to build ASP.Net applications.
 
 I have not started building the script yet, as I am not sure what
 needs to be done.  I was wondering if there is something special
 that needs to be done.  How do I handle the automatic inclusion of
 a custom library?  VS2008 does this automatically for me, so I am
 not sure if there is something I need to do for a NAnt build.
 
 
 
 Thank you,
 
 Brian Wilson
 Department of Human Resources - Administrative Services
 Email: brian.wil...@dhr.alabama.gov
 
 
 
 -Original Message-
 From: Bob Archer [mailto:bob.arc...@amsi.com]
 Sent: Friday, January 14, 2011 12:17 PM
 To: Wilson, Brian; 'nant-users@lists.sourceforge.net'
 Subject: RE: Using NAnt to build Windows Application
 
  Good Morning,
 
  Has anyone ever used NAnt to build a windows application?  If so,
  is there any special steps to do?  How do you handle the
 automatic
  inclusion of a library you developed?
 
 What do you mean by windows application? That's all I've ever
 used nant for.
 
 Or do you mean windows forms ???
 
 What are you trying? What isn't working? Is this a .Net
 application?
 
 BOb
 
 
 ---
 ---
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them.
 Understand
 malware threats, the impact they can have on your business, and how
 you
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Using NAnt to build Windows Application

2011-01-14 Thread Bob Archer
I think most people prefer not to install Visual Studio onto their build 
server. Of course, VS2008 and on use msbuild int he background anyway.

 
 Pass your vs solution to devenv.com using nant exec. devenv.com is
 sometimes in C:\Program Files (x86)\Microsoft Visual Studio
 9.0\Common7\IDE\.
 
 Adam Bruss
 Development Engineer
 AWR Corporation/Simulation Technology  Applied Research
 11520 N. Port Washington Rd., Suite 201
 Mequon, WI  53092  USA
 P: 1.262.240.0291 x104
 F: 1.262.240.0294
 E: abr...@awrcorp.com
 W: http://www.awrcorp.com
 
 
 -Original Message-
 From: Wilson, Brian [mailto:brian.wil...@dhr.alabama.gov]
 Sent: Friday, January 14, 2011 12:22 PM
 To: 'nant-users@lists.sourceforge.net'
 Subject: Re: [NAnt-users] Using NAnt to build Windows Application
 
 I have a .Net application that is a Windows application (.exe) that
 I need to automate the build.  I want to use NAnt, but I have only
 ever used it to build ASP.Net applications.
 
 I have not started building the script yet, as I am not sure what
 needs to be done.  I was wondering if there is something special
 that needs to be done.  How do I handle the automatic inclusion of
 a custom library?  VS2008 does this automatically for me, so I am
 not sure if there is something I need to do for a NAnt build.
 
 
 
 Thank you,
 
 Brian Wilson
 Department of Human Resources - Administrative Services
 Email: brian.wil...@dhr.alabama.gov
 
 
 
 -Original Message-
 From: Bob Archer [mailto:bob.arc...@amsi.com]
 Sent: Friday, January 14, 2011 12:17 PM
 To: Wilson, Brian; 'nant-users@lists.sourceforge.net'
 Subject: RE: Using NAnt to build Windows Application
 
  Good Morning,
 
  Has anyone ever used NAnt to build a windows application?  If so,
  is there any special steps to do?  How do you handle the
 automatic
  inclusion of a library you developed?
 
 What do you mean by windows application? That's all I've ever
 used nant for.
 
 Or do you mean windows forms ???
 
 What are you trying? What isn't working? Is this a .Net
 application?
 
 BOb
 
 
 ---
 ---
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them.
 Understand
 malware threats, the impact they can have on your business, and how
 you
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users
 
 ---
 ---
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them.
 Understand
 malware threats, the impact they can have on your business, and how
 you
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] XmlPoke

2011-01-14 Thread Bob Archer
Is there anyway to get XmlPoke this to preservewhilespace?

BOb



--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] how to use property in echo

2010-12-03 Thread Bob Archer
 I want to dynamic generate a nant file for nant task use. I use
 echo file to
 generate. But property change to value that I don't want.for
 example:
 echo file=test.xmllt;property name=quot;generateTimequot;
 value=quot;${datetime::now()}quot;/echo
 
 test.xml would become like
 property name=generateTime value=2010 12 3 18:23
 How can I let it become below
 property name=generateTime value=${datetime::now()}
 Thanks.

I think if you separate it out then it should work.. something like:

echo file=test.xmllt;property name=quot;generateTimequot; 
value=quot;${$ + datetime::now()}}quot;/echo

Although there may be some way to escape the ${} thing with a back slash or an 
extra $... but I'm too lazy to check the code. ;)

BOb


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Exec task not releasing exe

2010-11-23 Thread Bob Archer
Just for archival purposes I figured this out. The psexec tool when first run 
displays a accept license dialog. I knew this and ran it and accepted the 
license. However, I later realized that ccnet (which calls nant) runs under our 
build domain account not my personal account. So, I had to login as the build 
user, run psexec, accept the licese, then restart the ccnet service (to pick up 
the path change). After I did that all was well.

From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Wednesday, November 17, 2010 1:11 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Exec task not releasing exe

Our build server crashed so I had to build a new one. It was Windows 2003 not 
on Windows 2008R2 64-bit. Our build script seems to have an issue... one of the 
build tools that is run with an exec task doesn't exit when run via nant. 
However, if I run it at the command line it exits fine.

If I end the process the build continues to run from that point.

Any ideas why this might be happening and what I could do about it?

I'm using nant .86.3317.0

(I have turned UAC off to see if maybe that affected it, but it doesn't seem to 
matter).

BOb

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Different file sizes when publishing a web site using Nant

2010-11-23 Thread Bob Archer
Did you verify they are building with the same version of .Net framework? Also, 
are you doing the nant and visual studio build on the same PC for comparison?

From: Paulo Mello [mailto:paulo...@gmail.com]
Sent: Tuesday, November 23, 2010 6:19 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Different file sizes when publishing a web site using Nant

Hi Everyone!

I have a solution with one website and 4 associated libraries.
I used the Nant to build this solution and after that I compared the results 
with the normal publish using visual studio.
I realize that the dlls and its pdbs have different sizes even if I published 
in debug mode using visual studio and using a parameter to build in debug mode 
on nant.

This is the .build file I used on Nant.

?xml version=1.0?
project name=NAnt Example default=build
  property name=nant.contrib.path value=C:\Arquivos de 
programas\nant\nantcontrib\bin /
  target name=_CopyWebApplication Condition='$(OutDir)' != '$(OutputPath)' 
DependsOnTargets=ResolveAssemblyReferences
loadtasks assembly=${nant.contrib.path}\NAnt.Contrib.Tasks.dll /
msbuild project=../SolutionName.sln target=Rebuild
  !--arg value=/p:Configuration=Debug /--
  !--arg value=/t:publish /
  arg value=/p:OutDir=$(WebProjectOutputDir)\bin\ /
  arg value=/p:WebProjectOutputDir=c:\temp\ /
/msbuild
  /target
/project

Any help will be appreciated!
Thanks,
Paulo Mello.
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Exec task not releasing exe

2010-11-17 Thread Bob Archer
Our build server crashed so I had to build a new one. It was Windows 2003 not 
on Windows 2008R2 64-bit. Our build script seems to have an issue... one of the 
build tools that is run with an exec task doesn't exit when run via nant. 
However, if I run it at the command line it exits fine.

If I end the process the build continues to run from that point.

Any ideas why this might be happening and what I could do about it?

I'm using nant .86.3317.0

(I have turned UAC off to see if maybe that affected it, but it doesn't seem to 
matter).

BOb

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Target Failure Determination

2010-11-02 Thread Bob Archer
I don't know a way to do it. But, you could just look at the log to figure it 
out. The last task to run is the one that failed.

From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com]
Sent: Monday, November 01, 2010 1:50 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Target Failure Determination


Would anyone know if there is a way to determine what target or task failed 
when using nant.failure?   What I was considering on do was setting a property 
based on what task the script is currently processing, then clear the property 
at the end of the task.  If the property is not blank then have the script roll 
back everything up to and including the name of the task that was recorded in 
the property.  Make sense?   Would there be a better way of doing this?

Thanks
--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Copy task and file write time stamp ...

2010-10-05 Thread Bob Archer
touch?

From: Parrish, Ken [mailto:kparr...@gomez.com]
Sent: Tuesday, October 05, 2010 2:50 PM
To: NAnt-users@lists.sourceforge.net
Subject: [NAnt-users] Copy task and file write time stamp ...

The default behavior of the copy task is that file write times  for the 
source file are reflected at the destination.

Is there a way to change the behavior of the copy task such that the last 
file write time for the destination file is set to the current time?

Is there a separate task in Nant that can be used to modify the last file write 
time for a file at a specific location?

Thanks,

Ken
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Building Java apps from a Nant script ....

2010-09-29 Thread Bob Archer
How about running Ant with the exec task?

BOb


From: Parrish, Ken [mailto:kparr...@gomez.com]
Sent: Wednesday, September 29, 2010 2:42 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Building Java apps from a Nant script 

It looks like I am going to have to integrate some Java project builds into an 
existing Nant based configuration management system.  I looked at the Task 
Reference for Nant and NantContrib, and was surprised not to find direct 
support for an Ant or Java task in either library.  The Java project that I 
need to support already has an Ant script.

What is the best / preferred method for integrating a Java build into a typical 
Nant script?

Thanks,

Ken Parrish
Gomez, Inc.


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] specifying a null reference

2010-08-30 Thread Bob Archer
Did you try Extension= ?

BOb


From: Adam Bruss [mailto:abr...@awrcorp.com]
Sent: Sunday, August 29, 2010 12:32 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] specifying a null reference

Hello,

From the nant doc change-extension function:

Extension

string

The new extension (with a leading period). Specify a null reference to remove 
an existing extension from path.


How do you specify a null reference?

Thanks,
Adam

Adam Bruss
Development Engineer
AWR Corporation/Simulation Technology  Applied Research
11520 N. Port Washington Rd., Suite 201
Mequon, WI  53092  USA
P: 1.262.240.0291 x104
F: 1.262.240.0294
E: abr...@awrcorp.com
W: http://www.awrcorp.com

--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Announcing NAnt 0.91 Alpha2

2010-08-23 Thread Bob Archer
 Announcing NAnt 0.91 Alpha2
 We are proud to announce the second alpha release of NAnt 0.91.
 

Congrats on this release. Thanks to you and all the nant devs.

BOb


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] unsubscribe

2010-07-19 Thread Bob Archer
Use

arg line=-I{Import} /

instead. Value will quote the argument while line will pass it as is.

BOb


From: Pavan Vadavalli [mailto:pavan.vadava...@gmail.com]
Sent: Friday, July 16, 2010 6:07 PM
To: NAnt-users@lists.sourceforge.net
Subject: [NAnt-users] unsubscribe


2010/7/17 Andréys Guillaume 
guillaume.andr...@omt.frmailto:guillaume.andr...@omt.fr

Hi everybody,

I am trying to compile a Delphi 32 bits application with nant, calling 
dcc32.exe with the exec task. I've got problems that I can't solve, maybe 
someone can help me :
I want to launch the application with more or less this command line :
dcc32.exe -$O- -$D- -I..\composants\src\Abrevia..\composants\src\JLabel; 
..\composants\src\PdfCreator;  ... (I won't put all the long command ...)

My problem is with the -Ipath1;path2 ...

If I am trying to do :
property name=composant-src-dir value=..\composants\src/
path id=import
 pathelement dir=${composant-src-dir}/Abrevia /
pathelement dir=${composant-src-dir}/JLabel /
 pathelement dir=${composant-src-dir}/PdfCreator /
/path

exec program=dcc32.exe basedir=${codegear-dir}/bin/ verbose=true
arg value=-$O-/
 arg value=-$D-/
arg value=-I/
  arg
path
   path refid=import /
/path
  /arg
/exec

I can't call the -I with path without an space between the -I and the path list 
...

I have tried this :
property name=composant-src-dir value=..\composants\src/
property name=import 
value=${composant-src-dir}\Abrevia;${composant-src-dir}\JLabel/
exec program=dcc32.exe basedir=${codegear-dir}/bin/ verbose=true
arg value=-$O-/
 arg value=-$D-/
arg value=-I${import}/
/exec

But with this I have a  before the -I that is coming and something like this
dcc32.exe O- -$D- 
-I..\composants\src\Abrevia..\composants\src\JLabel;..\composants\src\PdfCreator

Then it won't work ... and I am loosing the benefice of the path element 
(adding  automatically, converting / to \ in windows ...)

Does someone have an idea to get out of those directory problems.

Think you for your help

Guillaume


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/firsthttp://sprint.com/first -- 
http://p.sf.net/sfu/sprint-com-first
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.netmailto:NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] MbUnit not running under .Net 4.0...

2010-06-08 Thread Bob Archer
Ok... it seems to be an issue with mbunit and has nothing to do with nant. I 
can event load the test project's dll in the console even when the console is 
running under .Net 4. 

IS anyone using mbUnit with .Net 4? I may have to consider upgrading to mbunit 
v3 or maybe xUnit? Or something that supports .Net 4.

Thanks... BOb


  -Original Message-
  From: Bob Archer [mailto:bob.arc...@amsi.com]
  Sent: Tuesday, June 08, 2010 11:56 AM
  To: Ryan Boggs
  Cc: nant-users@lists.sourceforge.net
  Subject: Re: [NAnt-users] MbUnit not running under .Net 4.0...
 
Where? By use do you mean targeting? Yes... all the projects are
 set
   to target .Net 4.0.
  
   Yes, that is what I meant.
   
Of course, MBUnit itself is probably build with .Net 2.0. But, I
  didn't
   build that... I use the shipped binaries.
  
   I took a look at their site and it doesn't look like they have had any
   recent releases so your assumption that MBUnit was built with 2.0 may
   be correct.  I tried looking for source tarballs for it to test with
   but I didn't see any.
  
   Just out of curiosity, does it still build when setting the target
   framework to net-3.5?
  
   Thanks,
   Ryan
 
  I can't test that since it uses .Net 4.0 specific libraries and
 features.
 
  BOb
 
 
  
 --
  
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
  ___
  NAnt-users mailing list
  NAnt-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nant-users

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] MbUnit not running under .Net 4.0...

2010-06-07 Thread Bob Archer
 Hi,
 
 On Jun 7, 2010, at 7:31 AM, Bob Archer bob.arc...@amsi.com wrote:
 
  YEs... that is just my test project. It is build with the system so
  compiled with the .Net 4.0 compilers.
 
 So is the project that references that assembly set to use a
 specific .Net version?  I ask because this error should not occur if
 the correct target framework is selected, at least to me.

Where? By use do you mean targeting? Yes... all the projects are set to 
target .Net 4.0. 

Of course, MBUnit itself is probably build with .Net 2.0. But, I didn't build 
that... I use the shipped binaries.

BOb


  -Original Message-
  From: Ryan Boggs [mailto:rmbo...@gmail.com]
  Sent: Saturday, June 05, 2010 3:32 PM
  To: Bob Archer
  Cc: nant-users@lists.sourceforge.net
  Subject: Re: [NAnt-users] MbUnit not running under .Net 4.0...
 
  Hi Bob,
 
  I'm sorry but since I am not familiar with it, I need to ask.  What
  is
  AmsiWeb.Test?  Is it something that is apart of your project that you
  are trying to compile?  Please let me know.
 
  Thanks,
  Ryan
 
  On Thu, Jun 3, 2010 at 12:47 PM, Bob Archer bob.arc...@amsi.com
  wrote:
  Ok... almost there... I am now getting the following error:
 
 
 
  [exec] Message: Could not load file or assembly 'AmsiWeb.Test' or
  one of
  its
  dependencies. This assembly is built by a runtime newer than the
  currently
  loaded runtime and cannot be loaded.
  [exec] Source: mscorlib
  [exec] StackTrace:
 
 
 
 
 
  Sounds like nant is running in .Net 2.0 rather than .Net 4.0?
  Perhaps?
 
 
 
  BOb
 
 
 
 
 
  ---
  ---
  --
  --
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
  ___
  NAnt-users mailing list
  NAnt-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nant-users
 
 

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Nant 0.90 Problem with C# Script

2010-05-19 Thread Bob Archer
What can you code without System.dll? Doesn't that have all the base types... 
or are those in mscorlib?

BOb

 Ron,
 
 This was done to improve portability and readability of build scripts.
 I prefer to give users more control (in this case over the assemblies they
 want to reference in scripts).
 If this change is causing too much trouble, we can always reconsider.
 
 Gert
 
 -Original Message-
 From: Ron Grabowski [mailto:rongrabow...@yahoo.com]
 Sent: dinsdag 18 mei 2010 23:36
 To: nant
 Subject: Re: [NAnt-users] Nant 0.90 Problem with C# Script
 
 Out of curiosity, why was this changed? Doesn't VS include System.dll by
 default?
 
 
 
 - Original Message 
 From: Gert Driesen gert.drie...@telenet.be
 To: Ryan Boggs rmbo...@gmail.com; Simon H yo...@live.com
 Cc: nant-users@lists.sourceforge.net
 Sent: Tue, May 18, 2010 5:36:03 AM
 Subject: Re: [NAnt-users] Nant 0.90 Problem with C# Script
 
 Hey Simon,
 
 This is due to a (breaking) change in 0.90 (more specifically, 0.90 alpha
 1).
 You need to explicitly add a reference to the System assembly.
 
 references
 include name=System.dll /
 ...
 /references
 
 Gert
 
 -Original Message-
 From: Ryan Boggs [mailto:rmbo...@gmail.com]
 Sent: dinsdag 18 mei 2010 6:39
 To: Simon H
 Cc: nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] Nant 0.90 Problem with C# Script
 
 Hey Simon,
 
 If I remember correctly, System.Text.RegularExpressions namespace is
 no longer imported in script by default anymore.  You probably need to
 include the namespace manually but I can say for certain since I don't
 know what's in your NAnt script.
 
 Try adding this to your script tag:
 
 imports
 import namespace=System.Text.RegularExpressions /
 /imports
 
 Hope this helps,
 
 Thanks,
 Ryan
 
 On Mon, May 17, 2010 at 9:23 PM, Simon H yo...@live.com wrote:
  Hi guys,
 
  I have a C# script within my NAnt script that works perfectly in NAnt
 0.85.
  It imports the namespace System.Text.RegularExpressions for the purposes
 of
  testing user input. However, when I try to run my build file using NAnt
 0.90
  I get an error (see below). I have noted that NAnt 0.85 targetted the
 .NET
  2.0 framework by default whereas NAnt 0.90 targets .NET 3.5 framework.
  However, I have tried running the build file after changing the default
  framework to .NET 2.0 and still get the same error. Any ideas? Thanks in
  advance!
 
  Compilation failed:
  c:\Documents and Settings\xxx\Local Settings\Temp\amfegm-q.0.cs(18,19) :
  error CS0234: The type or namespace name 'RegularExpressions' does not
 exist
  in the namespace 'System.Text' (are you missing an assembly reference?)
 
 
 //
 --
 
  // auto-generated
  // 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.
  // /auto-generated
 
 //
 --
 
 
  using NAnt.Core;
  using NAnt.Core.Attributes;
  using System;
  using System.Collections;
  using System.Diagnostics;
  using System.IO;
  using System.Text;
  using System.Text.RegularExpressions;
 
 --
 --
 --
 
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.733 / Virus Database: 271.1.1/2882 - Release Date: 05/18/10
 20:26:00
 
 
 --
 
 
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--

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


[NAnt-users] .Net 4.0 support...

2010-05-12 Thread Bob Archer
I see that the nightlys are supposed to support .Net 4.0. Can I ask what is 
required for that to work? Since WinSDK v7.1 hasn't yet been released (WTH are 
they waiting for) is it not needed? Or are you installing VS 2010 on your build 
servers? If that is the case, can I install VS 2010 Web Dev Express since we 
don't have an extra license to VS 2010 to install on the build server.

BOb

--

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


Re: [NAnt-users] C# sharp scripting and NAnt + CCNet

2010-04-21 Thread Bob Archer
Why are you running builds against production databases. That seems wrong to 
me. Your CI builds/test should be done against a test and/or staging database 
that doesn't have sensitive data in it.

In other words your development environment should include a development only 
DBs.

BOb


From: Simon H [mailto:yo...@live.com]
Sent: Tuesday, April 20, 2010 11:54 PM
To: xtopher.bra...@gmail.com
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] C# sharp scripting and NAnt + CCNet

I am designing a automated compilation script for an Oracle Forms and Reports 
development environment containing numerous databases with associated projects. 
As the username and password for connecting to the databases differs, and 
because of organisational measures in place that require that developers are 
not privy to the username and password for various databases (only DBA's have 
these rights). The ideal solution is:


 *   The DBA runs a force build from CCNet via their browser using the 
WebDashboard.
 *   CCNet calls a NAnt script that prompts them for the username, password and 
database relevant to the files they wish to have automatically compiled and 
deployed (I am already able to achieve this in a NAnt build file using C# 
scripting as outlined in previous post)

However, for some reason CCNet does not execute the NAnt build file as desired 
(outlined in previous post). How can I make CCNet execute the NAnt build file 
so that it correctly runs the embedded C# script that prompts for user input?


From: xtopher.bra...@gmail.com
Date: Tue, 20 Apr 2010 20:38:19 -0700
Subject: Re: [NAnt-users] C# sharp scripting and NAnt + CCNet
To: yo...@live.com
CC: nant-users@lists.sourceforge.net

Hi Simon,

CCNet is generally used for automated/unattended builds. What is the core 
problem you are trying to solve with this solution, ie, why do you want user 
input during a CCNet build?
---
Chris.

Continuous improvement is better than delayed perfection. - Mark Twain

On Tue, Apr 20, 2010 at 8:17 PM, Simon H 
yo...@live.commailto:yo...@live.com wrote:

 Can you store the username, password, an database in a database and have the 
nant script look at that if a console isn't available? This is not a viable 
solution due to security considerations.



Date: Tue, 20 Apr 2010 20:03:58 -0700
From: rongrabow...@yahoo.commailto:rongrabow...@yahoo.com

To: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] C# sharp scripting and NAnt + CCNet

How will ccnet accept user input if its running as a service on an unattended 
build server?

Can you store the username, password, an database in a database and have the 
nant script look at that if a console isn't available?


From: Simon H yo...@live.commailto:yo...@live.com
To: nant-users@lists.sourceforge.netmailto:nant-users@lists.sourceforge.net
Sent: Tue, April 20, 2010 10:32:20 PM
Subject: [NAnt-users] C# sharp scripting and NAnt + CCNet

Hi guys,
I have a C# script within my NAnt build file which allows me to accept user 
input from the commandline. A truncutated excerpt of the NAnt build file is:
...
property name=usernamevalue= /
property name=passwordvalue= /
property name=databasevalue= /
...
target name=menu
script language=C# mainclass=GetInput
  code
![CDATA[
  class GetInput
  {
public static void ScriptMain(Project project)
{
  Console.Clear();
  
Console.WriteLine(===);
  Console.WriteLine(Welcome to the Compile and Deploy Oracle Forms 
and Reports Facility);
  
Console.WriteLine(===);
  Console.Write(Please enter username: );
  project.Properties[username] = Console.ReadLine();
  Console.WriteLine();
  Console.Write(Please enter password: );
  project.Properties[password] = Console.ReadLine();
  Console.WriteLine();
  Console.Write(Please enter database: );
  project.Properties[database] = Console.ReadLine();
  Console.WriteLine();
  ...
]]
  /code
/script
  /target

When I run this build file from the commandline, it works perfectly. However, 
when I call this build file from CCNet it does not work. The only reason for 
this I can think of is that when CCNet calls the NAnt script, it is not sure 
how to pass the C# script calls to the System.Console class to the commandline. 
I'm not sure how to do this though.

I've also been playing around with the idea of the C# script opening a new 
instance of cmd.exe and then trying to execute the remainder of the script. 
From searches on Google, I found the following solution that works as 

Re: [NAnt-users] NAntContrib seems rather dead?

2010-04-21 Thread Bob Archer
I've been using the exec task to run svn for years. nant contrib was just not 
keeping up with svn changes.

From: Pento, Michael [mailto:mpe...@metratech.com]
Sent: Wednesday, April 21, 2010 10:11 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] NAntContrib seems rather dead?

As I was sitting here wondering why the svn tasks in nantcontrib seemed so 
incredibly broken, I realized that the contrib project has not had movement in 
a long time.

I don't even know if the project is directly related to the main NAnt project 
(ever or anymore ...), I was just curious if that is considered a dead 
project?

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


Re: [NAnt-users] Using if to test for existence of properties

2010-04-13 Thread Bob Archer
I think I have run into this before. I think the easiest fix is to make sure 
the property always exists. Then you can check to see if it is not empty.

BOb


From: Durand Van Arnem [mailto:duran...@hotmail.com]
Sent: Tuesday, April 13, 2010 10:33 AM
To: NAnt Users
Subject: [NAnt-users] Using if to test for existence of properties

Hello,

I could use some advice about how to handle this situation:

I have a property, MyProperty, that may or may not be set.  I want a task to 
execute if the property is set, e.g.
echo messsage=Hello ${MyProperty}! if=${property::exists('MyProperty') /

If MyProperty is not set, this task fails because NAnt appears to evaluate the 
message portion regardless of the result of the IF evaluation.  I could rewrite 
like this:

if test=${property::exists('MyProperty')}
echo message=Hello ${MyProperty}! /
/if

However, I run into the same issue with filterchains:

!-- FAILS if MyProperty is not set, because NAnt evaluates the tokens 
regardless of the IF result --
copy failonerror=true verbose=true todir=C:\Temp
fileset refid=Deploy-FileSet /
filterchain
replacetokens begintoken=[ endtoken=] ignorecase=true 
if=${property::exists('MyProperty')}
token key=ABC value=${MyProperty} /
/replacetokens
/filterchain
/copy

I'd rather not enclose the whole definition of the copy in an IF, with a nearly 
identical else version for the case when MyProperty is not set.

How have you handled this situation?

Thanks,
Durand
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Announcing NAnt 0.90-alpha1

2010-04-01 Thread Bob Archer
 Subject: [NAnt-users] Announcing NAnt 0.90-alpha1
 
 No, this is not an April Fool's joke.  This is for real.. :)
 
 After months of hard work by volunteer's and continuing guidance from
 Gert Driesen, we finally have the first official release of NAnt in
 over 2 years.

Congratulations to all and thank you to everyone on the NAnt dev team... old 
members and new.

BOb



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Progress update and upcoming NAnt 0.90-alpha1

2010-03-25 Thread Bob Archer
Wow... that's great news. I also want to thank everyone involved in this 
project. It has enabled me to perform automated builds for several years now.

I reviewed the bug fixes and see a few things I reported fixed. That's good to 
see.

One concern I have is that .Net 4.0 support is planned for end of year... at 
least 10 months after .Net 4.0s release. 

I'm not also sure what .Net 4.0 support means. Does that mean targeting .Net 4 
projects or running Nant in .Net 4? Currently I actually use the MSBuild task 
to compile my solution and it runs the correct version of MSBuild based on the 
value of nant.settings.currentframework. I set it to net-3.5 and it runs the 
3.5 version of msbuild which then does the correct thing based on the framework 
version targeted in the VS2008 solution file.

Will I be able to move forward and set that value to net-4.0 in .90? How will 
that work?

I would hate to have to migrate all my nant scripts to msbuild. But we plan to 
convert our project to VS 2010 and .Net 4

Once again... thanks for keeping things going. I'd love to help... but I'm not 
sure where to start.

BOb


 -Original Message-
 From: Charles Chan [mailto:cchan...@users.sourceforge.net]
 Sent: Wednesday, March 24, 2010 11:26 PM
 To: nant-develop...@lists.sourceforge.net; nant-
 us...@lists.sourceforge.net
 Subject: [NAnt-users] Progress update and upcoming NAnt 0.90-alpha1
 
 After a couple months of hard work, we are now ready to start releasing
 NAnt again.
 
 First of all, I would like to give a big THANKS to the following people.
 For their contribution and hard work in helping us get the project
 restarted again. I couldn't imagine this happening without their help
 and support.
 * Dominik Guder
 * Gerry Shaw
 * Gert Driesen
 * Ryan Boggs
 * and all those who contributed in the discussions.
 
 The roadmap:
 https://sourceforge.net/apps/mediawiki/nant/index.php?title=Roadmap
 
 We have decided to renamed the next major release from 0.87 to 0.90.
 For the last few weeks, we have been testing the health of the code
 against various NAnt based OSS projects (BOO, NDoc3,
 NUnit, NAntContrib, etc). Some of these projects work directly with
 the latest version, a few require modification to the build files as
 a result of some breaking changes. Therefore, instead of keeping
 v0.87, and potentially surprising the users, we felt it was more
 appropriate to rename to v0.90 in order to signify the scope
 and impact of these changes.
 
 We are in the process of preparing the build and documentations for the
 official NAnt 0.90 alpha-1 release. In the meantime...
 
 Please review the latest release notes:
 http://nant.sourceforge.net/nightly/latest/releasenotes.html
 
 Or, download the latest nightly snapshot from the homepage to
 start testing:
 http://nant.sourceforge.net/
 
 We look forward to your feedback.
 
 Regards,
 NAnt Team
 
 
 
   __
 Get the name you've always wanted @ymail.com or @rocketmail.com! Go to
 http://ca.promos.yahoo.com/jacko/
 
 --
 
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Target Framework net-3.5 Configuration

2010-03-25 Thread Bob Archer
I use the latest nightly and it works ok. But, I explicity let the 
targetframework property in the scripts.

I also use the msbuild task rather then the csc task.. but I assume it uses the 
same mechanism to determine which to use.

BOb


From: Christopher Brandt [mailto:xtopher.bra...@gmail.com]
Sent: Thursday, March 25, 2010 6:14 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Target Framework net-3.5 Configuration

This is related to my previous post on Windows 7  VS2008.

After some help I realized that the target framework on my desktop was .Net 3.5 
whereas on my build server (Windows 2003 Server) it was .Net 2.0. The was 
causing some problems between the two environment in how csc.exe was importing 
includes. The build server required our files to explicitly specify the paths 
to the .Net 3.5 dlls, but on my desktop it choked on build files with explicit 
paths (error was that the libraries had already been imported).

The difference between the target frameworks, terms of how NAnt functions, is 
specified in the NAnt.exe.config file. The configuration for each target 
framework is specified with the reference assemblies to load. That is why in 
one environment they are loaded by NAnt and in the other our build file had to 
specify where to get them from.

The root of my problem then was why my build server was still targeting the 
net-2.0 framework rather than 3.5. We've had .Net 3.5 installed on that server 
for well over a year (has it been out that long?). NAnt attempts to determine 
the highest available framework as the default. In our case the best it could 
find was 2.0. The reason is in the configuration for the net-3.5 framework. The 
project element in the config file lists the places where NAnt attempts to 
look for clues to see what frameworks are available. We are running 0.86 on the 
build server and it's config file specifies that it should look for a registry 
key:

SOFTWARE\Microsoft\Microsoft 
SDKs\Windows\v6.0A\WinSDKNetFxTools\InstallationFolder

However on our build server the key is in:

SOFTWARE\Microsoft\Microsoft 
SDKs\Windows\v6.0\WinSDKNetFxTools\InstallationFolder

v6.0 not v6.0A

I see that the configuration in NAnt 0.9 has v6.0A, v6.1, v7.0. And my desktop 
does have v6.0A.

So a simple modification to the NAnt.exe.config to add a readregistry element 
for v6.0, fix our problem.

I would guess that we're not alone with this wonky SDK version. So someone 
should probably add the the following to at least the configuration for the 0.9 
build:

readregistry
property=sdkInstallRoot
key=SOFTWARE\Microsoft\Microsoft 
SDKs\Windows\v6.0\WinSDKNetFxTools\InstallationFolder
hive=LocalMachine
failonerror=false /

---
Chris Brandt

Continuous improvement is better than delayed perfection. - Mark Twain
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] What are the plans for nant

2010-03-24 Thread Bob Archer
It's been quite a while since there has been a nant release. What are the plans 
for it?

Are the primary dev's still finding time to work on it? Gert and others?

For example, any support for .Net 4 and VS 2010?

Or... have the contributors pretty much put it in legacy mode expecting that 
everyone has moved to MSBuild?

Perhaps there is someone else that has time to pick it up and get it a bit more 
active again. It certainly is a great product.

BOb

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] WebRequest

2010-03-17 Thread Bob Archer
Did you try the references node inside the script node? Look at the docs for 
the script task:

http://nant.sourceforge.net/release/0.86-beta1/help/tasks/script.html

BOb


From: Lionel Morrison [mailto:lmorri...@lifeware.com]
Sent: Wednesday, March 17, 2010 11:12 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] WebRequest

I'm trying to read in a txt file from a website 
(http://menumax.com/svn_info.txt) . As it is I can't find a task that will 
allow me to call a URL so I thought I would use C# code block.

My question is how do I get NAnt to include the System.Net  class? I keep 
getting the follow error

Invalid token 'using' in class, struct, or interface member declaration


Below is my code block. Is it simply that I have the using statement in the 
wrong place and if so where should I be putting it?

script language=C# prefix=lifeware
  code
![CDATA[
using System.Net;

[Function(webrequest)]

  public static string webRequest() {
WebRequest request = 
WebRequest.Create(http://menumax.com/svn_info.txt;);

return blablabla;
  }
]]
  /code
/script




Lionel Morrison | Build and Release Engineer | Lifeware TEK
Office: (802) 552-4465 | Cell: (386) 336-7709
Email: lmorri...@lifeware.comrodono...@lifeware.com
* CONFIDENTIALITY NOTICE - PLEASE READ FIRST *

This e-mail message (and all attachments, if any) is intended only for the use 
of the individual or the authorized representative of the entity to which it is 
addressed, and may contain information which is confidential and protected from 
disclosure by law as proprietary information, legally privileged or otherwise.  
If you are not the intended recipient, you are hereby notified that you are not 
to read the contents and any use, disclosure, distribution or copying of the 
transmitted material is strictly prohibited.  If you have received this e-mail 
message in error, please immediately contact the sender to confirm the deletion 
or destruction of this message and all copies.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] nant copy sometimes fails

2010-02-04 Thread Bob Archer
     I use nant copy in my build files.There are sometimes copy fails.It
 happends different time and different files.
 I can't figure out why it happend and when it happed. each files about 200
 MB and there are 20 files.
 it always happend afeter some exec task.Is it cause by memory or .net gc ?
 
 copy todir=${sourcedir}\8-Install\FullPak-${NewVersion}
 overwrite=true
 fileset basedir=${sourcedir}\6-Frame\Release\FullPak\
  include name=**/
 /fileset
    /copy
 
 Build Error: NAnt.Core.BuildException
 Cannot copy 'D\sourcedir\Data14.zip' to 'D:\outpdir\Data14.zip'.
 in D:\project\Build.xml line: 904 col: 5
    at NAnt.Core.Tasks.CopyTask.DoFileOperations()

Is it possible someone has that .zip file opened?

BOb

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] nant copy sometimes fails

2010-02-04 Thread Bob Archer
Does that Really matter? I can open a zip file on my PC and go home and forget 
to close it. That is the only think I can think of that would cause a copy to 
fail... unless there was some network issue, although it looks like the copy 
source and target is all on the same machine looking at your task.

BOb


 -Original Message-
 From: netvampire.tw [mailto:netvampire...@yahoo.com.tw]
 Sent: Thursday, February 04, 2010 10:46 AM
 To: Bob Archer; nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] nant copy sometimes fails
 
 no.it's an auto batch job in the midnight.
 zip some files and copy to some folders to backup.
 
 
 
 - 原始信件 
 寄件者: Bob Archer bob.arc...@amsi.com
 收件者: netvampire.tw netvampire...@yahoo.com.tw; nant-
 us...@lists.sourceforge.net nant-users@lists.sourceforge.net
 寄件日期: 2010/2/4 (四) 10:45:38 PM
 主 旨: RE: [NAnt-users] nant copy sometimes fails
 
      I use nant copy in my build files.There are sometimes copy fails.It
  happends different time and different files.
  I can't figure out why it happend and when it happed. each files about
 200
  MB and there are 20 files.
  it always happend afeter some exec task.Is it cause by memory or .net gc
 ?
 
  copy todir=${sourcedir}\8-Install\FullPak-${NewVersion}
  overwrite=true
  fileset basedir=${sourcedir}\6-Frame\Release\FullPak\
   include name=**/
  /fileset
     /copy
 
  Build Error: NAnt.Core.BuildException
  Cannot copy 'D\sourcedir\Data14.zip' to 'D:\outpdir\Data14.zip'.
  in D:\project\Build.xml line: 904 col: 5
     at NAnt.Core.Tasks.CopyTask.DoFileOperations()
 
 Is it possible someone has that .zip file opened?
 
 BOb
 
 ___
  您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
  http://messenger.yahoo.com.tw/
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Input prompting ...

2009-11-03 Thread Bob Archer
The only thing I could think would be to exec a bat file that prompts for a 
value and writes it to a text file or something. I pretty much think nant is 
designed for non-attended use.

BOb


From: Parrish, Ken [mailto:kparr...@gomez.com]
Sent: Tuesday, November 03, 2009 9:34 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Input prompting ...

Nant Users,

Is there a task that can be used to prompt a user for input of a property?  I'd 
like to design some tasks which will prompt the user for input of a property if 
the property was not specified on the command line.  I looked in both Nant and 
NantContrib and didn't see anything.  Am I missing something?

Ken Parrish
Gomez, Inc.
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] nANT and nUnit2 integration and running test.

2009-11-03 Thread Bob Archer
The version nant references is different than the version that you are using in 
your own app. Use the exec task instead of the nunit2 task.

http://www.hanselman.com/blog/CallingNUnitFromNAntPragmatically.aspx

BOb


 -Original Message-
 From: Steven Whatmore [mailto:steven.whatm...@purefacts.com]
 Sent: Tuesday, November 03, 2009 1:06 PM
 To: nant-users@lists.sourceforge.net
 Subject: [NAnt-users] nANT and nUnit2 integration and running test.
 
 Good afternoon,
 
 I am trying to integrate my unit testing into a nightly build
 process and am having one hell of a time getting the test to run
 successfully.
 
 My unit test run fine from Visual Studio and using the test runner
 GUI but am receiving the following error when I run it from nANT.
 
 Failure executing test(s). If you assembly is not built using NUnit
 version 2.2.8.0, then ensure you have redirected assembly bindings.
 Consult the documentation of the nunit2 task for more
 information.:
 NAnt.Core.BuildException: C:\Projects\PureFees-Net\PureFees-Net
 \PureFees-Net-nUnit.build(14,10):
 Failure executing test(s). If you assembly is not built using NUnit
 version 2.2.8.0, then ensure you have redirected assembly bindings.
 Consult the documentation of the nunit2 task for more
 information.
 --- System.IO.FileNotFoundException: Could not load file or
 assembly
 'PureFees-Net-TestSuite' or one of its dependencies. The system
 cannot find the file specified.
 File name: 'PureFees-Net-TestSuite'
   at (wrapper xdomain-invoke) NUnit.Core.ProxyTestRunner:Load
 (string)
   at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask () [0x0]
   --- End of inner exception stack trace ---
   at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask () [0x0]
   at NAnt.Core.Task.Execute () [0x0]
 
 The documentation on how to properly configure this is not 100%
 clear.
 
 The same test runs successfully on the build machine by directly
 loading the project into the GUI but the nANT nUnit2 task does not.
 
 I have tried many variations of the configuration of the test and
 the nUnit task but with no luck.
 
 I must be missing something obvious (or not so obvious in this
 case)
 
 Here is my nANT file
 
 ?xml version=1.0 ?
 project name=Test1 default=solutionTest
 xmlns=http://nant.sf.net/schemas/nant.xsd;
 
 property name=basedir value=${project::get-base-
 directory()} /
 
 property name=build.debug value=false /
 property name=project.version value=0.0.1 /
 property name=current.build.dir value=${basedir}\\build /
 
 target name=solutionTest
 
 loadtasks assembly=C:\DEV\Microsoft\nant-0.86-
 beta1\bin\NAnt.Contrib.Tasks.dll /
 
 nunit2 verbose=true
 formatter type=Xml /
 test assemblyname=Test-Net-TestSuite.dll
 appconfig=Test-Net-QC.nunit /
 /nunit2
 
 /target
 
 /project
 
 And here is my Test-Net-QC.nunit
 
 ?xml version=1.0 encoding=utf-8 ?
 configuration
 runtime
 assemblyBinding xmlns=urn:schemas-microsoft-com:asm.v1
 dependentAssembly
 assemblyIdentity name=nunit.framework
 publicKeyToken=96d09a1eb7f44a77 culture=Neutral /
 bindingRedirect oldVersion=2.0.6.0
 newVersion=2.2.8.0 /
 bindingRedirect oldVersion=2.1.4.0
 newVersion=2.2.8.0 /
 /dependentAssembly
 /assemblyBinding
 /runtime
 /configuration
 
 Thanks in advance.
 
 Whatty
 
 
 ---
 ---
 Come build with us! The BlackBerry(R) 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 - 12, 2009. Register
 now!
 http://p.sf.net/sfu/devconference
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Output console to text file

2009-10-22 Thread Bob Archer
Nope, if the DLL is in the same folder as the nant.exe then it should load it.

From: Justin Daubenmire [mailto:jus...@cboss.com]
Sent: Thursday, October 22, 2009 9:03 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Output console to text file

gotcha. Once the contrib assemblies are in the bin folder of my nant 
installation, do I have to do anything special as an import or anything to get 
my build scripts to recognize the contrib tasks?

/Justin


From: Chris Lambrou [mailto:chris.lamb...@grantadesign.com]
Sent: Thursday, October 22, 2009 8:59 AM
To: Justin Daubenmire
Subject: RE: [NAnt-users] Output console to text file
You need to take the NAntContrib files and copy them into your NAnt  
installation, at which point you can then use both NAnt and NAntContrib tasks 
in your build scripts.



From: Justin Daubenmire [mailto:jus...@cboss.com]
Sent: 22 October 2009 13:51
To: nant-users@lists.sourceforge.net; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Output console to text file

Thanks guys!

What is the syntax to pull in the nant-contrib assembly into my nant build file?

/Justin



From: Michael Pento [mailto:mpe...@metratech.com]
Sent: Thursday, October 22, 2009 8:43 AM
To: Justin Daubenmire; nant-users@lists.sourceforge.net; 
nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Output console to text file
Hi Justin,

If your using the nant-contrib library you can use the record task 
(http://nantcontrib.sourceforge.net/release/latest/help/tasks/record.html) to 
save your output to a log file. It supports various output logging levels and 
you will still get your output on the console.

target name=build
record name=build.log level=Debug action=Start /

(do a bunch of things ...)

record name=build.log level=Debug action=Stop /
/build

Hope this helps.

Thanks,
Mike

From: Justin Daubenmire [mailto:jus...@cboss.com]
Sent: Thursday, October 22, 2009 8:22 AM
To: nant-users@lists.sourceforge.net; nant-users@lists.sourceforge.net
Subject: [NAnt-users] Output console to text file

Hey all,

In my .build file, how or what do I do to get all console messages redirected 
to a text file?

I have this in place throughout my targets:

echo file =deploy_results.txt append=true message=starting to copy 
files... /

which works, but the information displayed on the console, such as 28 files 
copied,  is never wrote to the text file.

How can I get verbose console output to the text file in addition to my custom 
messages?

Thanks for any feedback!

/Justin
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Output console to text file

2009-10-22 Thread Bob Archer
You can use the XmlLogger. Check out the doc on Loggers and Listeners.

BOb


From: Justin Daubenmire [mailto:jus...@cboss.com]
Sent: Thursday, October 22, 2009 8:22 AM
To: nant-users@lists.sourceforge.net; nant-users@lists.sourceforge.net
Subject: [NAnt-users] Output console to text file

Hey all,

In my .build file, how or what do I do to get all console messages redirected 
to a text file?

I have this in place throughout my targets:

echo file =deploy_results.txt append=true message=starting to copy 
files... /

which works, but the information displayed on the console, such as 28 files 
copied,  is never wrote to the text file.

How can I get verbose console output to the text file in addition to my custom 
messages?

Thanks for any feedback!

/Justin
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] tokenizing a script tag and link

2009-10-22 Thread Bob Archer
You have to use XML entities tokens and I think single quotes:

property name= trainingwatermark value=lt;link rel='stylesheet' 
type='text/css' href='..\style\watermark.css'gt;/
property name= attachEventButtonOnClick  value=lt;SCRIPT 
language='JavaScript' src='../_res/js/GetInputButtonOnLoad.js'lt;/SCRIPTgt;/

If you really need double quotes I think you can use quote;

BOb


From: Zachary B. Wheeler [mailto:zwhee...@sddmtech.com]
Sent: Thursday, October 22, 2009 1:25 PM
To: Bob Archer; nant-users@lists.sourceforge.net; 
nant-users@lists.sourceforge.net
Subject: tokenizing a script tag and link

Hi All

Is it possible to tokenize an entire script tag

In my config file I have:

property name= trainingwatermark 
value=link rel=stylesheet type=text/css 
href=..\style\watermark.css/
property name= attachEventButtonOnClick   
value=SCRIPT language=JavaScript 
src=../_res/js/GetInputButtonOnLoad.js/SCRIPT/

But when I run my build I get the following error:

Hexadecimal value 0x3c is n invalid attribute character


Zachary B. Wheeler


--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] aspnet_compiler.exe ignore warning messages

2009-10-08 Thread Bob Archer
If the command line of the tool doesn't support an errors only output option 
then you may have trouble with this. If that tools supports STDOUT and ERROUT 
you may be able to redirect the output to a file and if you get an error return 
code you can read in the error output and echo it to your build log. I have 
done this will tools that allow the output to be directed to a file and then 
parse the output for error messages.

BOb


 -Original Message-
 From: gmoney [mailto:g.lab...@autodata.ltd.uk]
 Sent: Thursday, October 08, 2009 10:16 AM
 To: nant-users@lists.sourceforge.net
 Subject: [NAnt-users] aspnet_compiler.exe ignore warning messages
 
 
 Hi I use the aspnet_compiler.exe in my nant script to compile a
 asp.net
 website. There are warnings messages that are being outputted. I only
 am
 interested in errors, therefore how can i only see errors and not
 warnings?
 My code is as follows:
 
 exec program=${dotnet}/aspnet_compiler.exe commandline=-f -u -p
 ${BuildDirIE} -v / ${outputFolderIE} verbose=true
 failonerror=false/
 --
 View this message in context:
 http://www.nabble.com/aspnet_compiler.exe-ignore-warning-messages-
 tp25803015p25803015.html
 Sent from the NAnt - Users mailing list archive at Nabble.com.
 
 
 ---
 ---
 Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 NAnt-users mailing list
 NAnt-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nant-users

--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Expanding Variables in if statements

2009-08-31 Thread Bob Archer
You don't not embed expressions. Write your if as follows:

property name=dir.base value=this/is/my/working/directory /
if test=${string::contains(dir.base,'working')}
  echoThis is my directory/echo
/if



BOb


From: Michael Corr [mailto:mich...@aduratech.com]
Sent: Sunday, August 30, 2009 10:52 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Expanding Variables in if statements

hi
I'm trying to check if a source string contains a substring, inside an if 
statement, but it doesn't seem to work when the source string is a variable

I have:
property name=dir.base value=this/is/my/working/directory /
if test=${string::contains('${dir.base}','working')}
  echoThis is my directory/echo
/if

This never returns true. It doesn't seem to parse the ${dir.base} variable 
inside the if statement

If I change the test to:
if test=${string::contains('${dir.base}','base')}
  echoThis is my directory/echo
/if

This does return true. So, it appears to treat the variable as a literal and 
not a variable.

Am I missing something? I tried removing the single quotes around ${dir.base} 
and got an error about the $ character. I also tried using double quotes, but 
got an error as well

Is there a better way to check if a string (or path) contains a specific 
directory?

thanks
Michael
--
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] Nant call parent Tasks in nested build files

2009-08-28 Thread Bob Archer
 Hi All,
 I have two build files
 one which I will execute with nant
 project ..
 target name= “def”
 nant buildfile=”second.build”/
 /target
 
 target name=”copysmt”
 /target
 
 /project
 
  second nested ”second.build”
 
  project ..
 target name= “def”
 call target=”copysmt”/
 /target
 /project
 
  Nant will end with en error, that Target ' copysmt ' does not exist in
 this project.
 I does not help, when I will try to give same name to projects in both
 build files.
 How can I do that.
 Do I need use include task and then call instead of nant task to
 execute this scenario?
 Thx for your help.

The nant task runs another build file it is sort of like a function call. It is 
going to run the default target in that build file and exit. You can specify 
that it run the copysmt target if you want on the nant task:

nant buildfile=second.build target=copysmt /

This will execute the copysmt target in that build file. That build file will 
have access to all the properties of the calling nant script. However, once it 
is done it is unloaded.

Using include basically inserts the contents of the build script right inline 
into your current build script. You can use this perhaps to include scripts 
that have common targets in them shared by many builds. 

Or, the opposite, which I do to include environment specific stuff. We have a 
build script for our project and I have a settings.xml build file which I 
include at the top of the project.build file. The settings file sets properties 
such as the framework target version, the path to deploy to, etc. We edit the 
settings.xml file when we branch without needing to modify the primary build 
file.

So, either one will work, depending on your needs.

Hth,
BOb

--
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] Nant properties Evaluation

2009-08-28 Thread Bob Archer
 Hi all,
 I have another problem.
 I have nant build script which uses subwcrev, which take revision, last
 date change and so from svn and use this for replace some strings in
 file.
 I use this way.
 I have source file named rev.source like this :
 ?xml version=1.0?
 project xmlns=http://nant.sf.net/release/0.85/nant.xsd;
 default=SetProp name=MarkGetProp 
   target name=SetProp
 property name=revisionXSLTemplates value=$WCREV$ /
 property name=revisionXSLTemplatesDate
 value=$WCDATE=%Y%m%d%H%M$ /
 property name=revisionXSLTemplatesDateString value=$WCDATE$ /
   /target
 /project
 Nant build use subwcrev on that file:
 exec program=${subwcrev} commandline=${SourceCodeDir} rev.source
 rev.build /
 So now I have build file which looks like :
 ?xml version=1.0?
 project xmlns=http://nant.sf.net/release/0.85/nant.xsd;
 default=SetProp name=MarkGetProp 
   target name=SetProp
 property name=revision value=35172 /
 property name=revisionDate value=200908271759 /
 property name=revDateString value=2009/08/27 17:59:32 /
   /target
 /project
 I cannot include that file in my build beacause on build script statrs
 file rev.build does not exists yet.
 So I try to use
 nant buildfile=rev.build /
 in my build task, but there is a problem, nant will ends with this
 error:
 Property 'revisionDate' has not been set.
 
 Can you help me with that?
 
 A.

Are you sure you have the namespace specified in all the build files? 

BOb


--
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] Nant properties Evaluation

2009-08-28 Thread Bob Archer
 Bob Archer napsal(a):
  Hi all,
  I have another problem.
  I have nant build script which uses subwcrev, which take revision,
 last
  date change and so from svn and use this for replace some strings in
  file.
  I use this way.
  I have source file named rev.source like this :
  ?xml version=1.0?
  project xmlns=http://nant.sf.net/release/0.85/nant.xsd;
  default=SetProp name=MarkGetProp 
target name=SetProp
  property name=revisionXSLTemplates value=$WCREV$ /
  property name=revisionXSLTemplatesDate
  value=$WCDATE=%Y%m%d%H%M$ /
  property name=revisionXSLTemplatesDateString value=$WCDATE$
 /
/target
  /project
  Nant build use subwcrev on that file:
  exec program=${subwcrev} commandline=${SourceCodeDir} rev.source
  rev.build /
  So now I have build file which looks like :
  ?xml version=1.0?
  project xmlns=http://nant.sf.net/release/0.85/nant.xsd;
  default=SetProp name=MarkGetProp 
target name=SetProp
  property name=revision value=35172 /
  property name=revisionDate value=200908271759 /
  property name=revDateString value=2009/08/27 17:59:32 /
/target
  /project
  I cannot include that file in my build beacause on build script
 statrs
  file rev.build does not exists yet.
  So I try to use
  nant buildfile=rev.build /
  in my build task, but there is a problem, nant will ends with this
  error:
  Property 'revisionDate' has not been set.
 
  Can you help me with that?
 
  A.
 
 
  Are you sure you have the namespace specified in all the build files?
 
  BOb
 Yes I have
 
 xmlns=http://nant.sf.net/release/0.85/nant.xsd;
 in all files, but the projcet name is not same, anyway if I set same
 name of project id works same.
 I saw on Inet some sort of problems with namespaces in 0.86, but I have
 it in all files and It is same.
 May be the problem is that after nant task (nant buildfile=rev.build
 /) is that file unloaded,as you wrote before, but I cannot know how to
 make it another way.

Ok, 

So, let me walk through what I would do and you tell me what you are doing 
different. I am not quite understanding what you are saying...

In your build file say main.build you have the following code:


exec program=${subwcrev} commandline=${SourceCodeDir} rev.source rev.build 
/

Then you should do:

include buildfile=rev.build /

From that point on the three properties set in the rev.build file will be 
available to main.build.

BOb


--
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] Nant properties Evaluation

2009-08-28 Thread Bob Archer
Oh right... I didn't think of that. So, you have 3 build files...

boot.build - run the exec to generate rev.build
rev.source - the template file for rev.source
main.build - your primary build file which has an include rev.build at the top.

So, you start your build calling boot.build. It runs the exec that creates 
rev.build. Then it uses the nant task to run mail.build. You can pass the 
target you want boot.build to run in main.build by having a property.

Another option rather than the above and probably better is to just have 
rev.xml.template and create rev.xml using the exec as your are but make it a 
POX (plain old XML) file. Then use XML peek to grab the values and put them 
into your properties. This way you don't need the boot.build indirection stiff.

BOb


 -Original Message-
 From: Ales Vojacek [mailto:al...@fbl.cz]
 Sent: Friday, August 28, 2009 10:35 AM
 To: Bob Archer
 Cc: nant-users@lists.sourceforge.net
 Subject: Re: [NAnt-users] Nant properties Evaluation
 
 Yes that is what I want to do, but include is not possible to do inside
 target and I cannot to do that on top of build file since the file does
 not exists.
 A.
 
 Bob Archer napsal(a):
  Bob Archer napsal(a):
 
  Hi all,
  I have another problem.
  I have nant build script which uses subwcrev, which take revision,
 
  last
 
  date change and so from svn and use this for replace some strings
 in
  file.
  I use this way.
  I have source file named rev.source like this :
  ?xml version=1.0?
  project xmlns=http://nant.sf.net/release/0.85/nant.xsd;
  default=SetProp name=MarkGetProp 
target name=SetProp
  property name=revisionXSLTemplates value=$WCREV$ /
  property name=revisionXSLTemplatesDate
  value=$WCDATE=%Y%m%d%H%M$ /
  property name=revisionXSLTemplatesDateString
 value=$WCDATE$
 
  /
 
/target
  /project
  Nant build use subwcrev on that file:
  exec program=${subwcrev} commandline=${SourceCodeDir}
 rev.source
  rev.build /
  So now I have build file which looks like :
  ?xml version=1.0?
  project xmlns=http://nant.sf.net/release/0.85/nant.xsd;
  default=SetProp name=MarkGetProp 
target name=SetProp
  property name=revision value=35172 /
  property name=revisionDate value=200908271759 /
  property name=revDateString value=2009/08/27 17:59:32 /
/target
  /project
  I cannot include that file in my build beacause on build script
 
  statrs
 
  file rev.build does not exists yet.
  So I try to use
  nant buildfile=rev.build /
  in my build task, but there is a problem, nant will ends with this
  error:
  Property 'revisionDate' has not been set.
 
  Can you help me with that?
 
  A.
 
 
  Are you sure you have the namespace specified in all the build
 files?
 
  BOb
 
  Yes I have
 
  xmlns=http://nant.sf.net/release/0.85/nant.xsd;
  in all files, but the projcet name is not same, anyway if I set same
  name of project id works same.
  I saw on Inet some sort of problems with namespaces in 0.86, but I
 have
  it in all files and It is same.
  May be the problem is that after nant task (nant
 buildfile=rev.build
  /) is that file unloaded,as you wrote before, but I cannot know how
 to
  make it another way.
 
 
  Ok,
 
  So, let me walk through what I would do and you tell me what you are
 doing different. I am not quite understanding what you are saying...
 
  In your build file say main.build you have the following code:
 
 
  exec program=${subwcrev} commandline=${SourceCodeDir} rev.source
 rev.build /
 
  Then you should do:
 
  include buildfile=rev.build /
 
  From that point on the three properties set in the rev.build file
 will be available to main.build.
 
  BOb
 
 

--
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-28 Thread Bob Archer

  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?

I guess so. But since I have never used it I can't help you. Perhaps Gert or 
someone else can chime in with a solution. There must be a way when using JS to 
specify the function name to create.

The other way is rather than creating a function just inline it, make it a 
target. Of course, if you want to use the output in expressions this doesn't 
help.

BOb

--
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] Mailing list help

2009-08-28 Thread Bob Archer
Just subscribe to the list from your new email address. See the URL below to 
find directions on how to do this. 

BOb


 -Original Message-
 From: Ales Vojacek [mailto:al...@fbl.cz]
 Sent: Friday, August 28, 2009 4:08 PM
 To: nant-users@lists.sourceforge.net
 Subject: [NAnt-users] Mailing list help
 
  Hi all,
 because of changing our infrastucture, I need to change email address
 for this conversation, how can I do that?
 A.
 
 
 ---
 ---
 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

--
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 Bob Archer
 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

--
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 Bob Archer
 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


--
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] Getting the Path of an Included Build File

2009-08-18 Thread Bob Archer
 I would like to create a common include file that several of my builds
 use.
 It would setup a few global directorise and properties. Then my build
 files
 would just use the include element. However, I am trying to use the
 project::get-buildfile-path() function inside my include file to get
 the
 current path of that include file. This property will then be used to
 build
 up other paths.
 
 The problem is that this function returns the path to the build file
 including the include file. Since this method doesn't work, is there a
 better approach? Another function I should use?

It seems to me that the calling script knows the path to the included script 
since you are calling it. Set a property to hold the path which you can 
reference in the included script.

BOb

--
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


  1   2   3   4   >