org.apache.directory.daemon.installers.archive
Class ArchiveInstallerCommand

java.lang.Object
  extended by org.apache.directory.daemon.installers.MojoCommand
      extended by org.apache.directory.daemon.installers.archive.ArchiveInstallerCommand

public class ArchiveInstallerCommand
extends MojoCommand

Archive Installer command for any platform.

Version:
$Rev: 434414 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.daemon.installers.MojoCommand
dependencyMap, mymojo
 
Constructor Summary
ArchiveInstallerCommand(ServiceInstallersMojo mymojo, ArchiveTarget target)
          Creates a new instance of ArchiveInstallerCommand.
 
Method Summary
 void copyFiles(java.io.File src, java.io.File dest)
          Recursively copy files from the given source to the given destination.
 void execute()
          Performs the following: Bail if the archive type is unknown Creates the Archive Installer for Apache DS
 java.util.Properties getFilterProperties()
           
 
Methods inherited from class org.apache.directory.daemon.installers.MojoCommand
processPackagedFiles, reportProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveInstallerCommand

public ArchiveInstallerCommand(ServiceInstallersMojo mymojo,
                               ArchiveTarget target)
Creates a new instance of ArchiveInstallerCommand.

Parameters:
mymojo - the Server Installers Mojo
target - the target
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Performs the following:
  1. Bail if the archive type is unknown
  2. Creates the Archive Installer for Apache DS

Specified by:
execute in class MojoCommand
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

copyFiles

public void copyFiles(java.io.File src,
                      java.io.File dest)
               throws java.io.IOException
Recursively copy files from the given source to the given destination.

Parameters:
src - the source
dest - the destination
Throws:
java.io.IOException - If an error occurs when copying a file

getFilterProperties

public java.util.Properties getFilterProperties()
Specified by:
getFilterProperties in class MojoCommand


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.