Author: jeff.yuchang
Date: 2010-01-15 06:52:24 -0500 (Fri, 15 Jan 2010)
New Revision: 463
Modified:
trunk/distribution/src/main/release/db/build.xml
Log:
* add copying ojdbc in the db module build script.
Modified: trunk/distribution/src/main/release/db/build.xml
===================================================================
--- trunk/distribution/src/main/release/db/build.xml 2010-01-15 11:32:02 UTC (rev 462)
+++ trunk/distribution/src/main/release/db/build.xml 2010-01-15 11:52:24 UTC (rev 463)
@@ -6,18 +6,26 @@
<property name="database" value="postgres" />
<property file="jdbc/${database}.properties" />
+
+ <condition property="is.ojdbc.available">
+ <available file="${basedir}/../../libs/ojdbc14.jar" />
+ </condition>
<!-- ### LOG PROPERTIES ################################################# -->
<target name="log.properties">
<echo message="database....... ${database}" />
<echo message="jdbc driver.... ${driver}" />
<echo message="connection url....... ${connection.url}" />
- <echo message="username.. ${username}" />
- </target>
+ <echo message="username.. ${username}" />
+ </target>
+
+ <target name="copy.ojdbc" if="is.ojdbc.available">
+ <copy file="${basedir}/../../libs/ojdbc14.jar"
todir="${basedir}/drivers"/>
+ </target>
<!-- ### CREATE RiftSaw SCHEMA ############################################# -->
<target name="create.riftsaw.schema"
- depends="log.properties"
+ depends="log.properties, copy.ojdbc"
description="creates the riftsaw tables in the database">
<sql driver="${driver}"
url="${connection.url}"
@@ -35,7 +43,7 @@
<!-- ### DROP RiftSaw SCHEMA ############################################### -->
<target name="drop.riftsaw.schema"
- depends="log.properties"
+ depends="log.properties, copy.ojdbc"
description="drops the riftsaw tables from the database">
<sql driver="${driver}"
url="${connection.url}"
Show replies by date