[jira] Updated: (LOOM-16) Sar extraction control

jira-yCVjj/[email protected] Wed, 14 Apr 2004 20:49:42 -0400 (EDT)
Newsgroups gmane.comp.java.jcontainer.interest
Message-ID <[email protected]>
The following issue has been updated:

    Updater: peter royal (mailto:[email protected])
       Date: Wed, 14 Apr 2004 8:47 PM
    Changes:
             Fix Version changed to future
             Fix Version changed from 1.1
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=LOOM-16&page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=LOOM-16

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: LOOM-16
    Summary: Sar extraction control
       Type: New Feature

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: loom
   Fix Fors:
             future

   Assignee: 
   Reporter: Mauro Talevi

    Created: Thu, 31 Jul 2003 6:40 PM
    Updated: Wed, 14 Apr 2004 8:47 PM

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

In 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.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira