Examples of PluginDescriptorBuilder


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

    // END component requirements

    public DefaultPluginManager()
    {
        pluginDescriptorBuilder = new PluginDescriptorBuilder();
    }
View Full Code Here

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

    extends AbstractGeneratorTestCase
{
    protected void validate(File destinationDirectory)
        throws Exception
    {
        PluginDescriptorBuilder pdb = new PluginDescriptorBuilder();

        File pluginDescriptorFile = new File( destinationDirectory, "plugin.xml" );

        String pd = readFile( pluginDescriptorFile );

        PluginDescriptor pluginDescriptor = pdb.build( new StringReader( pd ) );

        assertEquals( 1, pluginDescriptor.getMojos().size() );
       
        MojoDescriptor mojoDescriptor = (MojoDescriptor) pluginDescriptor.getMojos().get( 0 );
View Full Code Here

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

    // END component requirements

    public DefaultPluginManager()
    {
        pluginDescriptorBuilder = new PluginDescriptorBuilder();
    }
View Full Code Here

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

   
    return result;
  }
 
  public static PluginDescriptor readPluginDescriptor(Reader pluginXml) throws Exception{
    return new PluginDescriptorBuilder().build(pluginXml);
  }
View Full Code Here

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

{
    private PluginDescriptorBuilder builder;

    public MavenPluginDiscoverer()
    {
        builder = new PluginDescriptorBuilder();
    }
View Full Code Here

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

    // END component requirements

    public DefaultPluginManager()
    {
        pluginDescriptorBuilder = new PluginDescriptorBuilder();
    }
View Full Code Here

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

                    if ( entry != null )
                    {
                        is = jf.getInputStream( entry );

                        PluginDescriptorBuilder builder = new PluginDescriptorBuilder();

                        PluginDescriptor descriptor = builder.build( new InputStreamReader( is ) );

                        ai.prefix = descriptor.getGoalPrefix();

                        ai.goals = new ArrayList<String>();
View Full Code Here

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

    // END component requirements

    public DefaultPluginManager()
    {
        pluginDescriptorBuilder = new PluginDescriptorBuilder();
    }
View Full Code Here

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

        Reader reader = null;
        PluginDescriptor pd;
        try
        {
            reader = new InputStreamReader( resource.openStream() );
            pd = new PluginDescriptorBuilder().build( reader, pluginXml );
        }
        finally
        {
            IOUtil.close( reader );
        }
View Full Code Here

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

        XmlStreamReader reader = ReaderFactory.newXmlReader( is );

        InterpolationFilterReader interpolationFilterReader =
            new InterpolationFilterReader( new BufferedReader( reader ), container.getContext().getContextData() );

        PluginDescriptor pluginDescriptor = new PluginDescriptorBuilder().build( interpolationFilterReader );

        for ( ComponentDescriptor<?> desc : pluginDescriptor.getComponents() )
        {
            getContainer().addComponentDescriptor( desc );
        }
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.