org.apache.directory.daemon.installers
Class MojoHelperUtils

java.lang.Object
  extended by org.apache.directory.daemon.installers.MojoHelperUtils

public class MojoHelperUtils
extends java.lang.Object

Some helper/utility methods for this plugin.

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

Constructor Summary
MojoHelperUtils()
           
 
Method Summary
static void copyAsciiFile(ServiceInstallersMojo mymojo, java.util.Properties filterProperties, java.io.File from, java.io.File to, boolean filtering)
           
static void copyAsciiFile(ServiceInstallersMojo mymojo, java.util.Properties filterProperties, java.io.InputStream from, java.io.File to, boolean filtering)
           
static void copyBinaryFile(java.io.InputStream from, java.io.File to)
           
static java.util.List copyDependencies(ServiceInstallersMojo mymojo, org.apache.directory.daemon.InstallationLayout layout)
           
static void copyFiles(java.io.File src, java.io.File dest)
          Recursively copy files from the given source to the given destination.
static void exec(java.lang.String[] cmd, java.io.File workDir, boolean doSudo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MojoHelperUtils

public MojoHelperUtils()
Method Detail

copyBinaryFile

public static void copyBinaryFile(java.io.InputStream from,
                                  java.io.File to)
                           throws java.io.IOException
Throws:
java.io.IOException

copyAsciiFile

public static void copyAsciiFile(ServiceInstallersMojo mymojo,
                                 java.util.Properties filterProperties,
                                 java.io.InputStream from,
                                 java.io.File to,
                                 boolean filtering)
                          throws java.io.IOException
Throws:
java.io.IOException

copyAsciiFile

public static void copyAsciiFile(ServiceInstallersMojo mymojo,
                                 java.util.Properties filterProperties,
                                 java.io.File from,
                                 java.io.File to,
                                 boolean filtering)
                          throws java.io.IOException
Throws:
java.io.IOException

copyDependencies

public static java.util.List copyDependencies(ServiceInstallersMojo mymojo,
                                              org.apache.directory.daemon.InstallationLayout layout)
                                       throws org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoFailureException

exec

public static void exec(java.lang.String[] cmd,
                        java.io.File workDir,
                        boolean doSudo)
                 throws org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoFailureException

copyFiles

public static 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


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