2002-2005
Sven Ehrke
Sven
Ehrke
ericb@gobosoft.com 7 July 2005

# Hello World

To find out whether a tool or library is appropriate for my needs I always found it useful to have an easy start which does save my time and thus makes my decision easier. This is why I start with the ubiqituous 'Hello world'. Here is our 'hello_world' build script:

      <?xml version="1.0" ?>
      <project name="hello" default="hello">
        <target name="hello">
          <echo message="Hello world"/>
        </target>
      </project>

On the first line you can find the usual XML declaration. The second line contains the project element which is the root element of an eant XML document. Then there is a target element containing one task element, echo in this case. Save the above code in a file called build.eant and invoke in that directory the command geant. The message Hello world will be output.