I have an nant script which contains the following statements
(fragment):
<!-- Edit AssemblyInfo File if its not up to date -->
<if test="${not file::up-to-date(build.versionfile, _aiPath)}">
<property name="_isReadOnly"
value="${file::FileHasAttribute(_aiPath, 'ReadOnly')}" />
<vsscheckout username="${vss.user}" password="${vss.password}"
dbpath="${vss.dbpath}"
path="${vss.root}/${_aiPath}"
localpath="${build.solutiondir}"
writable="true"
verbose="true" recursive="false" if="${_isReadOnly}" />
<fail message="OOPS" if="${file::FileHasAttribute(_aiPath,
'ReadOnly')}" />
When the script runs, it successfully checks out the file, but leaves it
in a read only state.
Log fragment:
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///D:/Projects/Eden/Eden.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: debug compile
...
_assemblyInfo:
[vsscheckout] Checked out '$/EDEN
Processing/Main/Eden/Eden/Properties/CommonAssemblyInfo.cs'.
BUILD FAILED
D:\Projects\Eden\Eden.build(175,8):
OOPS
I am using VSS 2005.
Should I submit bug?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users