Author: tomdz Date: Mon Dec 19 15:55:24 2005 New Revision: 357841 URL: http://svn.apache.org/viewcvs?rev=357841&view=rev Log: Added utility target that allows to create the database prior to testing (for platforms that support this)
Modified: db/ddlutils/trunk/build.xml Modified: db/ddlutils/trunk/build.xml URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/build.xml?rev=357841&r1=357840&r2=357841&view=diff ============================================================================== --- db/ddlutils/trunk/build.xml (original) +++ db/ddlutils/trunk/build.xml Mon Dec 19 15:55:24 2005 @@ -187,6 +187,25 @@ </target> <!-- ================================================================== --> + <!-- Can be used to create the testdatabase if the platform supports it --> + <!-- ================================================================== --> + <target name="create-test-database" + description="Can be used to create the testdatabase if the platform supports it"> + <property file="${jdbc.properties.file}"/> + + <taskdef name="ddl2Database" + classname="org.apache.ddlutils.task.DdlToDatabaseTask" + classpathref="compilation-classpath"/> + <ddl2Database> + <database driverclassname="${datasource.driverClassName}" + url="${datasource.url}" + username="${datasource.username}" + password="${datasource.password}"/> + <createdatabase failonerror="true"/> + </ddl2Database> + </target> + + <!-- ================================================================== --> <!-- Runs the test cases --> <!-- ================================================================== --> <target name="junit"