Project

General

Profile

1
<?xml version="1.0"?>
2
<!--
3
  *   '$RCSfile$'
4
  *     Authors: Matt Jones, Chad Berkley, Jivka Bojilova
5
  *   Copyright: 2000 Regents of the University of California and the
6
  *              National Center for Ecological Analysis and Synthesis
7
  * For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *    '$Author: tao $'
10
  *    '$Date: 2003-04-24 15:19:18 -0700 (Thu, 24 Apr 2003) $'
11
  *    '$Revision: 1612 $'
12
  *
13
  * Build file for the Ant cross-platform build system for metacat
14
  * See http://jakarta.apache.org for details on Ant
15
  *
16
  * usage: ant [compile|jar|install|jdoc]
17
  *
18
  * This program is free software; you can redistribute it and/or modify
19
  * it under the terms of the GNU General Public License as published by
20
  * the Free Software Foundation; either version 2 of the License, or
21
  * (at your option) any later version.
22
  *
23
  * This program is distributed in the hope that it will be useful,
24
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
  * GNU General Public License for more details.
27
  *
28
  * You should have received a copy of the GNU General Public License
29
  * along with this program; if not, write to the Free Software
30
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
31
-->
32
<project name="metacat" default="jar" basedir=".">
33

    
34
   <target name="oracle">
35
     <!-- Customize these properties if you are using oracle -->
36
     <property name="jdbc-connect"
37
               value="jdbc:oracle:thin:@dev.nceas.ucsb.edu:1521:exp"/>
38
     <property name="dbDriver" value="oracle.jdbc.driver.OracleDriver"/>
39
     <property name="dbAdapter" value="edu.ucsb.nceas.dbadapter.OracleAdapter"/>
40
     <property name="oracle_home" value="/oracle01/app/oracle/product/8.1.6" />
41
     <property name="jdbc" value="${oracle_home}/jdbc/lib/classes111.zip" />
42
   </target>
43

    
44
   <target name="postgresql">
45
     <!-- Customize these properties if you are using postgres -->
46
     <property name="jdbc-connect"
47
               value="jdbc:postgresql://localhost/exp"/>
48
     <property name="dbDriver" value="org.postgresql.Driver"/>
49
     <property name="dbAdapter"
50
               value="edu.ucsb.nceas.dbadapter.PostgresqlAdapter"/>
51
     <property name="jdbc" value="/usr/share/pgsql/jdbc7.1-1.2.jar" />
52
   </target>
53

    
54
   <target name="config" depends="postgresql">
55
      <!-- Change the 'depends' attribute above to 'postgresql' to install
56
           metacat with postgres instead of oracle -->
57

    
58
      <!-- Customize these properties for your system -->
59
      <property name="tomcat" value="/usr/local/devtools/jakarta-tomcat" />
60
      <property name="webapps" value="/usr/local/devtools/jakarta-tomcat/webapps" />
61
      <property name="context" value="tao" />
62
      <property name="user" value="tao"/>
63
      <property name="password" value=""/>
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
      <property name="debuglevel" value="55" />
69
      <property name="forcereplicationwaitingtime" value="30000"/>
70
      <property name="cvsroot"
71
                value=":ext:tao@cvs.ecoinformatics.org:/cvs" />
72
      <property name="web-base-url"
73
                value="http://knb.ecoinformatics.org"/>
74
      <property name="default-style" value="knb" />
75
      <property name="morphosourcedir" value="../morpho" />
76
      <property name="defaultcontenttype" value="application/octet-stream" />
77

    
78
      <!-- Make sure these paths match the location of the jar files
79
           on your system, the defaults should usually work -->
80
      <property name="jsdk"
81
                value="${tomcat}/lib/common/servlet.jar" />
82
      <property name="xmlp"
83
                value="lib/xercesImpl.jar" />
84
      <property name="srb"
85
                value="lib/srbrmi" />
86
      <property name="cos"
87
                value="lib/cos.jar" />
88
      <property name="morpho"
89
                value="lib/morpho.jar" />
90
      <property name="xalan"
91
                value="lib/xalan/xalan.jar" />
92
      <property name="apis"
93
                value="lib/xalan/xml-apis.jar" />
94
      <property name="httpclient"
95
                value="${morphosourcedir}/lib/httpclient.jar" />
96
      <property name="itis"
97
                value="${morphosourcedir}/lib/itislib.jar" />
98
      <property name="emlparser"
99
                value="lib/eml.jar" />
100
      <property name="configxml"
101
                value="lib/configxml.jar" />
102
      <property name="itislib"
103
                value="lib/itislib.jar" />
104
      <property name="emlparser"
105
                value="lib/eml.jar" />
106
  </target>
107

    
108
   <target name="init" depends="config">
109
      <!-- It is less likely you'll need to make any changes from here down,
110
           but customization is possible -->
111
      <property name="installdir" value="${webapps}/${context}" />
112
      <property name="name" value="metacat"/>
113
      <property name="Name" value="MetaCat"/>
114
      <property name="debugprefix" value="${Name}:"/>
115
      <property name="release" value="1.2.1"/>
116
      <property name="replication-path"
117
                value="/${context}/servlet/replication"/>
118
      <property name="servlet-path" value="/${context}/servlet/metacat"/>
119
      <property name="html-path" value="/${context}"/>
120
      <property name="image-path" value="/${context}" />
121
      <property name="style-path" value="/${context}/style"/>
122
      <property name="replication-log" value="/tmp/metacatreplication.log"/>
123
      <property name="replicationerrorlog" value="/tmp/metacatreplication.err"/>
124
      <property name="config-dir" value="${installdir}" />
125
      <property name="eml-module" value="eml" />
126
      <property name="eml-version" value="2.0.0beta6" />
127
      <property name="eml-tag" value="RELEASE_EML_2_0_0_BETA_6_REV1" />
128
      <property name="eml2-tag" value="XALAN_STYLESHEET_CHANGES" />
129
      <property name="eml2namespace" value="eml://ecoinformatics.org/eml-2.0.0" />
130

    
131
      <property name="cpath"
132
                value="${xmlp}:${xalan}:${apis}:${jdbc}:${jsdk}:${srb}:${cos}:${morpho}:${emlparser}"/>
133

    
134
      <filter token="docrooturl" value="./" />
135
      <filter token="jdbc-connect" value="${jdbc-connect}"/>
136
      <filter token="dbDriver" value="${dbDriver}"/>
137
      <filter token="dbAdapter" value="${dbAdapter}"/>
138
      <filter token="install-dir" value="${installdir}"/>
139
      <filter token="server" value="${server}"/>
140
      <filter token="systemidserver" value="${systemidserver}"/>
141
      <filter token="replication-log" value="${replication-log}"/>
142
      <filter token="replicationerrorlog" value="${replicationerrorlog}"/>
143
      <filter token="release" value="${release}"/>
144
      <filter token="servlet-path" value="${servlet-path}"/>
145
      <filter token="html-path" value="${html-path}"/>
146
      <filter token="user" value="${user}"/>
147
      <filter token="password" value="${password}"/>
148
      <filter token="image-path" value="${image-path}"/>
149
      <filter token="style-path" value="${style-path}"/>
150
      <filter token="web-base-url" value="${web-base-url}"/>
151
      <filter token="replication-path" value="${replication-path}"/>
152
      <filter token="config-dir" value="${config-dir}"/>
153
      <filter token="default-style" value="${default-style}"/>
154
      <filter token="eml-version" value="${eml-version}"/>
155
      <filter token="eml2namespace" value="${eml2namespace}"/>
156
      <filter token="context" value="${context}"/>
157
      <filter token="forcereplicationwaitingtime" value="${forcereplicationwaitingtime}" />
158
      <filter token="debuglevel" value="${debuglevel}" />
159
      <filter token="datafilepath" value="${datafilepath}" />
160
      <filter token="inlinedatafilepath" value="${inlinedatafilepath}" />
161
      <filter token="defaultcontenttype" value="${defaultcontenttype}" />
162
      <filter token="debugprefix" value="${debugprefix}"/>
163

    
164
      <property name="srcdir" value="./src" />
165
      <property name="junittestsdir" value="./test/edu/ucsb/nceas/metacattest" />
166
      <property name="junitnettestsdir" value="./test/edu/ucsb/nceas/metacatnettest" />
167
      <property name="build.dir" value="./build"/>
168
      <property name="build.src" value="${build.dir}/src"/>
169
      <property name="build.dest" value="${build.dir}/classes"/>
170
      <property name="build.docs" value="${build.dir}/docs"/>
171
      <property name="build.samples" value="${build.dir}/samples"/>
172
      <property name="build.tests" value="${build.dir}/tests"/>
173
      <property name="build.metacattest" value="${build.tests}/metacattest"/>
174
      <property name="build.metacatnettest" value="${build.tests}/metacatnettest"/>
175
      <property name="build.data" value="${build.dir}/data"/>
176
      <property name="build.javadocs" value="${build.dir}/docs/api"/>
177
      <property name="build.img" value="${installdir}"/>
178

    
179
      <property name="dist.dir" value="dist"/>
180
      <property name="ver.dir" value="${dist.dir}/${name}-${release}"/>
181
      <property name="ver.src" value="${ver.dir}/src"/>
182

    
183
      <property name="package.home" value="edu/ucsb/nceas/metacat" />
184

    
185
   </target>
186

    
187
   <target name="prepare" depends="init">
188
      <mkdir dir="${build.dir}"/>
189
      <mkdir dir="${build.src}"/>
190
      <mkdir dir="${build.dest}"/>
191
      <mkdir dir="${build.javadocs}"/>
192

    
193
      <copy todir="${build.src}" filtering="yes">
194
        <fileset dir="${srcdir}">
195
          <include name="edu/**"/>
196
          <include name="com/**"/>
197
          <include name="**/*.sql"/>
198
          <exclude name="**/CVS*"/>
199
          <exclude name="**/.#*"/>
200
        </fileset>
201
      </copy>
202
   </target>
203

    
204
   <target name="compile" depends="prepare">
205
       <javac srcdir="${build.src}"
206
              destdir="${build.dest}"
207
              classpath="${cpath}"
208
              excludes="**/*.sql" />
209
       <copy file="lib/metacat.properties"
210
             tofile="${build.dest}/${package.home}/metacat.properties"
211
             filtering="yes" />
212
       <copy file="lib/srbProps.properties"
213
             tofile="${build.dest}/${package.home}/srbProps.properties"/>
214
   </target>
215

    
216
   <target name="jar" depends="compile">
217
       <delete file="${build.dir}/${name}.jar" />
218
       <copy todir="${build.dest}">
219
         <fileset dir="lib/srbrmi"/>
220
       </copy>
221
       <jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}"
222
            excludes="**/protocols/" />
223
   </target>
224

    
225
   <target name="protocol" depends="compile">
226
       <delete file="${build.dir}/protocol.jar" />
227
       <jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}"
228
            includes="**/protocols/" />
229
   </target>
230

    
231
   <target name="getdtdschema" depends="prepare">
232
     <echo>Enter CVS password: </echo>
233
     <cvs cvsRoot="${cvsroot}"
234
          package="${eml-module}"
235
          tag="${eml-tag}"
236
          dest="${build.src}" />
237
     <mkdir dir="lib/dtd" />
238
     <copy todir="lib/dtd" filtering="yes">
239
       <fileset dir="${build.src}/${eml-module}">
240
         <include name="*.dtd"/>
241
       </fileset>
242
       <mapper type="glob" from="eml-*.dtd" to="eml-*-${eml-version}.dtd" />
243
     </copy>
244
     <echo>Enter CVS password: </echo>
245
     <cvs cvsRoot="${cvsroot}"
246
          package="${eml-module}"
247
          tag="${eml2-tag}"
248
          dest="${build.src}" />
249
     <mkdir dir="lib/schema" />
250
     <copy todir="lib/schema" filtering="yes">
251
       <fileset dir="${build.src}/${eml-module}">
252
         <include name="*.xsd"/>
253
       </fileset>
254
     </copy>
255
     <copy todir="lib/style">
256
       <fileset dir="${build.src}/${eml-module}/style">
257
       <include name="*.xsl"/>
258
     </fileset>
259
     </copy>
260
   </target>
261

    
262
   <target name="getdtd" depends="prepare">
263
     <echo>Enter CVS password: </echo>
264
     <cvs cvsRoot="${cvsroot}"
265
          package="${eml-module}"
266
          tag="${eml-tag}"
267
          dest="${build.src}" />
268
     <mkdir dir="lib/dtd" />
269
     <copy todir="lib/dtd" filtering="yes">
270
       <fileset dir="${build.src}/${eml-module}">
271
         <include name="*.dtd"/>
272
       </fileset>
273
       <mapper type="glob" from="eml-*.dtd" to="eml-*-${eml-version}.dtd" />
274
     </copy>
275
   </target>
276

    
277
   <target name="getschema" depends="prepare">
278
     <echo>Enter CVS password: </echo>
279
     <cvs cvsRoot="${cvsroot}"
280
          package="${eml-module}"
281
          tag="${eml2-tag}"
282
          dest="${build.src}" />
283
     <mkdir dir="lib/schema" />
284
     <copy todir="lib/schema" filtering="yes">
285
       <fileset dir="${build.src}/${eml-module}">
286
         <include name="*.xsd"/>
287
       </fileset>
288
     </copy>
289
     <copy todir="lib/style">
290
       <fileset dir="${build.src}/${eml-module}/style">
291
       <include name="*.xsl"/>
292
     </fileset>
293
     </copy>
294
   </target>
295

    
296
   <target name="dtdschemasql" depends="prepare">
297
     <echo/>
298
     <echo>Registering the DTDs with the new Metacat instance...</echo>
299
     <sql driver="${dbDriver}"
300
          classpath="${jdbc}"
301
          url="${jdbc-connect}"
302
          userid="${user}"
303
          password="${password}"
304
          src="${build.src}/loaddtdschema.sql" />
305
   </target>
306
   
307
   <target name="schemasql" depends="prepare">
308
     <echo/>
309
     <echo>Registering the DTDs with the new Metacat instance...</echo>
310
     <sql driver="${dbDriver}"
311
          classpath="${jdbc}"
312
          url="${jdbc-connect}"
313
          userid="${user}"
314
          password="${password}"
315
          src="${build.src}/loadschema.sql" />
316
   </target>
317

    
318
   <target name="install" depends="jar">
319
       <mkdir dir="${datafilepath}" />
320
       <mkdir dir="${inlinedatafilepath}" />
321
       <chmod dir="${datafilepath}" perm="ug+w" />
322
       <mkdir dir="${installdir}/WEB-INF/lib" />
323
       <copy file="${build.dir}/${name}.jar"
324
             tofile="${installdir}/WEB-INF/lib/${name}.jar" />
325
       <copy file="${xmlp}"
326
             tofile="${installdir}/WEB-INF/lib/xercesImpl.jar" />
327
       <copy file="${xalan}"
328
             tofile="${installdir}/WEB-INF/lib/xalan.jar" />
329
       <copy file="${apis}"
330
             tofile="${installdir}/WEB-INF/lib/xml-apis.jar" />
331
       <copy file="${jdbc}"
332
             tofile="${installdir}/WEB-INF/lib/jdbc.jar" />
333
       <copy file="${cos}"
334
             tofile="${installdir}/WEB-INF/lib/cos.jar" />
335
       <copy file="${morpho}"
336
             tofile="${installdir}/WEB-INF/lib/morpho.jar" />
337
       <copy file="${emlparser}"
338
             tofile="${installdir}/WEB-INF/lib/eml.jar" />
339
       <copy file="${configxml}"
340
             tofile="${installdir}/WEB-INF/lib/configxml.jar" />
341
       <copy file="${itislib}"
342
             tofile="${installdir}/WEB-INF/lib/itislib.jar" />
343
       <copy file="lib/web.xml"
344
             tofile="${installdir}/WEB-INF/web.xml" />
345
       <copy todir="${build.img}" filtering="no">
346
         <fileset dir="lib">
347
           <include name="**/*.jpg"/>
348
           <include name="**/*.png"/>
349
           <include name="**/*.gif"/>
350
         </fileset>
351
       </copy>
352
       <copy todir="${installdir}" filtering="yes">
353
         <fileset dir="lib">
354
           <exclude name="*.jar"/>
355
           <exclude name="*.properties"/>
356
           <exclude name="web.xml"/>
357
           <exclude name="**/srbrmi*"/>
358
           <exclude name="**/*.jpg"/>
359
           <exclude name="**/*.png"/>
360
           <exclude name="**/*.gif"/>
361
         </fileset>
362
       </copy>
363
       <echo>
364
             ***********************************************************
365
              Remember to register the default DTDs by running the
366
              "${build.src}/loaddtd.sql script". This is most easily
367
              done by using the "ant dtdsql" which will run it for you.
368
             ***********************************************************
369
       </echo>
370
   </target>
371

    
372
   <target name="test" depends="install">
373
      <!-- copy and compile the tests into a jar file -->
374
      <mkdir dir="${build.metacattest}"/>
375
      <javac srcdir="${junittestsdir}"
376
             destdir="${build.metacattest}"
377
             classpath="${cpath}:${build.dir}/${name}.jar"
378
             debug="on"
379
       includes="**/*.java" />
380

    
381
      <jar jarfile="${build.dir}/${name}-junittests.jar"
382
        basedir="${build.metacattest}"
383
                includes="**/*.class" />
384

    
385
      <!-- use the ant "junit" task to run JUnit tests. -->
386
      <junit printsummary="yes" haltonfailure="no" fork="no"
387
             haltonerror="no">
388
        <classpath>
389
          <pathelement path="${cpath}:${build.dir}/${name}.jar:${build.dir}/${name}-junittests.jar" />
390
        </classpath>
391

    
392
        <formatter type="plain" />
393

    
394
        <batchtest fork="yes" todir="${build.dir}">
395
          <fileset dir="${build.metacattest}">
396
            <include name="**/*.class" />
397
          </fileset>
398
        </batchtest>
399
     </junit>
400
   </target>
401

    
402
    <target name="runonetest" depends="install">
403
      <!-- copy and compile the tests into a jar file -->
404
      <!--<property name="testtorun" value="SubTreeTest"/> -->
405
      <echo>testtorun: ${testtorun}</echo>
406
      <mkdir dir="${build.metacattest}"/>
407
      <javac srcdir="${junittestsdir}"
408
             destdir="${build.metacattest}"
409
             classpath="${cpath}:${build.dir}/${name}.jar"
410
       includes="**/*.java" />
411

    
412
      <jar jarfile="${build.dir}/${name}-junittests.jar"
413
        basedir="${build.metacattest}"
414
                includes="**/*.class" />
415

    
416
      <!-- use the ant "junit" task to run JUnit tests. -->
417
      <junit printsummary="yes" haltonfailure="no" fork="no"
418
             haltonerror="no">
419
        <classpath>
420
          <pathelement path="${cpath}:${build.dir}/${name}.jar:${build.dir}/${name}-junittests.jar" />
421
        </classpath>
422

    
423
        <formatter type="plain" />
424

    
425
        <batchtest fork="yes" todir="${build.dir}">
426
          <fileset dir="${build.metacattest}">
427

    
428
            <include name="**/${testtorun}.class" />
429
          </fileset>
430
        </batchtest>
431
     </junit>
432
   </target>
433

    
434
  <target name="gethttpclient" depends="prepare">
435
  <!--mkdir dir="${morphosourcedir}" -->
436
        <cvs cvsRoot="${cvsroot}"
437
             package="morpho"
438
             dest="." />
439
        <ant dir="${morphosourcedir}" inheritAll="false"  target="jar" />
440
   </target>
441

    
442
   <!-- run this target, we need to check out a another morpho souce dir was checked out. -->
443
   <target name="nettest" depends="install">
444
      <echo>***********************************
445
      Please run ant gethttpclient first!
446
      ***********************************
447
      </echo>
448
      <!-- copy and compile the tests into a jar file -->
449
      <mkdir dir="${build.metacatnettest}"/>
450
      <javac srcdir="${junitnettestsdir}"
451
             destdir="${build.metacatnettest}"
452
             classpath="${cpath}:${build.dir}/${name}.jar:${httpclient}"
453
             includes="**/*.java" />
454

    
455
      <jar jarfile="${build.dir}/${name}-junitnettests.jar"
456
                    basedir="${build.metacatnettest}"
457
                    includes="**/*.class" />
458

    
459
      <!-- use the ant "junit" task to run JUnit tests. -->
460
      <junit printsummary="yes" haltonfailure="no" fork="yes"
461
             haltonerror="no">
462
        <jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient" />
463
        <classpath>
464
          <pathelement path="${cpath}:${build.dir}/${name}.jar:${httpclient}:${build.dir}/${name}-junitnettests.jar:${itis}" />
465
        </classpath>
466

    
467
        <formatter type="plain" />
468

    
469
        <batchtest fork="yes" todir="${build.dir}">
470
          <fileset dir="${build.metacatnettest}">
471
            <include name="**/*.class" />
472
          </fileset>
473
        </batchtest>
474
     </junit>
475
   </target>
476

    
477
   <target name="servletclean" depends="clean">
478
     <delete dir="${installdir}" />
479
   </target>
480

    
481

    
482
   <target name="clean" depends="init">
483
       <delete dir="${build.dir}" />
484
   </target>
485

    
486
   <target name="jdoc" depends="prepare">
487
       <javadoc packagenames="edu.ucsb.nceas.*"
488
           sourcepath="${build.src}"
489
           destdir="${build.javadocs}"
490
           author="true"
491
           version="true"
492
           use="true"
493
           windowtitle="${Name} API"
494
           doctitle="&lt;h1&gt;${Name}&lt;/h1&gt;"
495
           bottom="&lt;i&gt;Copyright &#169; 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.&lt;/i&gt;"
496
       />
497
   </target>
498

    
499
   <target name="dist" depends="jar,protocol,jdoc,getdtd">
500
      <mkdir dir="${dist.dir}"/>
501
      <delete dir="${ver.dir}" />
502
      <mkdir dir="${ver.dir}"/>
503
      <copy todir="${ver.dir}">
504
        <fileset dir="."
505
            excludes="**/CVS* **/.#* **/src* **/test* **/build* **/docs* ${dist.dir}"/>
506
      </copy>
507
      <copy todir="${ver.dir}" file="build.xml"/>
508
      <copy todir="${ver.dir}/lib" file="${build.dir}/metacat.jar"/>
509
      <copy todir="${ver.dir}/lib" file="${build.dir}/protocol.jar"/>
510

    
511
      <copy todir="${ver.dir}/docs" filtering="yes">
512
        <fileset dir="docs" excludes="**/*gif **/*jpg **/*png" />
513
      </copy>
514
      <copy todir="${ver.dir}/docs" filtering="no">
515
        <fileset dir="docs" includes="**/*gif **/*jpg **/*png" />
516
      </copy>
517
      <copy todir="${ver.dir}/docs/dev">
518
        <fileset dir="${build.dir}/docs"/>
519
      </copy>
520
      <copy todir="${ver.dir}/src">
521
        <fileset dir="${build.dir}/src"/>
522
      </copy>
523

    
524
      <delete dir="./${ver.dir}/${build.dir}"/>
525
      <delete dir="./${ver.dir}/dist"/>
526
      <delete file="./${name}-${release}.zip"/>
527
      <zip zipfile="./${name}-${release}.zip" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
528
      <delete file="./${name}-${release}.tar.gz" />
529
      <tar tarfile="./${name}-${release}.tar" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
530
      <gzip zipfile="./${name}-${release}.tar.gz"
531
                src="./${name}-${release}.tar"/>
532
      <delete file="./${name}-${release}.tar" />
533
  </target>
534

    
535
  <target name="distsrc" depends="dist">
536
      <mkdir dir="${ver.src}"/>
537
      <copy todir="${ver.src}">
538
        <fileset dir="./src"/>
539
      </copy>
540

    
541
      <delete file="./${name}-src-${release}.zip"/>
542
      <zip zipfile="./${name}-src-${release}.zip" basedir="${dist.dir}"/>
543
      <delete file="./${name}-src-${release}.tar.gz" />
544
      <tar tarfile="./${name}-src-${release}.tar" basedir="${dist.dir}"/>
545
      <gzip zipfile="./${name}-src-${release}.tar.gz"
546
                src="./${name}-src-${release}.tar"/>
547
      <delete file="./${name}-src-${release}.tar" />
548
      <delete dir="${dist.dir}"/>
549
  </target>
550

    
551
</project>
(4-4/4)