|
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.name}']/@default" value="${nant.settings.currentframework}"/>
<echo message="testing with config '${nant.location}nant.tests.config'"/>
|
nant.build.patch
Description: nant.build.patch
