You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nilesh Parmar <ni...@wrox.com> on 2002/04/29 08:41:34 UTC

Can't run a simple ant script :-(

Hi All,
   I'm new to ant and i just tried a simple ant script to print hello,
world, but i can't get it running. Can anyone help me please.
_________________________________________________________________________
Here is the build.xml:

<?xml version="1.0"?>

<project name="test" default="test" basedir=".">

<echo message="Hello world"/>
</project>

_________________________________________________________________
Here is what i get when i run ant:

C:\>ant
Buildfile: build.xml

BUILD FAILED

C:\build.xml:5: Unexpected element "echo"

Total time: 1 second
___________________________________________________________________________


Am i missing anything ?????

Thanks in advance.

Nilesh.


--------------------------------------------------------------
Peer Information India Pvt Ltd, Mumbai, India



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


Re: Can't run a simple ant script :-(

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 29 Apr 2002, Nilesh Parmar <ni...@wrox.com> wrote:

> Can anyone help me please.

Put you echo task into a target - and name that target test to match
the value of your project's default attribute.

Stefan

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