Bugs item #1159953, was opened at 2005-03-09 09:08
Message generated for change (Comment added) made by jasonxrowland
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1159953&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Hansen (polterguy)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in schema...

Initial Comment:
The "replacetokens" element under "filterchain" doesn't
exist, this is pretty annoying since it doesn't provide
therefor the right intellisense in VS...

Thomas Hansen

----------------------------------------------------------------------

Comment By: Jason (jasonxrowland)
Date: 2007-10-04 13:47

Message:
Logged In: YES 
user_id=1297503
Originator: NO

Here is a fix:
Add the following to the nant.xsd:

    <xs:complexType name="NAnt.Core.Types.Token">
        <xs:attribute name="key" use="required" />
        <xs:attribute name="value" use="required" />        
    </xs:complexType>
    <xs:complexType name="NAnt.Core.Filters.ReplaceTokens">
        <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element minOccurs="0" maxOccurs="1" name="token"
type="nant:NAnt.Core.Types.Token" />
        </xs:sequence>
    </xs:complexType>

Modify the FilterChain to be the following:
    <xs:complexType name="NAnt.Core.Filters.FilterChain">
        <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element minOccurs="0" maxOccurs="1" name="filter"
type="nant:NAnt.Core.Filters.Filter" />
            <xs:element minOccurs="0" maxOccurs="1" name="replacetokens"
type="nant:NAnt.Core.Filters.ReplaceTokens" />
        </xs:sequence>
        <xs:attribute name="encoding" use="optional" />
        <xs:attribute name="id" use="optional" />
        <xs:attribute name="refid" use="optional" />
        <xs:anyAttribute namespace="##other" processContents="skip" />
    </xs:complexType>

----------------------------------------------------------------------

Comment By: Joannes Vermorel (joannes)
Date: 2006-10-07 05:59

Message:
Logged In: YES 
user_id=572007

I confirm the existence of this bug for NAnt 0.85 rc4. 
It's indeed annoying.

Joannès

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1159953&group_id=31650

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to