protected void mergeLicense_Distribution( License target, License source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDistribution(); if ( src != null ) { if ( sourceDominant || target.getDistribution() == null ) { target.setDistribution( src ); target.setLocation( "distribution", source.getLocation( "distribution" ) ); } } }
public static License cloneLicense( License src ) { if ( src == null ) { return null; } License result = new License(); result.setComments( src.getComments() ); result.setDistribution( src.getDistribution() ); result.setName( src.getName() ); result.setUrl( src.getUrl() ); return result; }
license.setDistribution( interpolatedTrimmed( parser.nextText(), "distribution" ) );
license.setDistribution( interpolatedTrimmed( parser.nextText(), "distribution" ) );
license.setDistribution( getTrimmedValue( value ) );
license.setDistribution( getTrimmedValue( xmlStreamReader.getElementText()) );
private static void setLicense(Model model, String version, boolean feature, boolean restrictedLicense, boolean isWebsphereLiberty) { License license = new License(); if (!isWebsphereLiberty) { license.setName(Constants.LICENSE_NAME_EPL); license.setUrl(Constants.LICENSE_URL_EPL); license.setDistribution(Constants.LICENSE_DISTRIBUTION_REPO); } else if (feature) { license.setName(Constants.LICENSE_NAME_FEATURE_TERMS); license.setUrl(Constants.LICENSE_URL_FEATURE_TERMS_PREFIX + version + (restrictedLicense ? Constants.LICENSE_URL_FEATURE_TERMS_RESTRICTED_SUFFIX : Constants.LICENSE_URL_FEATURE_TERMS_SUFFIX)); license.setDistribution(Constants.LICENSE_DISTRIBUTION_REPO); } else { license.setName(Constants.LICENSE_NAME_MAVEN); license.setUrl(Constants.LICENSE_URL_MAVEN); license.setDistribution(Constants.LICENSE_DISTRIBUTION_REPO); license.setComments(Constants.LICENSE_COMMENTS_MAVEN); } model.addLicense(license); }
private List translateLicenses( List v3Licenses ) { List licenses = new ArrayList(); if ( notEmpty( v3Licenses ) ) { for ( Iterator it = v3Licenses.iterator(); it.hasNext(); ) { org.apache.maven.model.v3_0_0.License v3License = (org.apache.maven.model.v3_0_0.License) it.next(); License license = new License(); license.setComments( v3License.getComments() ); license.setDistribution( v3License.getDistribution() ); license.setName( v3License.getName() ); license.setUrl( v3License.getUrl() ); licenses.add( license ); } } return licenses; }
license.setDistribution( getTrimmedValue( childElement.getText() ) );
protected void mergeLicense_Distribution( License target, License source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDistribution(); if ( src != null ) { if ( sourceDominant || target.getDistribution() == null ) { target.setDistribution( src ); target.setLocation( "distribution", source.getLocation( "distribution" ) ); } } }
license.setDistribution( getTrimmedValue( parser.nextText()) );
license.setDistribution( getTrimmedValue( parser.nextText() ) );
license.setDistribution( getTrimmedValue( parser.nextText() ) );