Project

General

Profile

« Previous | Next » 

Revision 586

Added by berkley almost 24 years ago

added ant substitution for server and replication-log

View differences:

build.xml
19 19
      <property name="name" value="metacat"/>
20 20
      <property name="Name" value="MetaCat"/>
21 21
      <property name="release" value="1.0a8"/>
22
      <property name="web-base-url" 
23
                value="http://www.nceas.ucsb.edu/collab/2840/knbweb"/>
22
      <property name="web-base-url" value="http://www.nceas.ucsb.edu/collab/2840/knbweb"/>
24 23
      <property name="replication-path" value="/metadata/servlet/replication"/>
25 24
      <property name="servlet-path" value="/metadata/servlet/metacat"/>
26 25
      <property name="html-path" value="/metadata"/>
27 26
      <property name="image-path" value="/img/metadata" />
27
      <property name="server" value="dev.nceas.ucsb.edu"/>
28
      <property name="replication-log" value="/home/computer/berkley/xmltodb/logs/metacatreplication.log"/>
28 29
      <property name="user" value="metadata"/>
29 30
      <property name="password" value="your-pw-goes-here"/>
30 31

  
32
      <filter token="server" value="${server}"/>
33
      <filter token="replication-log" value="${replication-log}"/>
31 34
      <filter token="release" value="${release}"/>
32 35
      <filter token="servlet-path" value="${servlet-path}"/>
33 36
      <filter token="html-path" value="${html-path}"/>
......
99 102
   <target name="jar" depends="compile">
100 103
       <delete file="${build.dir}/${name}.jar" />
101 104
       <copydir src="lib/srbrmi" dest="${build.dest}" />
102
       <jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}"
103
            excludes="**/protocols/" />
105
       <jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" />
104 106
   </target> 
105 107

  
106
   <target name="protocol" depends="compile">
107
       <delete file="${build.dir}/protocol.jar" />
108
       <jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}"
109
            includes="**/protocols/" />
110
   </target> 
111

  
112 108
   <target name="install" depends="jar">
113 109
       <mkdir dir="${installdir}/WEB-INF/lib" />
114 110
       <copyfile src="${build.dir}/${name}.jar" 

Also available in: Unified diff