Uploaded image for project: 'Avalon Phoenix'
  1. Avalon Phoenix
  2. PNIX-40

Extraction control

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1
    • None
    • Deployer
    • None

    Description

      Users need to be able to control exactly how artefacts in .sar are extracted, updated, deleted etc. The best way is to allow the user to specify a new configuration file such as;

      SAR-INF/filesystem.xml

      Int it we would contain a list of file filesets and associated actions to take with the filesets. Some example actions include;

      • extract to temporary work directory when deployed
      • extract to base directory of application
      • when upgrading a .sar (ie .sar is newer) then extract this
      • when upgrading a .sar (ie .sar is newer) then extract this if and only if there is no corresponding file with a modify time greater than file in .sar file

      A sample descriptor may be

      <filesystem version="1.0">

      <extractToBaseDir>
      <fileset dir="SAR-INF">
      <include name="*.xml"/>
      </fileset>
      <fileset dir=".">
      <exclude name="SAR-INF/**"/>
      </fileset>
      </extractToBaseDir>

      <extractToWorkDir>
      <fileset dir=".">
      <include name="SAR-INF//*"/>
      </fileset>
      </extractToWorkDir>

      </filesystem>

      You can use the PatternMatcher from Spice to perform the pattern matching.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pdonald Peter Donald
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: