org.apache.directory.daemon.installers.rpm
Class RpmInstallerCommand

java.lang.Object
  extended by org.apache.directory.daemon.installers.MojoCommand
      extended by org.apache.directory.daemon.installers.rpm.RpmInstallerCommand

public class RpmInstallerCommand
extends MojoCommand

The IzPack installer command.

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

Field Summary
 
Fields inherited from class org.apache.directory.daemon.installers.MojoCommand
dependencyMap, mymojo
 
Constructor Summary
RpmInstallerCommand(ServiceInstallersMojo mymojo, RpmTarget target)
           
 
Method Summary
 void execute()
          Performs the following: Bail if target is not for linux or current machine is not linux (no rpm builder) Filter and copy project supplied spec file into place if it has been specified and exists If no spec file exists filter and deposite into place bundled spec template Bail if we cannot find the rpm builder executable Execute rpm build on the filtered spec file
 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

RpmInstallerCommand

public RpmInstallerCommand(ServiceInstallersMojo mymojo,
                           RpmTarget target)
Method Detail

getFilterProperties

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

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Performs the following:
  1. Bail if target is not for linux or current machine is not linux (no rpm builder)
  2. Filter and copy project supplied spec file into place if it has been specified and exists
  3. If no spec file exists filter and deposite into place bundled spec template
  4. Bail if we cannot find the rpm builder executable
  5. Execute rpm build on the filtered spec file

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


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