/** * @return {@code true} if this mojo forks either a goal or the lifecycle, {@code false} otherwise. */ public boolean isForking() { return ( getExecuteGoal() != null && getExecuteGoal().length() > 0 ) || ( getExecutePhase() != null && getExecutePhase().length() > 0 ); }
/** * @return {@code true} if this mojo forks either a goal or the lifecycle, {@code false} otherwise. */ public boolean isForking() { return ( getExecuteGoal() != null && getExecuteGoal().length() > 0 ) || ( getExecutePhase() != null && getExecutePhase().length() > 0 ); }
private void appendForkInfo( MessageBuilder buffer, MojoDescriptor md ) { StringBuilder buff = new StringBuilder(); if ( StringUtils.isNotEmpty( md.getExecutePhase() ) ) { // forked phase if ( StringUtils.isNotEmpty( md.getExecuteLifecycle() ) ) { buff.append( '[' ); buff.append( md.getExecuteLifecycle() ); buff.append( ']' ); } buff.append( md.getExecutePhase() ); } else { // forked goal buff.append( ':' ); buff.append( md.getExecuteGoal() ); } buffer.strong( buff.toString() ); }
private List<MojoExecution> calculateForkedGoal( MojoExecution mojoExecution, MavenSession session, MavenProject project, Collection<MojoDescriptor> alreadyForkedExecutions ) throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException { MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor(); PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor(); String forkedGoal = mojoDescriptor.getExecuteGoal(); MojoDescriptor forkedMojoDescriptor = pluginDescriptor.getMojo( forkedGoal ); if ( forkedMojoDescriptor == null ) { throw new MojoNotFoundException( forkedGoal, pluginDescriptor ); } if ( alreadyForkedExecutions.contains( forkedMojoDescriptor ) ) { return Collections.emptyList(); } MojoExecution forkedExecution = new MojoExecution( forkedMojoDescriptor, forkedGoal ); mojoExecutionConfigurator( forkedExecution ).configure( project, forkedExecution, true ); finalizeMojoConfiguration( forkedExecution ); calculateForkedExecutions( forkedExecution, session, project, alreadyForkedExecutions ); return Collections.singletonList( forkedExecution ); }
/** * @return {@code true} if this mojo forks either a goal or the lifecycle, {@code false} otherwise. */ public boolean isForking() { return ( getExecuteGoal() != null && getExecuteGoal().length() > 0 ) || ( getExecutePhase() != null && getExecutePhase().length() > 0 ); }
private void appendForkInfo( MessageBuilder buffer, MojoDescriptor md ) { StringBuilder buff = new StringBuilder(); if ( StringUtils.isNotEmpty( md.getExecutePhase() ) ) { // forked phase if ( StringUtils.isNotEmpty( md.getExecuteLifecycle() ) ) { buff.append( '[' ); buff.append( md.getExecuteLifecycle() ); buff.append( ']' ); } buff.append( md.getExecutePhase() ); } else { // forked goal buff.append( ':' ); buff.append( md.getExecuteGoal() ); } buffer.strong( buff.toString() ); }
value = descriptor.getExecuteGoal(); if (StringUtils.isNotEmpty(value)) { w.printBullet(
if ( StringUtils.isNotEmpty( mojoDescriptor.getExecuteGoal() ) ) GeneratorUtils.element( w, "executeGoal", mojoDescriptor.getExecuteGoal() );
if ( mojoDescriptor.getExecuteGoal() != null ) PluginUtils.element( w, "executeGoal", mojoDescriptor.getExecuteGoal() );
if ( mojoDescriptor.getExecuteGoal() != null ) PluginUtils.element( w, "executeGoal", mojoDescriptor.getExecuteGoal() );
value = mojoDescriptor.getExecuteGoal(); if ( StringUtils.isNotEmpty( value ) )
value = mojoDescriptor.getExecuteGoal(); if ( StringUtils.isNotEmpty( value ) )
value = mojoDescriptor.getExecuteGoal(); if ( StringUtils.isNotEmpty( value ) )
if ( mojoDescriptor.getExecuteGoal() != null )