Class ExtractData

  • All Implemented Interfaces:
    ExecutableCliCommand

    public class ExtractData
    extends Object
    implements ExecutableCliCommand
    Extracts the data from $APPNG_HOME to $appngData.
    This includes moving
    • WEB-INF/web.xml to $appngData/WEB-INF/web.xml
    • WEB-INF/conf to $appngData/conf
    • WEB-INF/bin to $appngData/bin
    • WEB-INF/logs to $appngData/logs
    • /applications to $appngData/applications
    • /repository to $appngData/repository
    .

    Additionally, a <Resources> element is being added to $APPNG_HOME/META-INF/context.xml, referencing the appngData directory.

     Usage: extract-data [options]
       Options:
       * -appngData
           The folder to extract the data to.
         -copy
           Copy data instead of moving.
           Default: false 
         -revert
           Revert previously extracted data.
           Default: false
     
    Author:
    Matthias Müller