db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject using ij in an ant task to create a database and nothing else
Date Sat, 13 Jun 2009 00:04:06 GMT
Someone asked me today how to create a database with ij in an ant task 
by just using ij.database if they don't have any script to execute.  He 
had implemented the following workaround to create a temporary file with 
just "quit;" in it.

 <tempfile property="${TEMP_DIR}/quit.file"/>
        <echo file="${TEMP_DIR}/quit.file" message="quit;"/>
        <java classname="org.apache.derby.tools.ij" fork="true" 
failonerror="${common.failonerror}" dir="${TEMP_DIR}">
            <jvmarg value="-Dij.protocol=jdbc:derby:" />
            <jvmarg value="-Dij.database=${DB_URL_EXEC};create=true" />
            <arg value="${TEMP_DIR}/quit.file" />

But it seems like there should be a way to do this without creating the 
temporary file.  ideas?



View raw message