Package org.apache.maven.plugin.descriptor

Examples of org.apache.maven.plugin.descriptor.InvalidParameterException


        // TODO: remove when backward compatibility is no longer an issue.
        String name = parameter.getName();

        if ( name == null )
        {
            throw new InvalidParameterException( "name", i );
        }

        // TODO: remove when backward compatibility is no longer an issue.
        String type = parameter.getType();

        if ( type == null )
        {
            throw new InvalidParameterException( "type", i );
        }

        // TODO: remove when backward compatibility is no longer an issue.
        String description = parameter.getDescription();

        if ( description == null )
        {
            throw new InvalidParameterException( "description", i );
        }
    }
View Full Code Here


        int parameterIndex = 0;
        for (org.apache.maven.plugin.descriptor.Parameter parameter :
                (List<org.apache.maven.plugin.descriptor.Parameter>)mojoDescriptor.getParameters()) {
            parameterIndex++;
            if (parameter.getName() == null) {
                throw new InvalidParameterException("name", parameterIndex);
            }
            if (parameter.getType() == null) {
                throw new InvalidParameterException("type", parameterIndex);
            }
            if (parameter.getDescription() == null) {
                throw new InvalidParameterException("description", parameterIndex);
            }
        }
    }
View Full Code Here

        int parameterIndex = 0;
        for (org.apache.maven.plugin.descriptor.Parameter parameter :
                (List<org.apache.maven.plugin.descriptor.Parameter>)mojoDescriptor.getParameters()) {
            parameterIndex++;
            if (parameter.getName() == null) {
                throw new InvalidParameterException("name", parameterIndex);
            }
            if (parameter.getType() == null) {
                throw new InvalidParameterException("type", parameterIndex);
            }
            if (parameter.getDescription() == null) {
                throw new InvalidParameterException("description", parameterIndex);
            }
        }
    }
View Full Code Here

                parameter.setEditable( !parameterAnnotationContent.readonly() );
                String property = parameterAnnotationContent.property();
                if ( StringUtils.contains( property, '$' ) || StringUtils.contains( property, '{' )
                    || StringUtils.contains( property, '}' ) )
                {
                    throw new InvalidParameterException(
                        "Invalid property for parameter '" + parameter.getName() + "', " + "forbidden characters ${}: "
                            + property, null );
                }
                parameter.setExpression( StringUtils.isEmpty( property ) ? "" : "${" + property + "}" );
                parameter.setType( parameterAnnotationContent.getClassName() );
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.descriptor.InvalidParameterException

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.