Revision 1827
Added by Matt Jones over 20 years ago
build.xml | ||
---|---|---|
75 | 75 |
|
76 | 76 |
<!-- Customize these properties for your system --> |
77 | 77 |
<property name="tomcat" value="/usr/local/devtools/jakarta-tomcat" /> |
78 |
<property name="webapps" value="/usr/local/devtools/jakarta-tomcat/webapps" />
|
|
78 |
<property name="webapps" value="${tomcat}/webapps" />
|
|
79 | 79 |
<property name="context" value="tao" /> |
80 | 80 |
<property name="user" value="knb"/> |
81 | 81 |
<property name="password" value="tdataint"/> |
... | ... | |
90 | 90 |
<property name="tomcatversion" value="tomcat4"/> |
91 | 91 |
|
92 | 92 |
<property name="server" value="pine.nceas.ucsb.edu:8080"/> |
93 |
<property name="systemidserver" value="http://pine.nceas.ucsb.edu:8080" />
|
|
93 |
<property name="systemidserver" value="http://${server}" />
|
|
94 | 94 |
<property name="datafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/data" /> |
95 | 95 |
<property name="inlinedatafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/inlinedata" /> |
96 |
<property name="debug" value="on" /> |
|
96 | 97 |
<property name="debuglevel" value="55" /> |
97 | 98 |
|
98 | 99 |
<property name="forcereplicationwaitingtime" value="30000"/> |
... | ... | |
245 | 246 |
<javac srcdir="${build.src}" |
246 | 247 |
destdir="${build.dest}" |
247 | 248 |
classpath="${cpath}" |
249 |
debug="${debug}" |
|
248 | 250 |
excludes="**/*.sql **/stringclient/** **/client/*.java"/> |
249 | 251 |
<copy file="lib/metacat.properties" |
250 | 252 |
tofile="${build.dest}/${package.home}/metacat.properties" |
... | ... | |
375 | 377 |
src="${build.src}/loadschema.sql" /> |
376 | 378 |
</target> |
377 | 379 |
|
380 |
<target name="installdb" depends="prepare"> |
|
381 |
<echo/> |
|
382 |
<echo>Installing the database tables...</echo> |
|
383 |
<sql driver="${dbDriver}" |
|
384 |
classpath="${jdbc}:${jdbc-add1}:${jdbc-add2}" |
|
385 |
url="${jdbc-connect}" |
|
386 |
userid="${user}" |
|
387 |
password="${password}" |
|
388 |
src="${build.src}/xmltables.sql" /> |
|
389 |
</target> |
|
390 |
|
|
391 |
<target name="upgrade12" depends="prepare"> |
|
392 |
<echo/> |
|
393 |
<echo>Updating the database tables to upgrade to version 1.2...</echo> |
|
394 |
<sql driver="${dbDriver}" |
|
395 |
classpath="${jdbc}:${jdbc-add1}:${jdbc-add2}" |
|
396 |
url="${jdbc-connect}" |
|
397 |
userid="${user}" |
|
398 |
password="${password}" |
|
399 |
src="${build.src}/upgrade-db-to-1.2.sql" /> |
|
400 |
</target> |
|
401 |
|
|
402 |
<target name="upgrade13" depends="prepare"> |
|
403 |
<echo/> |
|
404 |
<echo>Updating the database tables to upgrade to version 1.3...</echo> |
|
405 |
<sql driver="${dbDriver}" |
|
406 |
classpath="${jdbc}:${jdbc-add1}:${jdbc-add2}" |
|
407 |
url="${jdbc-connect}" |
|
408 |
userid="${user}" |
|
409 |
password="${password}" |
|
410 |
src="${build.src}/upgrade-db-to-1.3.sql" /> |
|
411 |
</target> |
|
412 |
|
|
378 | 413 |
<target name="installCommon" depends="jar"> |
379 | 414 |
<mkdir dir="${datafilepath}" /> |
380 | 415 |
<mkdir dir="${inlinedatafilepath}" /> |
Also available in: Unified diff
Renamed the upgrade sql files to more understandable names, updated the
build file to include some new targets for running these files, and
updated the installation docs to clarify which upgrade scripts need to
be run and when.