The name attribute of project does at least one more thing than just setting ant.project.name, it creates a reference to the Project Object for the <script> task - see the first example in <script>'s docs, you wouldn't be able to use createTask without this.
Stefan
