Examples of addIgnores()


Examples of bndtools.VersionControlIgnoresPluginTracker.addIgnores()

            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()) {
            versionControlIgnoresPluginTracker.addIgnores(enabledIgnorePlugins, cnfJavaProject.getProject().getLocation().toFile(), templateIgnores);
        }

        /* Headless build files */
        HeadlessBuildPluginTracker headlessBuildPluginTracker = Plugin.getDefault().getHeadlessBuildPluginTracker();
        Set<String> enabledPlugins = new BndPreferences().getHeadlessBuildPluginsEnabled(headlessBuildPluginTracker, null);
View Full Code Here

Examples of org.bndtools.api.VersionControlIgnoresPlugin.addIgnores()

            /* add the target directory to the project ignores */
            projectIgnores.add(sanitiseGitIgnoreGlob(true, projectPaths.getTargetDir(), true));

            try {
                plugin.addIgnores(projectDir, projectIgnores);
            } catch (Throwable e) {
                logger.logError(String.format("Unable to add %s ignores %s to the project in %s", plugin.getInformation().getName(), projectIgnores, projectDir), e);
            }
        }
    }
View Full Code Here

Examples of org.bndtools.api.VersionControlIgnoresPlugin.addIgnores()

            if (plugin == null) {
                continue;
            }

            try {
                plugin.addIgnores(dstDir, ignores);
            } catch (Throwable e) {
                logger.logError(String.format("Unable to add %s ignores %s to directory %s", plugin.getInformation().getName(), ignores, dstDir), e);
            }
        }
    }
View Full Code Here

Examples of org.bndtools.api.VersionControlIgnoresPlugin.addIgnores()

                 * when the version control system can't store empty directories and
                 * the source directory doesn't exist or is empty, then add empty ignores
                 */
                if (!plugin.canStoreEmptyDirectories() && (!srcDirFile.exists() || (srcDirFile.list().length == 0))) {
                    try {
                        plugin.addIgnores(srcDirFile, emptyIgnores);
                    } catch (Throwable e) {
                        logger.logError(String.format("Unable to add empty %s ignores to the project in %s", plugin.getInformation().getName(), projectDir), e);
                    }
                }

View Full Code Here

Examples of org.bndtools.versioncontrol.ignores.manager.api.VersionControlIgnoresManager.addIgnores()

            List<String> ignoredEntries = new LinkedList<String>();
            ignoredEntries.add(ignoresManager.sanitiseGitIgnoreGlob(true, "/.gradle/", true));
            ignoredEntries.add(ignoresManager.sanitiseGitIgnoreGlob(true, "/reports/", true));
            ignoredEntries.add(ignoresManager.sanitiseGitIgnoreGlob(true, Workspace.getDefaults().getProperty(Constants.DEFAULT_PROP_TARGET_DIR), true));

            ignoresManager.addIgnores(enabledIgnorePlugins, workspaceRoot, ignoredEntries);
        }
    }
}
View Full Code Here

Examples of org.bndtools.versioncontrol.ignores.manager.api.VersionControlIgnoresManager.addIgnores()

        VersionControlIgnoresManager manager = this.manager.get();
        if (manager == null) {
            return;
        }

        manager.addIgnores(plugins, dstDir, ignores);
    }

    @Override
    public void addIgnores(Set<String> plugins, File dstDir, List<String> ignores) {
        VersionControlIgnoresManager manager = this.manager.get();
View Full Code Here

Examples of org.bndtools.versioncontrol.ignores.manager.api.VersionControlIgnoresManager.addIgnores()

        VersionControlIgnoresManager manager = this.manager.get();
        if (manager == null) {
            return;
        }

        manager.addIgnores(plugins, dstDir, ignores);
    }

    @Override
    public Set<String> getPluginsForProjectRepositoryProviderId(String repositoryProviderId) {
        VersionControlIgnoresManager manager = this.manager.get();
View Full Code Here

Examples of org.bndtools.versioncontrol.ignores.manager.api.VersionControlIgnoresManager.addIgnores()

            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

Examples of org.bndtools.versioncontrol.ignores.manager.api.VersionControlIgnoresPlugin.addIgnores()

            if (plugin == null) {
                continue;
            }

            try {
                plugin.addIgnores(dstDir, ignores);
            } catch (Throwable e) {
                logger.logError(String.format("Unable to add %s ignores %s to directory %s", plugin.getInformation().getName(), ignores, dstDir), e);
            }
        }
    }
View Full Code Here

Examples of org.bndtools.versioncontrol.ignores.manager.api.VersionControlIgnoresPlugin.addIgnores()

                     * when the version control system can't store empty directories and
                     * the source directory doesn't exist or is empty, then add empty ignores
                     */
                    if (!plugin.canStoreEmptyDirectories() && (!srcDirFile.exists() || (srcDirFile.list().length == 0))) {
                        try {
                            plugin.addIgnores(srcDirFile, emptyIgnores);
                        } catch (Throwable e) {
                            logger.logError(String.format("Unable to add empty %s ignores to the project in %s", plugin.getInformation().getName(), projectDir), e);
                        }
                    }

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.