public static CiManagement cloneCiManagement( CiManagement src ) { if ( src == null ) { return null; } CiManagement result = new CiManagement(); List notifiers = null; if ( src.getNotifiers() != null ) { notifiers = new ArrayList( src.getNotifiers().size() ); for ( Iterator it = src.getNotifiers().iterator(); it.hasNext(); ) { notifiers.add( cloneNotifier( (Notifier) it.next() ) ); } } result.setNotifiers( cloneList( src.getNotifiers(), NOTIFIER_CLONER ) ); result.setSystem( src.getSystem() ); result.setUrl( src.getUrl() ); return result; }
protected void mergeModel_CiManagement( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { CiManagement src = source.getCiManagement(); if ( src != null ) { CiManagement tgt = target.getCiManagement(); if ( tgt == null ) { tgt = new CiManagement(); target.setCiManagement( tgt ); } mergeCiManagement( tgt, src, sourceDominant, context ); } }
@Override protected void mergeModel_CiManagement( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { CiManagement src = source.getCiManagement(); if ( src != null ) { CiManagement tgt = target.getCiManagement(); if ( tgt == null ) { tgt = new CiManagement(); tgt.setLocation( "", src.getLocation( "" ) ); target.setCiManagement( tgt ); mergeCiManagement( tgt, src, sourceDominant, context ); } } }
CiManagement ciManagement = new CiManagement(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
CiManagement ciManagement = new CiManagement(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
CiManagement ciManagement = new CiManagement(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
protected void mergeModel_CiManagement( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { CiManagement src = source.getCiManagement(); if ( src != null ) { CiManagement tgt = target.getCiManagement(); if ( tgt == null ) { tgt = new CiManagement(); target.setCiManagement( tgt ); } mergeCiManagement( tgt, src, sourceDominant, context ); } }
private CiManagement translateCiManagementInfo( org.apache.maven.model.v3_0_0.Build v3Build ) { CiManagement ciMgmt = null; if ( v3Build != null ) { String nagEmailAddress = v3Build.getNagEmailAddress(); if ( StringUtils.isNotEmpty( nagEmailAddress ) ) { Notifier notifier = new Notifier(); notifier.setType( "mail" ); notifier.addConfiguration( "address", nagEmailAddress ); ciMgmt = new CiManagement(); ciMgmt.addNotifier( notifier ); } } return ciMgmt; }
@Override protected void mergeModel_CiManagement( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { CiManagement src = source.getCiManagement(); if ( src != null ) { CiManagement tgt = target.getCiManagement(); if ( tgt == null ) { tgt = new CiManagement(); tgt.setLocation( "", src.getLocation( "" ) ); target.setCiManagement( tgt ); mergeCiManagement( tgt, src, sourceDominant, context ); } } }
CiManagement ciManagement = new CiManagement(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
CiManagement ciManagement = new CiManagement(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
/** * For SONAR-3676 */ private static void convertMavenLinksToProperties(ProjectDefinition definition, MavenProject pom) { setPropertyIfNotAlreadyExists(definition, CoreProperties.LINKS_HOME_PAGE, pom.getUrl()); Scm scm = pom.getScm(); if (scm == null) { scm = new Scm(); } setPropertyIfNotAlreadyExists(definition, CoreProperties.LINKS_SOURCES, scm.getUrl()); setPropertyIfNotAlreadyExists(definition, CoreProperties.LINKS_SOURCES_DEV, scm.getDeveloperConnection()); CiManagement ci = pom.getCiManagement(); if (ci == null) { ci = new CiManagement(); } setPropertyIfNotAlreadyExists(definition, CoreProperties.LINKS_CI, ci.getUrl()); IssueManagement issues = pom.getIssueManagement(); if (issues == null) { issues = new IssueManagement(); } setPropertyIfNotAlreadyExists(definition, CoreProperties.LINKS_ISSUE_TRACKER, issues.getUrl()); }
/** * For SONAR-3676 */ private static void convertMavenLinksToProperties(Map<String, String> props, MavenProject pom) { setPropertyIfNotAlreadyExists(props, LINKS_HOME_PAGE, pom.getUrl()); Scm scm = pom.getScm(); if (scm == null) { scm = new Scm(); } setPropertyIfNotAlreadyExists(props, LINKS_SOURCES, scm.getUrl()); setPropertyIfNotAlreadyExists(props, LINKS_SOURCES_DEV, scm.getDeveloperConnection()); CiManagement ci = pom.getCiManagement(); if (ci == null) { ci = new CiManagement(); } setPropertyIfNotAlreadyExists(props, LINKS_CI, ci.getUrl()); IssueManagement issues = pom.getIssueManagement(); if (issues == null) { issues = new IssueManagement(); } setPropertyIfNotAlreadyExists(props, LINKS_ISSUE_TRACKER, issues.getUrl()); }