Examples of License


Examples of org.apache.maven.model.License

            if ( ( model.getLicenses() != null ) && ( model.getLicenses().size() > 0 ) )
            {
                serializer.startTag( NAMESPACE, "licenses" );
                for ( Iterator iter = model.getLicenses().iterator(); iter.hasNext(); )
                {
                    License o = (License) iter.next();
                    writeLicense( o, "license", serializer );
                }
                serializer.endTag( NAMESPACE, "licenses" );
            }
            if ( ( model.getMailingLists() != null ) && ( model.getMailingLists().size() > 0 ) )
View Full Code Here

Examples of org.apache.maven.model.License

                elIt = null;
            }
            Counter innerCount = new Counter( counter.getDepth() + 1 );
            while ( it.hasNext() )
            {
                License value = (License) it.next();
                Element el;
                if ( elIt != null && elIt.hasNext() )
                {
                    el = (Element) elIt.next();
                    if ( !elIt.hasNext() )
View Full Code Here

Examples of org.apache.maven.model.License

            // parent.setVersion( "1" );
            // model.setParent( parent );

            // infer license for know projects, everything at eclipse is licensed under EPL
            // maybe too simplicistic, but better than nothing
            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$
            model.addLicense( license );
        }

        if ( deps.length > 0 )
        {
View Full Code Here

Examples of org.apache.maven.project.License

            {
                Element listElement = element;
                listElement = element.addElement( "licenses" );
                for ( Iterator iter = model.getLicenses().iterator(); iter.hasNext(); )
                {
                    License o = (License) iter.next();
                    writeLicense( o, "license", listElement );
                }
            }
            if ( model.getVersions() != null && model.getVersions().size() > 0 )
            {
View Full Code Here

Examples of org.apache.openejb.jee.License

              connector.getIcons().add(icon);
            }
          }

          if (connector.getLicense() == null) {
            License license = new License();
          connector.setLicense(license);
          license.setLicenseRequired(connectorAnnotation.licenseRequired());
          }

          connector.getLicense().setDescriptions(getTexts(connector.getLicense().getDescriptions(), connectorAnnotation.licenseDescription()));

View Full Code Here

Examples of org.apache.openejb.jee.License

                        connector.getIcons().add(icon);
                    }
                }

                if (connector.getLicense() == null) {
                    final License license = new License();
                    connector.setLicense(license);
                    license.setLicenseRequired(connectorAnnotation.licenseRequired());
                }

                connector.getLicense().setDescriptions(getTexts(connector.getLicense().getDescriptions(), connectorAnnotation.licenseDescription()));

View Full Code Here

Examples of org.apache.openejb.jee.License

              connector.getIcons().add(icon);
            }
          }

          if (connector.getLicense() == null) {
            License license = new License();
          connector.setLicense(license);
          license.setLicenseRequired(connectorAnnotation.licenseRequired());
          }

          connector.getLicense().setDescriptions(getTexts(connector.getLicense().getDescriptions(), connectorAnnotation.licenseDescription()));

View Full Code Here

Examples of org.apache.openejb.jee.License

              connector.getIcons().add(icon);
            }
          }

          if (connector.getLicense() == null) {
            License license = new License();
          connector.setLicense(license);
          license.setLicenseRequired(connectorAnnotation.licenseRequired());
          }

          connector.getLicense().setDescriptions(getTexts(connector.getLicense().getDescriptions(), connectorAnnotation.licenseDescription()));

View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.site.License

            elements = Math.max(elements, urls.length);
        }
        Collection<License> licenseList = new ArrayList<License>();
        for(int i=0;i<elements;i++){
            try {
                licenseList.add(new License(
                    names.length>i?names[i]:null,
                            urls.length>i?urls[i]:null,
                                    texts.length>i?texts[i]:null));
            } catch(IllegalArgumentException e){
                //ignore if name, text and url == null and/or empty
View Full Code Here

Examples of org.emrys.webosgi.common.license.License

  public ComActivator[] getInvalidCompnents() {
    Iterator<ComActivator> vit = bundleActivatorMap.values().iterator();
    List<ComActivator> result = new ArrayList<ComActivator>();
    while (vit.hasNext()) {
      ComActivator activator = vit.next();
      License license = activator.getValidLicense();
      if (license == null) {
        result.add(activator);
      }
    }
    return result.toArray(new ComActivator[result.size()]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.