Patch committed.

Thanks a lot

Gert

----- Original Message ----- 
From: "Tharen D. Debold" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 24, 2003 3:40 AM
Subject: [nant-dev] patch for read-only config file during build


If you use cvs to fetch read-only files, nant.exe.config ends up read
only, which cause xmlpoke to fail when running tests.  This is a change
to the build file to reset the read-only attribute on the copied file.

 

Index: NAnt.build

===================================================================

RCS file: /cvsroot/nant/nant/NAnt.build,v

retrieving revision 1.124

diff -c -5 -r1.124 NAnt.build

*** NAnt.build    18 Oct 2003 20:25:23 -0000    1.124

--- NAnt.build    24 Oct 2003 01:37:09 -0000

***************

*** 116,125 ****

--- 116,126 ----

              <arg value="-k:${nant.settings.currentframework}" />

          </exec>

      </target>

      <target name="self-test" depends="init">

          <copy file="${nant.location}nant.exe.config"
tofile="${nant.location}nant.tests.config" />

+         <attrib file="${nant.location}nant.tests.config"
readonly="false"/>

          <xmlpoke filename="${nant.location}nant.tests.config"

 
xpath="//configuration/nant/frameworks/[EMAIL PROTECTED]'${nant.platform.n
ame}']/@default"

                   value="${nant.settings.currentframework}"/>

  

          <echo message="testing with config
'${nant.location}nant.tests.config'"/>

 




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to