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-06-30 13:23:17 -0700 (Mon, 30 Jun 2003) $'
11
  *    '$Revision: 1702 $'
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="35" />
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
          <exclude name="edu/ucsb/nceas/metacat/harvesterClient/*.*"/>
201
        </fileset>
202
      </copy>
203
   </target>
204

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

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

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

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

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

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

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

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

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

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

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

    
393
        <formatter type="plain" />
394

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

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

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

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

    
424
        <formatter type="plain" />
425

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

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

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

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

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

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

    
468
        <formatter type="plain" />
469

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

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

    
482

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

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

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

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

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

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

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

    
552
   <target name="stylesheettest">
553
     <xslt in="${input}" out="eml.html" style="lib/style/eml2/eml-2.0.0.xsl">
554
      <param name="displaymodule" expression="${displaymodule}"/>
555
      <param name="docid" expression="${input}"/>
556
      <param name="entitytype" expression="${entitytype}"/>
557
      <param name="entityindex" expression="${entityindex}"/>
558
      <outputproperty name="method" value="html"/>
559
      <outputproperty name="standalone" value="yes"/>
560
      <outputproperty name="encoding" value="iso8859_1"/>
561
      <outputproperty name="indent" value="yes"/>
562
    </xslt>
563
  </target>
564
  
565
</project>
(4-4/4)