Java archive file updates
One or more ++JARUPDs may be processed for a single Java™ Archive (JAR) file, and the ++JARUPDs for that JAR file are processed in the order implied by the processing order of the SYSMODs which contain the ++JARUPDs. That is, if a SYSMOD contains a ++JARUPD and specifies a prerequisite for another SYSMOD that contains a ++JARUPD for the same JAR file, then the ++JARUPD from the prerequisite SYSMOD is processed first. If no processing order can be implied from the containing SYSMODs, then no particular order of processing for the ++JARUPDs is assumed.
Following are the steps required to process one or more ++JARUPDs for a single JAR file:
- Create the primary temporary work directory in the SMPWKDIR directory for processing all ++JAR and ++JARUPD elements. If the SMPWKDIR directory is not specified on a DD statement or DDDEF entry, SMP/E will use the /tmp directory.
- Copy the JAR file to be updated into the primary temporary work directory.
- Create an update subdirectory for processing the ++JARUPD elements for this JAR file.
- Copy a ++JARUPD element to the primary temporary work directory.
- Extract the component files from the ++JARUPD element into the update subdirectory.
- Repeat steps 4 through 5 for each ++JARUPD to be processed for this JAR file.
- Update the JAR file with the component files from all the ++JARUPD elements.
- Cleanup the ++JARUPD elements and all component files in the update subdirectory.
- Copy the updated JAR file into its distribution directory.