That looks really wierd. Why would it have RTF syntax? What editor is this? There is no style sheet. Try a different editor. Even just name the file with the .xml extension and open it in IE.


Duraiswami, Prabhuram wrote:
Kevin,
You are correct. I tried opening the file from an xml editor and the
result
***********************
The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and
then click the Refresh button, or try again later.



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

Invalid at the top level of the document. Error processing resource
'file:///C:/REG/EDBObject/reg.build'. Line 1, Position...

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fcharset0
Times New Roman;}{\f1\fnil\fcharset0 Courier New;}}
^
****************************

Do you know what is wrong here?
Thanks again for your help.

Thanks
PD

-----Original Message-----
From: Duraiswami, Prabhuram Sent: Monday, November 01, 2004 6:46 PM
To: 'Kevin Williams'
Subject: RE: [Nant-users] Build Fails (.85)


Kevin,
Thanks a lot for your reply.

I have stripped down my file to the following just to see if the NAnt is
setup correctly. I am not sure what is wrong.
---------

<?xml version="1.0"?> <project name="Object" default="build" basedir=".">
</project>
--------


Thanks a lot for your help.

Thanks
PD

-----Original Message-----
From: Kevin Williams [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 6:43 PM
To: Duraiswami, Prabhuram
Subject: Re: [Nant-users] Build Fails (.85)


Sounds like an XML problem. Perhaps you could validate the build file with a validating XML editor to make sure it's correct.


Duraiswami, Prabhuram wrote:

Kevin,
That is a valid point. I am totally new to NAnt and I was also under

the

same impression when I read the installation details on the website.

So just downloading the zip file and unzipping it will complete the
installation, right?

I downloaded the 0.85 version of NAnt - unzipped it and I put together

a

simple build file. When I try to run it I get the following. Can you
please tell me what am I missing here? Your help is greatly

appreciated.

Thanks
PD



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

----


C:\REG\EDBObject>nant -buildfile:reg.build -debug NAnt 0.85 (Build 0.85.1759.0; net-1.0.win32; nightly; 10/25/2004) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net


BUILD FAILED

C:\REG\EDBObject\reg.build(1,1):
Error loading buildfile.
   The data at the root level is invalid. Line 1, position 1.

Stacktrace:

C:\REG\EDBObject\reg.build(1,1):
Error loading buildfile.:
NAnt.Core.BuildException: C:\REG\EDBObject\reg.build(1,1):
Error loading buildfile. ---> System.Xml.XmlException: The data at the
root leve
l is invalid. Line 1, position 1.
  at System.Xml.XmlTextReader.ParseRoot()
  at System.Xml.XmlTextReader.Read()
  at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
  at System.Xml.XmlValidatingReader.Read()
  at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean prese
rveWhitespace)
  at System.Xml.XmlDocument.Load(XmlReader reader)
  at System.Xml.XmlDocument.Load(String filename)
  at NAnt.Core.Project.LoadBuildFile(String source) in
d:\Source\nant-20041025T
055603Z\src\NAnt.Core\Project.cs:line 1346
  --- End of inner exception stack trace ---
  at NAnt.Core.Project.LoadBuildFile(String source) in
d:\Source\nant-20041025T
055603Z\src\NAnt.Core\Project.cs:line 1350
  at NAnt.Core.Project..ctor(String uriOrFilePath, Level threshold,
Int32 inden
tLevel) in

d:\Source\nant-20041025T055603Z\src\NAnt.Core\Project.cs:line

240
  at NAnt.Core.ConsoleDriver.Main(String[] args) in
d:\Source\nant-20041025T055
603Z\src\NAnt.Core\ConsoleDriver.cs:line 100

Try 'nant -help' for more information



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

----


-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Williams Sent: Monday, November 01, 2004 4:58 PM Cc: [EMAIL PROTECTED] Subject: Re: [Nant-users] Build Fails (.85)



It was my understanding that before I can use NANT I have to build it

then


install it. Is this correct?

....



C:\nant>bin\nant
NAnt 0.85 (Build 0.85.1759.0; net-1.0.win32; nightly; 25/10/2004)



This looks to me like you already have a working copy. If you can use NAnt to build NAnt, it already works and you don't need to build it yourself. Feel free to work through it as a learning exercise, though.


I've learned a lot over the years that way.


------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to