Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6236303

Improve time it takes to create source bundles

XMLWordPrintable

    • b28
    • generic
    • generic

      The nightly builds seem to take up an excessive amount of time
      creating source bundles. Repeated find commands over the source
      tree and using tar to move directories may not be the fastest way
      to move bits from one machine ot disk partition to another.

      Here are some tips:

      If the workspace is up-to-date (workspace updatenames used or the
      workspace only gets new files with bringover/putback) then the
      nametable is effectively a list of all files SCCS'd into a workspace.
      Use this to get a list of all files in a workspace:

      cd ${workspace}
      cut -d' ' -f1 Codemgr_wsdata/nametable | \
          egrep -v '^VERSION' \
          egrep -v '^deleted_files' \
          egrep -v '^Codemgr_wsdata' > filelist

      Then this can be filtered quickly and then used as input to zip:

      rm -f -r ${destination}
      mkdir ${destination}
      (cd ${workspace} ; cat filelist | zip -q ${destination}/allfiles.zip -@ )
      (cd ${destination}; unzip -q -u -o allfiles.zip ; rm allfiles.zip)


      This use of zip sends compressed bits to the destination disk.

      If multiple source bundles are created, they should be created in parallel
      if possible.
      ###@###.### 2005-03-04 17:10:44 GMT

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: