Package org.apache.directory.server

Examples of org.apache.directory.server.InstallationLayout


     */
    protected void createInstallationLayout( boolean includeWrapperDependencies ) throws MojoFailureException,
        IOException
    {
        // Getting the installation layout and creating directories
        InstallationLayout installationLayout = getInstallationLayout();
        installationLayout.mkdirs();

        // Copying dependencies artifacts to the lib folder of the installation layout
        MojoHelperUtils.copyDependencies( mojo, installationLayout, includeWrapperDependencies );

        // Copying the LICENSE and NOTICE files
        MojoHelperUtils.copyBinaryFile(
            getClass().getResourceAsStream( "/org/apache/directory/server/installers/LICENSE" ),
            new File( installationLayout.getInstallationDirectory(), "LICENSE" ) );
        MojoHelperUtils.copyBinaryFile(
            getClass().getResourceAsStream( "/org/apache/directory/server/installers/NOTICE" ),
            new File( installationLayout.getInstallationDirectory(),
                "NOTICE" ) );

        // Copying the 'apacheds' shell script (only for Linux, Solaris or Mac OS X)
        if ( target.isOsNameLinux() || target.isOsNameSolaris() || target.isOsNameMacOSX() )
        {
            MojoHelperUtils.copyAsciiFile( mojo, filterProperties,
                getClass().getResourceAsStream( "/org/apache/directory/server/installers/apacheds" ),
                new File( installationLayout.getBinDirectory(), "apacheds" ), true );

            MojoHelperUtils.exec( new String[]
                { "chmod", "755", "apacheds" }, installationLayout.getBinDirectory(), false );
        }

        // Copying the wrappers files (native wrapper executable and library [.jnilib, .so, .dll])
        copyWrapperFiles();

        // Copying the wrapper configuration file
        MojoHelperUtils.copyAsciiFile( mojo, filterProperties,
            getClass()
                .getResourceAsStream( "/org/apache/directory/server/installers/wrapper-installation.conf" ),
            new File( installationLayout.getConfDirectory(), "wrapper.conf" ), true );
    }
View Full Code Here


     * @return
     *      the installation layout
     */
    protected InstallationLayout getInstallationLayout()
    {
        return new InstallationLayout( getInstallationDirectory() );
    }
View Full Code Here

     */
    protected void createInstallationLayout( boolean includeWrapperDependencies ) throws MojoFailureException,
        IOException
    {
        // Getting the installation layout and creating directories
        InstallationLayout installationLayout = getInstallationLayout();
        installationLayout.mkdirs();

        // Copying dependencies artifacts to the lib folder of the installation layout
        MojoHelperUtils.copyDependencies( mojo, installationLayout, includeWrapperDependencies );

        // Copying the LICENSE and NOTICE files
        MojoHelperUtils.copyBinaryFile(
                getClass().getResourceAsStream( "/org/apache/directory/server/installers/LICENSE" ),
                new File( installationLayout.getInstallationDirectory(), "LICENSE" ) );
        MojoHelperUtils.copyBinaryFile(
                getClass().getResourceAsStream( "/org/apache/directory/server/installers/NOTICE" ),
                new File( installationLayout.getInstallationDirectory(),
                    "NOTICE" ) );

        // Copying the 'apacheds' shell script (only for Linux, Solaris or Mac OS X)
        if ( target.isOsNameLinux() || target.isOsNameSolaris() || target.isOsNameMacOSX() )
        {
            MojoHelperUtils.copyAsciiFile( mojo, filterProperties,
                getClass().getResourceAsStream( "/org/apache/directory/server/installers/apacheds" ),
                new File( installationLayout.getBinDirectory(), "apacheds" ), true );

            MojoHelperUtils.exec( new String[]
                { "chmod", "755", "apacheds" }, installationLayout.getBinDirectory(), false );
        }

        // Copying the wrappers files (native wrapper executable and library [.jnilib, .so, .dll])
        copyWrapperFiles();

        // Copying the wrapper configuration file
        MojoHelperUtils.copyAsciiFile( mojo, filterProperties,
            getClass()
                .getResourceAsStream( "/org/apache/directory/server/installers/wrapper-installation.conf" ),
            new File( installationLayout.getConfDirectory(), "wrapper.conf" ), true );
    }
View Full Code Here

     * @return
     *      the installation layout
     */
    protected InstallationLayout getInstallationLayout()
    {
        return new InstallationLayout( getInstallationDirectory() );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.InstallationLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.