Package org.apache.sling.ide.log

Examples of org.apache.sling.ide.log.Logger.trace()


                try {
                    ArchetypeCatalog catalog = catalogFactory.getArchetypeCatalog();
                    @SuppressWarnings("unchecked")
                    java.util.List<Archetype> arcs = catalog.getArchetypes();

                    logger.trace("Catalog factory {0} provided {1} archetypes", catalogFactory,
                            arcs != null ? arcs.size() : 0);

                    if (arcs != null) {
                        candidates.addAll(arcs);
                    }
View Full Code Here


                }
            }
            monitor.worked(1);
            boolean changed = false;

            logger.trace("Considering {0} archetypes from {1} archetype catalogs", candidates.size(),
                    archetypeCatalogs.size());

            for (Archetype candidate : candidates) {
                if (getWizard().acceptsArchetype(candidate)) {
                    String key = keyFor(candidate);
View Full Code Here

            for (Archetype candidate : candidates) {
                if (getWizard().acceptsArchetype(candidate)) {
                    String key = keyFor(candidate);
                    Archetype old = archetypesMap.put(key, candidate);

                    logger.trace("Registered archetype {0}", candidate);

                    if (old == null || !old.equals(candidate)) {
                        changed = true;
                    }
View Full Code Here

                    if (old == null || !old.equals(candidate)) {
                        changed = true;
                    }

                    logger.trace("Old archetype was {0}, changed = {1}", old, changed);
                }
            }

            monitor.worked(1);
            if (changed || archetypesMap.isEmpty()) {
View Full Code Here

                }
            }

            monitor.worked(1);
            if (changed || archetypesMap.isEmpty()) {
                logger.trace("Triggering refresh since changed is true");
                Display.getDefault().asyncExec(new Runnable() {
                    public void run() {
                        Set<String> keys = archetypesMap.keySet();
                        knownArchetypes.removeAll();
                        for (String aKey : keys) {
View Full Code Here

    public void configure(ProjectConfigurationRequest configRequest, IProgressMonitor monitor) throws CoreException {
        // at this point the JDT project is already created by the tycho plugin
        // we just need to setup the appropriate facets
        Logger logger = Activator.getDefault().getPluginLogger();
        IProject project = configRequest.getProject();
        logger.trace("BundleProjectActivator called for POM {0} and project {1}", configRequest.getPom().getFullPath(),
                project.getName());

        // check for maven-sling-plugin as well (to make sure this is a Sling project)
        for (Plugin plugin : configRequest.getMavenProject().getBuildPlugins()) {
            if (plugin.getArtifactId().equals(MAVEN_SLING_PLUGIN_ARTIFACT_ID)
View Full Code Here

        // check for maven-sling-plugin as well (to make sure this is a Sling project)
        for (Plugin plugin : configRequest.getMavenProject().getBuildPlugins()) {
            if (plugin.getArtifactId().equals(MAVEN_SLING_PLUGIN_ARTIFACT_ID)
                    && plugin.getGroupId().equals(MAVEN_SLING_PLUGIN_GROUP_ID)) {
                logger.trace(
                        "Found maven-sling-plugin in build plugins for project {0}, therefore adding sling bundle facets!",
                        project.getName());
                ConfigurationHelper.convertToBundleProject(project);
                return;
            }
View Full Code Here

                        project.getName());
                ConfigurationHelper.convertToBundleProject(project);
                return;
            }
        }
        logger.trace("Couldn't find maven-sling-plugin in build plugins for project {0}", project.getName());
    }
}
View Full Code Here

        IJavaProject javaProject = ProjectHelper.asJavaProject(project);

        IFolder outputFolder = (IFolder) project.getWorkspace().getRoot().findMember(javaProject.getOutputLocation());

        if (!outputFolder.getFullPath().isPrefixOf(manifest.getFullPath())) {
            pluginLogger.trace("Ignoring manifest found at {0} since it is not under the output directory at {1}",
                    manifest.getFullPath(), outputFolder.getFullPath());
            return Collections.emptyList();
        }

        List<IFile> missingDescriptors = new ArrayList<IFile>();
View Full Code Here

                String[] entries = serviceComponentHeader.split(",");
                for (String entry : entries) {
                    entry = entry.trim();

                    if (entry.contains("*")) {
                        pluginLogger.trace("Ignoring wildcard Service-Component entry {0}", entry);
                        continue;
                    }

                    IFile descriptor = outputFolder.getFile(entry);

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.