org.apache.maven.model.CiManagement Java Examples
The following examples show how to use
org.apache.maven.model.CiManagement.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LocationAwareMavenXpp3Writer.java From netbeans with Apache License 2.0 | 6 votes |
private void writeCiManagement(CiManagement ciManagement, String tagName, XmlSerializer serializer) throws java.io.IOException { serializer.startTag(NAMESPACE, tagName); flush(serializer); StringBuffer b = b(serializer); int start = b.length(); if (ciManagement.getSystem() != null) { writeValue(serializer, "system", ciManagement.getSystem(), ciManagement); } if (ciManagement.getUrl() != null) { writeValue(serializer, "url", ciManagement.getUrl(), ciManagement); } if ((ciManagement.getNotifiers() != null) && (ciManagement.getNotifiers().size() > 0)) { serializer.startTag(NAMESPACE, "notifiers"); for (Iterator<Notifier> iter = ciManagement.getNotifiers().iterator(); iter.hasNext();) { Notifier o = iter.next(); writeNotifier(o, "notifier", serializer); } serializer.endTag(NAMESPACE, "notifiers"); } serializer.endTag(NAMESPACE, tagName).flush(); logLocation(ciManagement, "", start, b.length()); }
Example #2
Source File: Maven2RepositoryStorage.java From archiva with Apache License 2.0 | 5 votes |
private org.apache.archiva.metadata.model.CiManagement convertCiManagement(CiManagement ciManagement) { org.apache.archiva.metadata.model.CiManagement ci = null; if (ciManagement != null) { ci = new org.apache.archiva.metadata.model.CiManagement(); ci.setSystem(ciManagement.getSystem()); ci.setUrl(ciManagement.getUrl()); } return ci; }
Example #3
Source File: PomProperty.java From flatten-maven-plugin with Apache License 2.0 | 4 votes |
@Override public CiManagement get( Model model ) { return model.getCiManagement(); }
Example #4
Source File: PomProperty.java From flatten-maven-plugin with Apache License 2.0 | 4 votes |
@Override public void set( Model model, CiManagement value ) { model.setCiManagement( value ); }