Use the following:
<fail unless="${property::exists(
'Loggers')}"><![CDATA[Usage: nant set_log
-D:Loggers=" loger_names "]]></fail>



On 6/21/06, Bonio Lopez <[EMAIL PROTECTED] > wrote:
Dear all,
Following line
<fail unless="${property::exists('Loggers')}">Usage: nant set_log
-D:Loggers=&quote loger_names &quote"</fail>

Produces exception:
NAnt.Core.BuildException: C:\XXX\default.build(32,82):
Error loading buildfile. ---> System.Xml.XmlException: An error occurred
while parsing EntityName. L
ine 32, position 82.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseEntityName ()
   at System.Xml.XmlTextReaderImpl.ParseEntityReference()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence (XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at NAnt.Core.Project.LoadBuildFile(String uriOrFilePath)
   --- End of inner exception stack trace ---
   at NAnt.Core.Project.LoadBuildFile(String uriOrFilePath)
   at NAnt.Core.Project..ctor(String uriOrFilePath, Level threshold, Int32
indentLevel)
   at NAnt.Core.ConsoleDriver.Main(String[] args)

Try 'nant -help' for more information
Any ideas?



_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users



--
Shmarya
-----------------------------------------------------------
[EMAIL PROTECTED] - http://idp.shmarya.net
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to