protected void mergeReportPlugin_Version( ReportPlugin target, ReportPlugin source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getVersion(); if ( src != null ) { if ( sourceDominant || target.getVersion() == null ) { target.setVersion( src ); target.setLocation( "version", source.getLocation( "version" ) ); } } }
if ( ( child.getVersion() == null ) && ( parent.getVersion() != null ) ) child.setVersion( parent.getVersion() );
if ( ( child.getVersion() == null ) && ( parent.getVersion() != null ) ) child.setVersion( parent.getVersion() );
if ( StringUtils.isEmpty( p.getVersion() ) ) version = p.getVersion();
private void mergeReportPlugins( ReportPlugin dominant, ReportPlugin recessive ) if ( StringUtils.isEmpty( recessive.getVersion() ) ) recessive.setVersion( dominant.getVersion() );
if ( reportPlugin.getVersion() != null ) serializer.startTag( NAMESPACE, "version" ).text( reportPlugin.getVersion() ).endTag( NAMESPACE, "version" );
private Xpp3Dom convert( ReportPlugin plugin ) { Xpp3Dom dom = new Xpp3Dom( "reportPlugin" ); addDom( dom, "groupId", plugin.getGroupId() ); addDom( dom, "artifactId", plugin.getArtifactId() ); addDom( dom, "version", plugin.getVersion() ); Xpp3Dom configuration = (Xpp3Dom) plugin.getConfiguration(); if ( configuration != null ) { configuration = new Xpp3Dom( configuration ); dom.addChild( configuration ); } if ( !plugin.getReportSets().isEmpty() ) { Xpp3Dom reportSets = new Xpp3Dom( "reportSets" ); for ( ReportSet reportSet : plugin.getReportSets() ) { Xpp3Dom rs = convert( reportSet ); reportSets.addChild( rs ); } dom.addChild( reportSets ); } return dom; }
pp.setGroupId( report.getGroupId() ); pp.setArtifactId( report.getArtifactId() ); pp.setVersion( report.getVersion() );
public static ReportPlugin cloneReportPlugin( ReportPlugin src ) { if ( src == null ) { return null; } ReportPlugin result = new ReportPlugin(); result.setArtifactId( src.getArtifactId() ); result.setConfiguration( cloneConfiguration( src.getConfiguration() ) ); result.setGroupId( src.getGroupId() ); result.setInherited( src.getInherited() ); result.setReportSets( cloneList( src.getReportSets(), REPORT_SET_CLONER ) ); result.setVersion( src.getVersion() ); return result; }
if ( reportPlugin.getVersion() != null ) serializer.attribute( NAMESPACE, "version", reportPlugin.getVersion() );
pluginProlog( rplugin.getGroupId(), rplugin.getArtifactId(), rplugin.getVersion() );
protected void mergeReportPlugin_Version( ReportPlugin target, ReportPlugin source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getVersion(); if ( src != null ) { if ( sourceDominant || target.getVersion() == null ) { target.setVersion( src ); target.setLocation( "version", source.getLocation( "version" ) ); } } }
public ModuleDependency(ReportPlugin p) { this(p.getGroupId(),p.getArtifactId(),p.getVersion()); this.plugin = true; }
public PluginWrapper( ReportPlugin plugin, String source ) { setGroupId( plugin.getGroupId() ); setArtifactId( plugin.getArtifactId() ); setVersion( plugin.getVersion() ); setSource( source ); }
private static Plugin toPlugin( ReportPlugin reportPlugin ) { Plugin plugin = new Plugin(); plugin.setGroupId( reportPlugin.getGroupId() ); plugin.setArtifactId( reportPlugin.getArtifactId() ); plugin.setVersion( reportPlugin.getVersion() ); return plugin; }
public PluginWrapper( ReportPlugin plugin, String source ) { setGroupId( plugin.getGroupId() ); setArtifactId( plugin.getArtifactId() ); setVersion( plugin.getVersion() ); setSource( source ); }
private static Plugin toPlugin( ReportPlugin reportPlugin ) { Plugin plugin = new Plugin(); plugin.setGroupId( reportPlugin.getGroupId() ); plugin.setArtifactId( reportPlugin.getArtifactId() ); plugin.setVersion( reportPlugin.getVersion() ); return plugin; }
/** * Convert {@link ReportPlugin plugin} coordinates to {@link DependableCoordinate}. * @param plugin The {@link ReportPlugin plugin} to be converted to {@link DependableCoordinate}. * @return The converted {@link DependableCoordinate} coordinates. */ public static DependableCoordinate toDependableCoordinate( ReportPlugin plugin ) { DefaultDependableCoordinate coordinate = new DefaultDependableCoordinate(); coordinate.setGroupId( plugin.getGroupId() ); coordinate.setArtifactId( plugin.getArtifactId() ); coordinate.setVersion( plugin.getVersion() ); return coordinate; }
private static Plugin cloneReportPluginToPlugin(ReportPlugin reportPlugin) { Plugin plugin = new Plugin(); plugin.setGroupId(reportPlugin.getGroupId()); plugin.setArtifactId(reportPlugin.getArtifactId()); plugin.setVersion(reportPlugin.getVersion()); plugin.setConfiguration(reportPlugin.getConfiguration()); return plugin; }
private void resolve( ReportPlugin plugin ) { try { plugin.setGroupId( (String) helper.evaluate( plugin.getGroupId() ) ); plugin.setArtifactId( (String) helper.evaluate( plugin.getArtifactId() ) ); plugin.setVersion( (String) helper.evaluate( plugin.getVersion() ) ); } catch ( ExpressionEvaluationException e ) { // this should have gone already before } }