A couple of "advanced" ANT (in Eclipse) questions

I started with ANT today. I see a huge potential in it. However I have now used the whole day trying to get two tings to work - and simply can't find the answer. I hope some ANT experts will take the time to answer the following questions:

1. Can I create a new Eclipse project with a ANT build? If so, how?

2. I get an error trying to create a database for my project with the following code:

<target name="sql.runAll" depends="sql.getLogin">
<sql driver="${sql.jdbcClasspath}" url="${sql.jdbcURL}" userid="uid" password="pw">
<classpath>
<pathelement path="${sql.jdbcPath}" />
</classpath>      
CREATE DATABASE idlmedia02_${var.port}
</sql>
</target>
The error: CREATE DATABASE statement not allowed within multi-statement transaction.

Is there a way to use CREATE DATABASE statements from within ANT?

As always when I ask for help - I would be really thankful to anybody who can shed light on these subjects.

Comments
I have never messed with doing any SQL from ANT. However, creating a CFEclipse project would be pretty easy. Just copy an existing .project file (it's just XML) and then replace the value in the "name" node with whatever you want the new project to be.

Keep in mind though that doing it that way means Eclipse has no idea that project exists. You'd probably need to do an "import existing project" in Eclipse for it to show up in the project list.
# Posted By Brian Kotek | 8/2/07 10:47 AM
Are you connecting an user with sufficient permissions to create a db? like 'sa'? I can try it tomorrow, but I don't see why it wouldn't be allowed.
# Posted By Rob Gonda | 8/2/07 10:26 PM
Been away for a small vacation - so a little late response here....

@Brian - Thank you for the advice - however making Eclipse aware of the new project would be part of it. Without this it's just as easy to create a new project before running the ANT script.

@Matt - I'll have to check this when I get the time (away for a couple of days and things pile up). However I think the error message indicates that this is not the problem (now I got to check if I can do Create Database within a cftransaction tag as well :)
# Posted By Trond Ulseth | 8/6/07 3:25 AM
Yep, then you'd have to write a custom Java task for ANT to use that would try to get Eclipse to import the new project automatically.
# Posted By Brian Kotek | 8/6/07 11:22 AM
I've hardly written a line of Java code in my life - and I could not write such a custom Java task to save my life :)
# Posted By Trond Ulseth | 8/6/07 5:08 PM