Revision 2610
Added by Jing Tao about 19 years ago
build.xml | ||
---|---|---|
101 | 101 |
<property name="dbDriver" value="org.postgresql.Driver"/> |
102 | 102 |
<property name="dbAdapter" |
103 | 103 |
value="edu.ucsb.nceas.dbadapter.PostgresqlAdapter"/> |
104 |
<property name="jdbc" value="lib/jdbc7.1-1.2.jar" /> |
|
104 |
<property name="jdbc-jar-name" value="postgresql-8.0-312.jdbc3.jar" /> |
|
105 |
<property name="jdbc" value="lib/${jdbc-jar-name}" /> |
|
105 | 106 |
<!-- Property to indicate is not MSSQL installation--> |
106 | 107 |
<property name="other" value="yes"/> |
107 | 108 |
<property name="install-sql" |
... | ... | |
851 | 852 |
<mkdir dir="${war.lib}" /> |
852 | 853 |
<mkdir dir="${war.webinf}" /> |
853 | 854 |
<mkdir dir="${war.context}" /> |
854 |
|
|
855 |
|
|
856 |
<copy file="${jdbc}" tofile="${war.lib}/jdbc.jar" /> |
|
855 | 857 |
<copy file="${build.dir}/${name}.jar" todir="${war.lib}" /> |
856 | 858 |
<copy file="${build.dir}/${name}-client.jar" todir="${war.lib}" /> |
857 | 859 |
<copy file="${build.dir}/harvester.jar" todir="${war.lib}" /> |
858 | 860 |
<copy todir="${war.lib}" filtering="no"> |
859 | 861 |
<fileset dir="lib"> |
860 |
<include name="*.jar"/> |
|
862 |
<not> |
|
863 |
<filename name="${jdbc-jar-name}"/> |
|
864 |
</not> |
|
865 |
<include name="*.jar"/> |
|
861 | 866 |
</fileset> |
862 | 867 |
<fileset dir="lib/xalan"> |
863 | 868 |
<include name="*.jar"/> |
Also available in: Unified diff
Add the copy command for jdbc to war file. Otherwise in oracle, the servlet couldn't find jdbc driver.