Examples of VersionControlIgnoresManager


Examples of org.bndtools.versioncontrol.ignores.manager.api.VersionControlIgnoresManager

        } catch (Exception e) {
            logger.logError("Unable to refresh Bnd workspace", e);
        }

        /* Version control ignores */
        VersionControlIgnoresManager versionControlIgnoresManager = Plugin.getDefault().getVersionControlIgnoresManager();
        Set<String> enabledIgnorePlugins = new BndPreferences().getVersionControlIgnoresPluginsEnabled(versionControlIgnoresManager, cnfJavaProject, null);
        Map<String,String> sourceOutputLocations = JavaProjectUtils.getSourceOutputLocations(cnfJavaProject);
        versionControlIgnoresManager.createProjectIgnores(enabledIgnorePlugins, cnfJavaProject.getProject().getLocation().toFile(), sourceOutputLocations, ProjectPaths.get(ProjectLayout.BND).getTargetDir());
        String templateIgnores = null;
        try {
            templateIgnores = templateConfig.getAttribute("ignores");
        } catch (Exception e) {
            logger.logError("Could not retrieve the 'ignores' property from the cnf template " + bsn, e);
        }
        if (templateIgnores != null && !templateIgnores.isEmpty()) {
            versionControlIgnoresManager.addIgnores(enabledIgnorePlugins, cnfJavaProject.getProject().getLocation().toFile(), templateIgnores);
        }

        /* Headless build files */
        String nobuild = templateConfig.getAttribute("nobuild");
        if (!Processor.isTrue(nobuild)) {
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.