Project

General

Profile

« Previous | Next » 

Revision 806

Added by Matt Jones over 23 years ago

Updated build.xml with new targets to create metacat distributions.
Run "ant dist" to create a non-source distribution and "ant distsrc"
to create a source distribution. Best if this is run on a clean
checkout to be sure not to include extraneous files that are not in CVS.

View differences:

build.xml
36 36
      <property name="installdir" value="/opt/tomcat/webapps/jones" />
37 37
      <property name="name" value="metacat"/>
38 38
      <property name="Name" value="MetaCat"/>
39
      <property name="release" value="1.0beta1"/>
39
      <property name="release" value="1.0beta2"/>
40 40
      <property name="web-base-url" 
41 41
                value="http://www.nceas.ucsb.edu/collab/2840/knbweb"/>
42 42
      <property name="replication-path" value="//servlet/replication"/>
......
71 71
      <property name="build.samples" value="${build.dir}/samples"/>
72 72
      <property name="build.tests" value="${build.dir}/tests"/>
73 73
      <property name="build.data" value="${build.dir}/data"/>
74
      <property name="build.javadocs" value="${build.dir}/docs/apiDocs"/>
74
      <property name="build.javadocs" value="${build.dir}/docs/api"/>
75 75
      <property name="build.img" value="/opt/httpd/html${image-path}"/>
76 76

  
77
      <property name="dist.dir" value="./dist"/>
78
      <property name="ver.dir" value="${dist.dir}/${name}-${release}"/>
79
      <property name="ver.src" value="${ver.dir}/src"/>
80

  
77 81
      <property name="oracle_home" 
78 82
                value="/oracle01/app/oracle/product/8.1.6" />
79 83
      <property name="toolsdir" 
......
180 184
       />
181 185
   </target>
182 186

  
187
   <target name="dist" depends="jar,protocol,jdoc">
188
      <mkdir dir="${dist.dir}"/>
189
      <delete dir="${ver.dir}" />
190
      <mkdir dir="${ver.dir}"/>
191
      <copy todir="${ver.dir}">
192
        <fileset dir="." excludes="**/CVS* **/.#* **/src* **/test* **/build*"/>
193
      </copy>
194
      <copy todir="${ver.dir}" file="build.xml"/>
195
      <copy todir="${ver.dir}/lib" file="${build.dir}/metacat.jar"/>
196
      <copy todir="${ver.dir}/lib" file="${build.dir}/protocol.jar"/>
197
      <copy todir="${ver.dir}/docs/dev">
198
        <fileset dir="${build.dir}/docs"/>
199
      </copy>
200
       
201
      <delete file="./lib/${name}-${release}.zip"/>
202
      <zip zipfile="./lib/${name}-${release}.zip" basedir="${dist.dir}"/>
203
      <delete file="./lib/${name}-${release}.tar.gz" />
204
      <tar tarfile="./lib/${name}-${release}.tar" basedir="${dist.dir}"/>
205
      <gzip zipfile="./lib/${name}-${release}.tar.gz" 
206
                src="./lib/${name}-${release}.tar"/>
207
      <delete file="./lib/${name}-${release}.tar" />
208
  </target> 
209

  
210
  <target name="distsrc" depends="dist">
211
      <mkdir dir="${ver.src}"/>
212
      <copy todir="${ver.src}">
213
        <fileset dir="./src"/>
214
      </copy>
215

  
216
      <delete file="./lib/${name}-src-${release}.zip"/>
217
      <zip zipfile="./lib/${name}-src-${release}.zip" basedir="${dist.dir}"/>
218
      <delete file="./lib/${name}-src-${release}.tar.gz" />
219
      <tar tarfile="./lib/${name}-src-${release}.tar" basedir="${dist.dir}"/>
220
      <gzip zipfile="./lib/${name}-src-${release}.tar.gz" 
221
                src="./lib/${name}-src-${release}.tar"/>
222
      <delete file="./lib/${name}-src-${release}.tar" />
223
  </target> 
224

  
183 225
</project>

Also available in: Unified diff