Project

General

Profile

« Previous | Next » 

Revision 1570

Added by Jing Tao over 21 years ago

Add a new target schemasql. It will register eml2 namesapce into xml_catalog.

View differences:

build.xml
44 44
   <target name="postgresql">
45 45
     <!-- Customize these properties if you are using postgres -->
46 46
     <property name="jdbc-connect"
47
               value="jdbc:postgresql://localhost/metacat"/>
47
               value="jdbc:postgresql://localhost/exp"/>
48 48
     <property name="dbDriver" value="org.postgresql.Driver"/>
49 49
     <property name="dbAdapter"
50 50
               value="edu.ucsb.nceas.dbadapter.PostgresqlAdapter"/>
......
57 57

  
58 58
      <!-- Customize these properties for your system -->
59 59
      <property name="tomcat" value="/usr/local/devtools/jakarta-tomcat" />
60
      <property name="webapps" value="/opt/tomcat/webapps" />
61
      <property name="context" value="metacat" />
62
      <property name="user" value="berkley"/>
60
      <property name="webapps" value="/usr/local/devtools/jakarta-tomcat/webapps" />
61
      <property name="context" value="tao" />
62
      <property name="user" value="tao"/>
63 63
      <property name="password" value=""/>
64
      <property name="server" value="trestles.nceas.ucsb.edu:8080"/>
65
      <property name="systemidserver" value="http://trestles.nceas.ucsb.edu:8080" />
66
      <property name="datafilepath" value="/opt/tomcat/data/metacat/data" />
67
      <property name="inlinedatafilepath" value="/opt/tomcat/data/metacat/inlinedata" />
64
      <property name="server" value="pine.nceas.ucsb.edu:8443"/>
65
      <property name="systemidserver" value="http://pine.nceas.ucsb.edu:8080" />
66
      <property name="datafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/data" />
67
      <property name="inlinedatafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/inlinedata" />
68 68
      <property name="debuglevel" value="45" />
69 69
      <property name="forcereplicationwaitingtime" value="30000"/>
70 70
      <property name="cvsroot"
71
                value=":ext:berkley@cvs.ecoinformatics.org:/cvs" />
71
                value=":ext:tao@cvs.ecoinformatics.org:/cvs" />
72 72
      <property name="web-base-url"
73 73
                value="http://knb.ecoinformatics.org"/>
74 74
      <property name="default-style" value="knb" />
75 75
      <property name="morphosourcedir" value="../morpho" />
76
      <property name="defaultcontenttype" value="text/plain" />
76
      <property name="defaultcontenttype" value="application/octet-stream" />
77 77

  
78 78
      <!-- Make sure these paths match the location of the jar files
79 79
           on your system, the defaults should usually work -->
80 80
      <property name="jsdk"
81
                value="${tomcat}/common/lib/servlet.jar" />
81
                value="${tomcat}/lib/common/servlet.jar" />
82 82
      <property name="xmlp"
83 83
                value="lib/xercesImpl.jar" />
84 84
      <property name="srb"
......
124 124
      <property name="eml-version" value="2.0.0beta6" />
125 125
      <property name="eml-tag" value="RELEASE_EML_2_0_0_BETA_6_REV1" />
126 126
      <property name="eml2-tag" value="XALAN_STYLESHEET_CHANGES" />
127
      <property name="eml2namespace" value="eml://ecoinformatics.org/eml-2.0.0" />
127 128

  
128 129
      <property name="cpath"
129 130
                value="${xmlp}:${xalan}:${apis}:${jdbc}:${jsdk}:${srb}:${cos}:${morpho}:${emlparser}"/>
......
148 149
      <filter token="config-dir" value="${config-dir}"/>
149 150
      <filter token="default-style" value="${default-style}"/>
150 151
      <filter token="eml-version" value="${eml-version}"/>
152
      <filter token="eml2namespace" value="${eml2namespace}"/>
151 153
      <filter token="context" value="${context}"/>
152 154
      <filter token="forcereplicationwaitingtime" value="${forcereplicationwaitingtime}" />
153 155
      <filter token="debuglevel" value="${debuglevel}" />
......
267 269
          password="${password}"
268 270
          src="${build.src}/loaddtd.sql" />
269 271
   </target>
272
   
273
   <target name="schemasql" depends="prepare">
274
     <echo/>
275
     <echo>Registering the DTDs with the new Metacat instance...</echo>
276
     <sql driver="${dbDriver}"
277
          classpath="${jdbc}"
278
          url="${jdbc-connect}"
279
          userid="${user}"
280
          password="${password}"
281
          src="${build.src}/loadschema.sql" />
282
   </target>
270 283

  
271 284
   <target name="install" depends="jar">
272 285
       <mkdir dir="${datafilepath}" />

Also available in: Unified diff