Package org.apache.maven.tools.plugin.generator

Examples of org.apache.maven.tools.plugin.generator.Generator


            PluginUtils.sortMojoParameters( mojoDescriptor.getParameters() );

            request.getPluginDescriptor().addMojo( mojoDescriptor );
        }

        Generator descriptorGenerator = new PluginDescriptorGenerator();

        descriptorGenerator.execute( new File( root, directory ), request );

        return request.getPluginDescriptor();
    }
View Full Code Here


        try
        {
            File outputDir = new File( getOutputDirectory() );
            outputDir.mkdirs();

            Generator generator = new PluginXdocGenerator();
            generator.execute( outputDir, pluginDescriptor );
        }
        catch ( IOException e )
        {
            throw new MavenReportException( "Error writing plugin documentation", e );
        }
View Full Code Here

            PluginUtils.sortMojoParameters( mojoDescriptor.getParameters() );

            request.getPluginDescriptor().addMojo( mojoDescriptor );
        }

        Generator descriptorGenerator = new PluginDescriptorGenerator( new SystemStreamLog() );

        descriptorGenerator.execute( new File( root, directory ), request );

        return request.getPluginDescriptor();
    }
View Full Code Here

        pluginDescriptor.setDependencies( PluginUtils.toComponentDependencies( project.getDependencies() ) );

        scanner.populatePluginDescriptor( project, pluginDescriptor );
       
        // Create the generator.
        Generator generator = null;

        if ( mode.equals( "descriptor" ) )
        {
            generator = new PluginDescriptorGenerator();
        }
        else if ( mode.equals( "xdoc" ) )
        {
            generator = new PluginXdocGenerator();
        }

        // Use the generator to process the discovered descriptors and produce
        // something with them.
        generator.execute( new File( outputDirectory ), pluginDescriptor );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.tools.plugin.generator.Generator

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.