Parlando tra colleghi dell'università, loro mi hanno detto che hanno fatto semplicemente la creazione del database e poi quello delle tabelle, solo che a me da un errore " ERRORE: COPY da stdin fallita: The JDBC driver currently does not support COPY operations." Utilizzo come driver, l'ultimo rilasciato, il "postgresql-9.4.1212.jre7.jar"
<target name= "createtables" description= "create tables" >
<echo message= "Creating tables..."/>
<sql driver= "org.postgresql.Driver"
url= "jdbcostgresql://127.0.0.1:5432/WatchNeighbors_DB"
userid = "postgres"
password= '1'
autocommit="true">
<classpath refid="WatchNeighbors.classpath"/>
<transaction src="db.sql"/>
</sql>
</target>