Package ru.aristar.jnuget.rss

Examples of ru.aristar.jnuget.rss.EntryProperties


     * @param entry пакет в RSS
     * @throws NugetFormatException ошибка в формате версии, или не указаны
     * идентификатор и версия
     */
    public NuspecFile(PackageEntry entry) throws NugetFormatException {
        EntryProperties properties = entry.getProperties();
        if (entry.getTitle() == null || properties.getVersion() == null) {
            throw new NugetFormatException("Идентификатор и версия пакета должны"
                    + " быть указаны: " + entry.getTitle() + ':' + properties.getVersion());
        }
        getMetadata().authors = entry.getAuthor() == null ? null : entry.getAuthor().getName();
        getMetadata().dependencies = new Dependencies();
        getMetadata().id = entry.getTitle();
        getMetadata().version = properties.getVersion();
        getMetadata().tags = properties.getTags();
        getMetadata().summary = properties.getSummary();
        getMetadata().copyright = properties.getCopyright();
        getMetadata().dependencies.dependencies = properties.getDependenciesList();
        getMetadata().description = properties.getDescription();
        getMetadata().requireLicenseAcceptance = properties.getRequireLicenseAcceptance();
        getMetadata().projectUrl = properties.getProjectUrl();
        getMetadata().iconUrl = properties.getIconUrl();
        //TODO Дописать свойства
    }
View Full Code Here

TOP

Related Classes of ru.aristar.jnuget.rss.EntryProperties

Copyright © 2018 www.massapicom. 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.