Project

General

Profile

« Previous | Next » 

Revision 2318

Added by Matt Jones over 20 years ago

Added dependency check for eml so that the schemas and dtds are not
checked out of CVS if they already exist in the lib directory. This is
based on checking for the key schema or dtd file from the 2.0.0beta6,
2.0.0, and 2.0.1 releases, so if you've messed with this directory in
other ways it won't get picked up. But this allows the distribution to
build more cleanly and other builds to be faster.

View differences:

build.xml
294 294
          <not><available file="lib/utilities.jar"/></not>
295 295
        </or>
296 296
      </condition>
297
      <condition property="eml.required">
298
        <or>
299
          <not><available file="lib/schema/eml-2.0.1/eml.xsd"/></not>
300
          <not><available file="lib/schema/eml-2.0.0/eml.xsd"/></not>
301
          <not><available file="lib/dtd/eml-dataset-2.0.0beta6.dtd"/></not>
302
        </or>
303
      </condition>
297 304
   </target>
298 305

  
299 306
   <target name="prepare" depends="init">
......
379 386
            includes="**/metacat/harvesterClient/" />
380 387
   </target>
381 388

  
382
   <target  name="geteml" depends="getemlpre2,geteml2+"
389
   <target  name="geteml" depends="getemlpre2,geteml2+" if="eml.required"
383 390
            description="Calls getemlpre2 and geteml2+ targets" />
384 391

  
385
   <target name="getemlpre2" depends="prepare"
392
   <target name="getemlpre2" depends="prepare" if="eml.required"
386 393
   description="Checks EML-beta6 out of cvs and copies dtds and xsl to your metacat cvs sandbox">
387 394
     <echo>Enter CVS password: </echo>
388 395
     <cvs cvsRoot="${cvsroot}"
......
404 411
     </copy>
405 412
   </target>
406 413

  
407
   <target name="geteml2+" depends="prepare"
414
   <target name="geteml2+" depends="prepare" if="eml.required"
408 415
   description="Checks eml-2 out of cvs and copies schema and xsl to your metacat cvs sandbox">
409 416
     <echo>Enter CVS password: </echo>
410 417
     <cvs cvsRoot="${cvsroot}"

Also available in: Unified diff