Examples of IvyRetrieveSettings


Examples of com.munian.ivy.module.options.IvyRetrieveSettings

public abstract class AbstractLibraryParser<L extends LibraryParserData, A extends ArtifactLibraryParserData> {

    public List<ParsedConfArtifacts> parseArtifactsInReport(IOTabIvyLogger logger, Ivy ivy, ResolveReport report, ProjectPreferences preferences, ArtifactUpdater updater, SubprojectProvider subProjectProvider) throws IOException, IvyException {
        List<ParsedConfArtifacts> parsedArtifacts = new ArrayList<ParsedConfArtifacts>();
        String[] confs = report.getConfigurations();
        IvyRetrieveSettings retrieveSettings = preferences.getProjectRetrieveSettings();
        L libraryParserData = getLibraryParserData(report, preferences, updater);

        Collection<ModuleId> moduleIds = getIvySubProjects(subProjectProvider);

        for (String conf : confs) {
View Full Code Here

Examples of com.munian.ivy.module.options.IvyRetrieveSettings

        saveCurrentRetrieveSettingsSelection();
        controller.getIvyOptionsLookup().saveIvyOptions();
    }

    private void loadCurrentRetrieveSettingsSelection() {
        IvyRetrieveSettings retrieveSettings = controller.getIvyOptionsLookup().getIvyRetrieveSettingsTemplate(selectedRetrieveTemplateName);
        overridableOptions.loadPanel(retrieveSettings);
        deleteTemplateButton.setEnabled(ivySettingsTemplatesCombo.getItemCount()>1);
    }
View Full Code Here

Examples of com.munian.ivy.module.options.IvyRetrieveSettings

        deleteTemplateButton.setEnabled(ivySettingsTemplatesCombo.getItemCount()>1);
    }

    private void saveCurrentRetrieveSettingsSelection() {
        if (selectedRetrieveTemplateName!=null) {
            IvyRetrieveSettings retrieveSettings = controller.getIvyOptionsLookup().getIvyRetrieveSettingsTemplate(selectedRetrieveTemplateName);
            if (overridableOptions.readPanel(retrieveSettings) || !retrieveSettings.isPersisted()) {
                controller.getIvyOptionsLookup().saveIvyRetrieveSettingsTemplate(selectedRetrieveTemplateName, retrieveSettings);
            }
        }
    }
View Full Code Here

Examples of com.munian.ivy.module.options.IvyRetrieveSettings

        helper.putProperties(PROJECT_PROPERTIES_PATH, properties);
        firePropertyChange();
    }

    private IvyRetrieveSettings loadIvyRetrieveSettings(EditableProperties properties) {
        IvyRetrieveSettings retrieveSettings = new IvyRetrieveSettings();
        retrieveSettings.getJarTypes().addAll(Utilities.stringToCollection(properties.getProperty(IvyRetrieveSettings.PROP_JAR_TYPES)));
        retrieveSettings.getJavadocSuffixes().addAll(Utilities.stringToCollection(properties.get(IvyRetrieveSettings.PROP_JAVADOC_SUFFIXES)));
        retrieveSettings.getJavadocTypes().addAll(Utilities.stringToCollection(properties.get(IvyRetrieveSettings.PROP_JAVADOC_TYPES)));
        retrieveSettings.getSourceSuffixes().addAll(Utilities.stringToCollection(properties.get(IvyRetrieveSettings.PROP_SOURCE_SUFFIXES)));
        retrieveSettings.getSourceTypes().addAll(Utilities.stringToCollection(properties.get(IvyRetrieveSettings.PROP_SOURCE_TYPES)));
        retrieveSettings.setPersisted(true);
        return retrieveSettings;
    }
View Full Code Here

Examples of com.munian.ivy.module.options.IvyRetrieveSettings

        properties.put(IvyRetrieveSettings.PROP_JAR_TYPES, Utilities.collectionToString(projectRetrieveSettings.getJarTypes()));

    }

    private void saveIvyRetrieveSettingsProject(EditableProperties properties) {
        IvyRetrieveSettings retrieveSettings = projectRetrieveSettings;
        properties.put(IvyRetrieveSettings.PROP_JAR_TYPES, Utilities.collectionToString(retrieveSettings.getJarTypes()));
        properties.put(IvyRetrieveSettings.PROP_JAVADOC_SUFFIXES, Utilities.collectionToString(retrieveSettings.getJavadocSuffixes()));
        properties.put(IvyRetrieveSettings.PROP_JAVADOC_TYPES, Utilities.collectionToString(retrieveSettings.getJavadocTypes()));
        properties.put(IvyRetrieveSettings.PROP_SOURCE_SUFFIXES, Utilities.collectionToString(retrieveSettings.getSourceSuffixes()));
        properties.put(IvyRetrieveSettings.PROP_SOURCE_TYPES, Utilities.collectionToString(retrieveSettings.getSourceTypes()));
    }
View Full Code Here

Examples of com.munian.ivy.module.options.IvyRetrieveSettings

        String projectRetrievePattern = retrieveRoot + RETRIEVE_PATTERN;
        ivy.retrieve(report.getModuleDescriptor().getResolvedModuleRevisionId(), projectRetrievePattern, retrieveOptions);
    }

    private void retrieve(IOTabIvyLogger logger, String confs[], String retrieveRoot, Ivy ivy, ProjectPreferences projectPreferences, ResolveReport report) throws IOException {
        IvyRetrieveSettings retrieveSettings = projectPreferences.getProjectRetrieveSettings();
        logger.log(NbBundle.getMessage(IvyFacade.class, "StartRetrieve"), Message.MSG_INFO);

        logger.log(NbBundle.getMessage(IvyFacade.class, "StartJarRetrieve"), Message.MSG_INFO);
        retrieveFiles(confs, ivy, retrieveRoot + JAR_SUB_PATH, report, retrieveSettings.getJarTypes());
        logger.log(NbBundle.getMessage(IvyFacade.class, "EndJarRetrieve"), Message.MSG_INFO);

        logger.log(NbBundle.getMessage(IvyFacade.class, "StartSourceRetrieve"), Message.MSG_INFO);
        retrieveFiles(confs, ivy, retrieveRoot + SOURCE_SUB_PATH, report, retrieveSettings.getSourceTypes());
        logger.log(NbBundle.getMessage(IvyFacade.class, "EndSourceRetrieve"), Message.MSG_INFO);

        logger.log(NbBundle.getMessage(IvyFacade.class, "StartJavadocRetrieve"), Message.MSG_INFO);
        retrieveFiles(confs, ivy, retrieveRoot + JAVADOC_SUB_PATH, report, retrieveSettings.getJavadocTypes());
        logger.log(NbBundle.getMessage(IvyFacade.class, "EndJavadocRetrieve"), Message.MSG_INFO);

        logger.log(NbBundle.getMessage(IvyFacade.class, "EndRetrieve"), Message.MSG_INFO);

    }
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.