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 license = new License(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
License license = new License(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
License license = new License(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
/** * {@inheritDoc} */ public void addLicense( LicenseMap licenseMap, MavenProject project, String... licenseNames ) { List<License> licenses = new ArrayList<>(); for ( String licenseName : licenseNames ) { License license = new License(); license.setName( licenseName.trim() ); license.setUrl( licenseName.trim() ); licenses.add( license ); } addLicense( licenseMap, project, licenses ); }
throws IOException, XMLStreamException License license = new License(); license.setModelEncoding( encoding ); java.util.Set parsed = new java.util.HashSet();
License license = new License("PrimeSense", "0KOIk2JeIBYClPWVnMoRKn5cdY4="); // vendor, key context.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; }
throws IOException, DocumentException License license = new License(); license.setModelEncoding( encoding ); java.util.Set parsed = new java.util.HashSet();
throws IOException, XmlPullParserException License license = new License(); license.setModelEncoding( encoding ); java.util.Set parsed = new java.util.HashSet();
if ( licenses.isEmpty() ) License license = new License();
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); }
License license = new License(); license.setName( "Eclipse Public License - v 1.0" ); //$NON-NLS-1$ license.setUrl( "http://www.eclipse.org/org/documents/epl-v10.html" ); //$NON-NLS-1$
License license = new License(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
License license = new License(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );