Examples of execute()


Examples of org.apache.maven.doxia.macro.Macro.execute()

    {
        Macro m = macroProvider.resolveMacro(macroId);
        if(m == null) {
            m = new DefaultMacro(macroId);
        }
        m.execute( sink, request );
    }
}
View Full Code Here

Examples of org.apache.maven.embedder.MavenEmbedder.execute()

        {
          MavenEmbedder embedder = new MavenEmbedder();
          embedder.setClassLoader(Thread.currentThread()
              .getContextClassLoader());
          embedder.start();
          embedder.execute(reactorProjects, Collections
              .singletonList(qualifiedGoal), new DefaultEventMonitor(
              new PlexusLoggerAdapter(embedder.getLogger())),
              new ConsoleDownloadMonitor(), properties,
              ((MavenProject) reactorProjects.get(0)).getBasedir());
          embedderWorked = true;
View Full Code Here

Examples of org.apache.maven.enforcer.rule.api.EnforcerRule.execute()

                            {
                                // execute the rule
                                //noinspection SynchronizationOnLocalVariableOrMethodParameter
                                synchronized ( rule )
                                {
                                   rule.execute( helper );
                                }
                            }
                        }
                        catch ( EnforcerRuleException e )
                        {
View Full Code Here

Examples of org.apache.maven.plugin.AbstractMojo.execute()

            Settings settings = new Settings();
            setVariableValueToObject( mojo, "settings", settings );
            File inputDirectory = new File( "src/test/resources/unit/deploy-dav/target/site" );

            setVariableValueToObject( mojo, "inputDirectory", inputDirectory );
            mojo.execute();

            assertContentInFiles();
            assertFalse( requestsContainsProxyUse( simpleDavServerHandler.httpRequests ) );
        }
        finally
View Full Code Here

Examples of org.apache.maven.plugin.Mojo.execute()

        Mojo mojo = (Mojo) lookupMojo( mojoName, pluginConfigFile.getAbsolutePath() );

        FileLoggingArchiverManagerStub archiverManager = (FileLoggingArchiverManagerStub) getVariableValueFromObject( mojo, "archiverManager" );
        archiverManager.clearArchiver();
       
        mojo.execute();

        return mojo;
    }

    private void assertFilesAdded( Mojo mojo, List requiredDependencies ) throws Exception
View Full Code Here

Examples of org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase.execute()

        final MockControl phaseControl = MockControl.createControl( AssemblyArchiverPhase.class );
        mm.add( phaseControl );

        final AssemblyArchiverPhase phase = (AssemblyArchiverPhase) phaseControl.getMock();

        phase.execute( null, null, null, null );
        phaseControl.setMatcher( MockControl.ALWAYS_MATCHER );

        final MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class );
        mm.add( csControl );
View Full Code Here

Examples of org.apache.maven.plugin.assembly.archive.task.AddArtifactTask.execute()

        {
            task.setIncludes( binaries.getUnpackOptions().getIncludes() );
            task.setExcludes( binaries.getUnpackOptions().getExcludes() );
        }

        task.execute( archiver, configSource );
    }

    protected void addModuleSourceFileSets( final ModuleSources sources, final Set<MavenProject> moduleProjects,
                                            final Archiver archiver, final AssemblerConfigurationSource configSource )
        throws ArchiveCreationException, AssemblyFormattingException
View Full Code Here

Examples of org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.execute()

    {
        final AddDependencySetsTask task =
            new AddDependencySetsTask( assembly.getDependencySets(), context.getResolvedArtifacts(),
                                       configSource.getProject(), projectBuilder, archiverManager, getLogger() );

        task.execute( archiver, configSource );
    }
}
View Full Code Here

Examples of org.apache.maven.plugin.assembly.archive.task.AddDirectoryTask.execute()

                task.setFileMode( fileMode );
            }

            task.setOutputDirectory( outputDirectory );

            task.execute( archiver, configSource );
        }
    }

    private RepositoryBuilderConfigSource wrap( final AssemblerConfigurationSource configSource )
    {
View Full Code Here

Examples of org.apache.maven.plugin.assembly.archive.task.AddFileSetsTask.execute()

        if ( ( fileSets != null ) && !fileSets.isEmpty() )
        {
            final AddFileSetsTask task = new AddFileSetsTask( fileSets );

            task.setLogger( getLogger() );
            task.execute( archiver, configSource );
        }
    }

}
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.