Examples of InstallationLayout


Examples of org.apache.directory.daemon.InstallationLayout

    {
        Service service = new Service();

        if ( args.length > 0 && new File( args[0] ).isDirectory() )
        {
            InstallationLayout layout = new InstallationLayout( args[0] );
            String confFile = layout.getConfigurationFile().toURI().toURL().toString();
            service.init( layout, new String[]
                { confFile } );
        }
        else if ( args.length > 0 && new File( args[0] ).isFile() )
        {
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    }


    public void setLayout( File installationDirectory )
    {
        this.layout = new InstallationLayout( installationDirectory );
    }
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    }


    public void setLayout( String installationPath )
    {
        this.layout = new InstallationLayout( new File( installationPath ) );
    }
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    public void execute() throws MojoExecutionException, MojoFailureException
    {
        // make the layout directories
        log.info( "Creating image ... " );
        File dir = new File( mymojo.getOutputDirectory(), target.getId() );
        layout = new InstallationLayout( dir );
        target.setLayout( layout );
        layout.mkdirs();

        // copy over the read me file if present otherwise use the bundled copy
        if ( target.getApplication().getReadme() != null && target.getApplication().getReadme().exists() )
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    {
        Service service = new Service();

        if ( args.length > 0 && new File( args[0] ).isDirectory() )
        {
            InstallationLayout layout = new InstallationLayout( args[0] );
            String confFile = layout.getConfigurationFile().getAbsolutePath();
            service.init( layout, new String[]
                { confFile } );
        }
        else if ( args.length > 0 && new File( args[0] ).isFile() )
        {
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    {
        Service service = new Service();

        if ( args.length > 0 && new File( args[0] ).isDirectory() )
        {
            InstallationLayout layout = new InstallationLayout( args[0] );
            String confFile = layout.getConfigurationFile().getAbsolutePath();
            service.init( layout, new String[]
                { confFile } );
        }
        else if ( args.length > 0 && new File( args[0] ).isFile() )
        {
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    {
        Service server = new Service();

        if ( args.length > 0 && new File( args[0] ).isDirectory() )
        {
            InstallationLayout layout = new InstallationLayout( args[0] );
            String confFile = layout.getConfigurationFile().getAbsolutePath();
            server.init( layout, new String[]
                { confFile } );
            server.start();
        }
        else if ( args.length > 0 && new File( args[0] ).isFile() )
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    }


    public void setLayout( File installationDirectory )
    {
        this.layout = new InstallationLayout( installationDirectory );
    }
View Full Code Here

Examples of org.apache.directory.daemon.InstallationLayout

    }


    public void setLayout( String installationPath )
    {
        this.layout = new InstallationLayout( new File( installationPath ) );
    }
View Full Code Here

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
TOP
Copyright © 2018 www.massapi.com. 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.