Bugs item #1262651, was opened at 2005-08-18 11:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1262651&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Davey (asdavey)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with 'if' and 'unless' attributes in asminfo
Initial Comment:
Problem:
The 'if' and 'unless' attributes of the asminfo
attribute element are being ignored (at least partially).
If you place a condition in the 'if' attribute to check
for the existence of a property (through
property::exists), and have the same property assigned
to the 'value' attribute, then NAnt raises the error:
Property 'assemblyInfo.fileVersion' has not been set.
Example:
If you have the following:
<asminfo output="AssemblyInfo.cs" language="CSharp">
<imports>
<import namespace="System" />
<import namespace="System.Reflection" />
<import
namespace="System.Runtime.InteropServices" />
</imports>
<attributes>
<attribute type="AseemblyVersion"
value="${nonExistantProperty}"
if="${property::exists('nonExistantProperty')" />
</attributes>
</asminfo>
Then nant will try to evaluate the expression
'${nonExistantProperty}' before determining that this
'attribute' should be skipped since the test
property::exists('nonExistantProperty') fails.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1262651&group_id=31650
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers