You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "P.S.Mahesh" <ps...@cisco.com> on 2002/11/12 16:10:47 UTC

NEWBIE: problem initially says "Content is not allowed in prolog"

Hi folks,

I just downloaded ant. Installed it, wrote a sample build.xml and then tried
to run it when this error came. Can you kindly tell me where I can start
correcting it.

C:\>ant -verbose
Apache Ant version 1.5.1 compiled on October 2 2002
Buildfile: build.xml
Detected Java version: 1.1 in: c:\jdk1.1.8
Detected OS: Windows NT
parsing buildfile build.xml with URI = file:C://build.xml

BUILD FAILED
file:C://build.xml:1: Content is not allowed in prolog.
        at org.apache.tools.ant.helper.ProjectHelperImpl.parse(Compiled
Code)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
        at org.apache.tools.ant.Main.runBuild(Compiled Code)
        at org.apache.tools.ant.Main.start(Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 0 seconds

regards,
Mahesh

Re: NEWBIE: problem initially says "Content is not allowed in prolog"

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "P.S.Mahesh" <ps...@cisco.com>
To: <an...@jakarta.apache.org>
Sent: Tuesday, November 12, 2002 7:10 AM
Subject: NEWBIE: problem initially says "Content is not allowed in prolog"


> Hi folks,
>
> I just downloaded ant. Installed it, wrote a sample build.xml and then
tried
> to run it when this error came. Can you kindly tell me where I can start
> correcting it.
>
> C:\>ant -verbose
> Apache Ant version 1.5.1 compiled on October 2 2002
> Buildfile: build.xml
> Detected Java version: 1.1 in: c:\jdk1.1.8
> Detected OS: Windows NT
> parsing buildfile build.xml with URI = file:C://build.xml
>
> BUILD FAILED
> file:C://build.xml:1: Content is not allowed in prolog.
>         at org.apache.tools.ant.helper.ProjectHelperImpl.parse(Compiled
> Code)
>         at
>
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
>         at org.apache.tools.ant.Main.runBuild(Compiled Code)
>         at org.apache.tools.ant.Main.start(Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:235)

At a guess, I'd say it is unhappy with the build.xml, hinting it is not
valid XML.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>