Package org.apache.maven.continuum.configuration

Examples of org.apache.maven.continuum.configuration.ConfigurationService.store()


                    else
                    {
                        agent.setDescription( buildAgent.getDescription() );
                        agent.setEnabled( buildAgent.isEnabled() );
                        configuration.updateBuildAgent( agent );
                        configuration.store();
                    }
                    found = true;
                }
            }
        }
View Full Code Here


        event.setCurrentUser( getPrincipal() );

        if ( !found )
        {
            configuration.addBuildAgent( buildAgent );
            configuration.store();
            event.setAction( AuditLogConstants.ADD_BUILD_AGENT );
        }

        event.log();
View Full Code Here

            configuration.setReleaseOutputDirectory( null );
        }

        configuration.setDistributedBuildEnabled( distributedBuildEnabled );

        configuration.store();

        return SUCCESS;
    }

    public String getWorkingDirectory()
View Full Code Here

            configuration.setReleaseOutputDirectory( null );
        }

        configuration.setDistributedBuildEnabled( distributedBuildEnabled );

        configuration.store();

        return SUCCESS;
    }

    public String getWorkingDirectory()
View Full Code Here

                {
                    agent.setDescription( buildAgent.getDescription() );
                    agent.setEnabled( buildAgent.isEnabled() );

                    configuration.updateBuildAgent( agent );
                    configuration.store();
                    found = true;
                }
            }
        }
View Full Code Here

        event.setCurrentUser( getPrincipal() );

        if ( !found )
        {
            configuration.addBuildAgent( buildAgent );
            configuration.store();
            event.setAction( AuditLogConstants.ADD_BUILD_AGENT );
        }
        else
        {
            if ( type.equals( "new" ) )
View Full Code Here

            {
                if ( buildAgent.getUrl().equals( agent.getUrl() ) )
                {
                    getContinuum().getDistributedBuildManager().removeDistributedBuildQueueOfAgent( buildAgent.getUrl() );
                    configuration.removeBuildAgent( agent );
                    configuration.store();

                    AuditLog event = new AuditLog( "Build Agent URL=" + agent.getUrl(), AuditLogConstants.REMOVE_BUILD_AGENT );
                    event.setCategory( AuditLogConstants.BUILD_AGENT );
                    event.setCurrentUser( getPrincipal() );
                    event.log();
View Full Code Here

        configuration.setInitialized( true );

        configuration.setReleaseOutputDirectory( new File( releaseOutputDirectory ) );

        configuration.store();

        return SUCCESS;
    }

    public String getWorkingDirectory()
View Full Code Here

        else
        {
            configuration.setReleaseOutputDirectory( null );
        }

        configuration.store();

        return SUCCESS;
    }

    public String getWorkingDirectory()
View Full Code Here

        configuration.setUrl( baseUrl );

        configuration.setInitialized( true );

        configuration.store();

        return SUCCESS;
    }

    public String getWorkingDirectory()
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.