An as always I manage to reply directly instead of to the list.bah

 

From: Phil Sayers [mailto:p...@cds-am.net] 
Sent: Thursday, January 15, 2009 8:37 AM
To: 'Nayan Gowda'
Subject: RE: [NAnt-users] Subversion Copy command throws an error

 

A quick initial thought..

 

Do you have a property called "Release-.version" in which case
${Release-.version} is not your problem

 

Or is your property called "version" and you want to pre-pend its value with
"Release-" in which case your svn copy should look more like..

 

Svn://10.99.82.12/branches/Release-{version} -m...blah blah..

 

 

From: Nayan Gowda [mailto:nayan.go...@gmail.com] 
Sent: Thursday, January 15, 2009 7:09 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Subversion Copy command throws an error

 

 

Hi,

       I  have written the below Nant script in order to update the version
of the build in the build.number  and commit the file back to Subversion and
Create a tag of the  trunk with the latest build version.

 

      I am able to increment the version of the build number and commit the
file back to Subversion. 

<version      

        buildtype="Increment" 

        prefix="Release-"

        revisiontype="Increment"

        verbose="true">

      </version>

      <exec program="svn.exe" basedir="E:\Projects\Subversion\bin" 

        commandline="commit build.number -m AutomatedCommit --username draco
--password draco --no-auth-cache --non-interactive">

      </exec>

 

but getting the following error on the execution of the copy command.

 

      <exec program="svn.exe" basedir="E:\Projects\Subversion\bin"

        commandline="cp svn://10.99.82.12/trunk/Code
svn://10.99.82.12/branches/${Release-.version}
<http://10.99.82.12/branches/$%7BRelease-.version%7D>  -m AutomatedCopy

 --username draco --password draco --no-auth-cache --non-interactive">

      </exec>

 

 

 
INTERNAL ERROR
 
 
 
System.FormatException: Index (zero based) must be greater than or equal to
zero and less than the size of the argument list.
 
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider,
String format, Object[] args)
 
   at System.String.Format(IFormatProvider provider, String format, Object[]
args)
 
   at NAnt.Core.ExpressionTokenizer.GetNextToken()
 
   at NAnt.Core.PropertyDictionary.EvaluateEmbeddedExpressions(String input,
Location location, Hashtable state, Stack visiting)
 
   at
NAnt.Core.Element.AttributeConfigurator.InitializeAttribute(PropertyInfo
propertyInfo)
 
   at NAnt.Core.Element.AttributeConfigurator.Initialize()
 
   at NAnt.Core.Element.InitializeXml(XmlNode elementNode,
PropertyDictionary properties, FrameworkInfo framework)
 
   at NAnt.Core.Element.Initialize(XmlNode elementNode, PropertyDictionary
properties, FrameworkInfo framework)
 
   at NAnt.Core.Project.CreateTask(XmlNode taskNode, Target target)
 
   at NAnt.Core.Target.Execute()
 
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
 
   at NAnt.Core.Project.Execute()
 
   at NAnt.Core.Project.Run()

 

          Can you please help me on this?

 

 

 

 

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

Reply via email to