Examples of addLicense()


Examples of org.apache.maven.model.Model.addLicense()

            // 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 )
        {
            for ( int k = 0; k < deps.length; k++ )
View Full Code Here

Examples of org.apache.maven.model.Model.addLicense()

            // 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) {
            for (int k = 0; k < deps.length; k++) {
                model.getDependencies().add(deps[k]);
View Full Code Here

Examples of org.apache.maven.model.Model.addLicense()

            // 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 )
        {
            for (Dependency dep : deps) {
View Full Code Here

Examples of org.apache.maven.model.Model.addLicense()

                    model.setLicenses( licenses );
                    while ( xmlStreamReader.nextTag() == XMLStreamConstants.START_ELEMENT )
                    {
                        if ( xmlStreamReader.getLocalName().equals( "license" ) )
                        {
                            model.addLicense( parseLicense( "license", xmlStreamReader, strict, encoding ) );
                        }
                        else
                        {
                            throw new XMLStreamException( "Unrecognised tag: '" + xmlStreamReader.getLocalName() + "'", xmlStreamReader.getLocation() );
                        }
View Full Code Here

Examples of org.apache.maven.project.Model.addLicense()

                    model.setLicenses( licenses );
                    while ( xmlStreamReader.nextTag() == XMLStreamConstants.START_ELEMENT )
                    {
                        if ( xmlStreamReader.getLocalName().equals( "license" ) )
                        {
                            model.addLicense( parseLicense( "license", xmlStreamReader, strict, encoding ) );
                        }
                        else
                        {
                            throw new XMLStreamException( "Unrecognised tag: '" + xmlStreamReader.getLocalName() + "'", xmlStreamReader.getLocation() );
                        }
View Full Code Here

Examples of org.jayasoft.woj.portal.actions.util.ProductList.addLicense()

                    if (prodList == null) {
                        prodList = new ProductList(code);
                        code2ProdList.put(code, prodList);
                    }
                }
                prodList.addLicense(license);
                prodList.increaseProductCount();
            }
        }
       
        request.getSession().setAttribute(Params.USER_GROUP.SHOW.SESSION.PROD_LIST, code2ProdList);
View Full Code Here

Examples of org.xwiki.test.ui.TestExtension.addLicense()

        TestExtension extension = getRepositoryTestUtils().getTestExtension(extensionId, "xar");
        extension.setName("Alice Wiki Macro");
        extension.setSummary("A **useless** macro");
        extension.addAuthor(new DefaultExtensionAuthor("Thomas", null));
        extension.addAuthor(new DefaultExtensionAuthor("Marius", null));
        extension.addLicense(new ExtensionLicense("My own license", null));
        extension.setWebsite("http://www.alice.com");
        getRepositoryTestUtils().addExtension(extension);

        // Search the extension and assert the displayed information.
        ExtensionAdministrationPage adminPage = ExtensionAdministrationPage.gotoPage().clickAddExtensionsSection();
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.