Package org.apache.maven.model

Examples of org.apache.maven.model.Developer


            for ( Contributor unit : units )
            {
                if ( unit instanceof Developer )
                {
                    Developer developer = (Developer) unit;
                    if ( StringUtils.isNotEmpty( developer.getId() ) )
                    {
                        requiredHeaders.put( ID, Boolean.TRUE );
                    }
                }
                if ( StringUtils.isNotEmpty( unit.getName() ) )
View Full Code Here


        if ( src == null )
        {
            return null;
        }
       
        Developer result = new Developer();
       
        result.setId( src.getId() );
       
        cloneContributorFields( src, result );
       
        return result;
    }
View Full Code Here

            }

            Counter innerCount = new Counter( counter.getDepth() + 1 );
            while ( it.hasNext() )
            {
                Developer value = (Developer) it.next();
                Element el;
                if ( ( elIt != null ) && elIt.hasNext() )
                {
                    el = (Element) elIt.next();
                    if ( !elIt.hasNext() )
View Full Code Here

                "The <developers> section in your pom should not be empty. Add a <developer> entry or set the "
                    + "mailSender parameter." );
        }
        else if ( fromDeveloperId == null )
        {
            final Developer dev = (Developer) from.get( 0 );
            return new MailSender( dev.getName(), dev.getEmail() );
        }
        else
        {
            final Iterator it = from.iterator();
            while ( it.hasNext() )
            {
                Developer developer = (Developer) it.next();

                if ( fromDeveloperId.equals( developer.getId() ) )
                {
                    return new MailSender( developer.getName(), developer.getEmail() );
                }
            }
            throw new MojoExecutionException(
                "Missing developer with id '" + fromDeveloperId + "' in the <developers> section in your pom." );
        }
View Full Code Here

    {
        super();

        List developers = new ArrayList();

        Developer developer = new Developer();
        developer.setName( "Edwin Punzalan" );
        developer.setId( "edwin" );
        developers.add( developer );

        developer = new Developer();
        developer.setName( "Keogh Edrich Punzalan" );
        developer.setId( "keogh" );
        developers.add( developer );

        super.addAll( developers );
    }
View Full Code Here

            for ( Iterator it = v3Developers.iterator(); it.hasNext(); )
            {
                org.apache.maven.model.v3_0_0.Developer v3Developer = (org.apache.maven.model.v3_0_0.Developer) it
                    .next();

                Developer developer = new Developer();

                developer.setEmail( v3Developer.getEmail() );
                developer.setId( v3Developer.getId() );
                developer.setName( v3Developer.getName() );
                developer.setOrganization( v3Developer.getOrganization() );
                developer.setRoles( v3Developer.getRoles() );
                developer.setTimezone( v3Developer.getTimezone() );
                developer.setUrl( v3Developer.getUrl() );

                developers.add( developer );
            }
        }
View Full Code Here

            for ( Contributor unit : units )
            {
                if ( unit instanceof Developer )
                {
                    Developer developer = (Developer) unit;
                    if ( StringUtils.isNotEmpty( developer.getId() ) )
                    {
                        requiredHeaders.put( ID, Boolean.TRUE );
                    }
                }
                if ( StringUtils.isNotEmpty( unit.getName() ) )
View Full Code Here

        if ( developers != null )
        {
            for ( Iterator i = developers.iterator(); i.hasNext(); )
            {
                Developer developer = (Developer) i.next();

                developersById.put( developer.getId(), developer );
                developersByName.put( developer.getName(), developer );
            }
        }
    }
View Full Code Here

     * @param sink Sink to use for outputting
     * @param author The author's name.
     */
    protected void sinkAuthorDetails( Sink sink, String author )
    {
        Developer developer = (Developer) developersById.get( author );

        if ( developer == null )
        {
            developer = (Developer) developersByName.get( author );
        }

        if ( developer != null )
        {
            sink.link( "team-list.html#" + developer.getId() );
            sink.text( developer.getName() );
            sink.link_();
        }
        else
        {
            sink.text( author );
View Full Code Here

                "The <developers> section in your pom should not be empty. Add a <developer> entry or set the "
                    + "mailSender parameter." );
        }
        else if ( fromDeveloperId == null )
        {
            final Developer dev = (Developer) from.get( 0 );
            return new MailSender( dev.getName(), dev.getEmail() );
        }
        else
        {
            final Iterator it = from.iterator();
            while ( it.hasNext() )
            {
                Developer developer = (Developer) it.next();

                if ( fromDeveloperId.equals( developer.getId() ) )
                {
                    return new MailSender( developer.getName(), developer.getEmail() );
                }
            }
            throw new MojoExecutionException(
                "Missing developer with id '" + fromDeveloperId + "' in the <developers> section in your pom." );
        }
View Full Code Here

TOP

Related Classes of org.apache.maven.model.Developer

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.