org.apache.directory.daemon.installers
Class MojoHelperUtils

java.lang.Object
  extended byorg.apache.directory.daemon.installers.MojoHelperUtils

public class MojoHelperUtils
extends java.lang.Object

Some helper/utility methods for this plugin.

Version:
$Rev: 434414 $
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 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


Copyright © 2004-2007 null. All Rights Reserved.