Package org.apache.sling.ide.log

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


            setModulePublishState(module, IServer.PUBLISH_STATE_NONE);
            return;
        }
       
        if (kind == IServer.PUBLISH_FULL && deltaKind == ServerBehaviourDelegate.REMOVED) {
            logger.trace("Ignoring request to unpublish all of the module resources");
            setModulePublishState(module, IServer.PUBLISH_STATE_NONE);
            return;
        }

        if (ProjectHelper.isBundleProject(module[0].getProject())) {
View Full Code Here


                            deltaTrace.append("UNKNOWN - ").append(resourceDelta.getKind());
                    }

                    deltaTrace.append("for resource ").append(resourceDelta.getModuleResource());

                    logger.trace(deltaTrace.toString());

                    switch (resourceDelta.getKind()) {
                        case IModuleResourceDelta.ADDED:
                        case IModuleResourceDelta.CHANGED:
                        case IModuleResourceDelta.NO_CHANGE: // TODO is this needed?
View Full Code Here

        Logger logger = Activator.getDefault().getPluginLogger();

        IPath currentPath = moduleResource.getModuleRelativePath();

        logger.trace("Ensuring that parent of path {0} is published", currentPath);

        // we assume the root is always published
        if (currentPath.segmentCount() == 0) {
            logger.trace("Path {0} can not have a parent, skipping", currentPath);
            return;
View Full Code Here

        logger.trace("Ensuring that parent of path {0} is published", currentPath);

        // we assume the root is always published
        if (currentPath.segmentCount() == 0) {
            logger.trace("Path {0} can not have a parent, skipping", currentPath);
            return;
        }

        IPath parentPath = currentPath.removeLastSegments(1);
View Full Code Here

        IPath parentPath = currentPath.removeLastSegments(1);

        // already published by us, a parent of another resource that was published in this execution
        if (handledPaths.contains(parentPath)) {
            logger.trace("Parent path {0} was already handled, skipping", parentPath);
            return;
        }

        for (IModuleResource maybeParent : allResources) {
            if (maybeParent.getModuleRelativePath().equals(parentPath)) {
View Full Code Here

                // handle the parent's parent first, if needed
                ensureParentIsPublished(maybeParent, repository, allResources, handledPaths);
                // create this resource
                execute(addFileCommand(repository, maybeParent));
                handledPaths.add(maybeParent.getModuleRelativePath());
                logger.trace("Ensured that resource at path {0} is published", parentPath);
                return;
            }
        }

        throw new IllegalArgumentException("Resource at " + moduleResource.getModuleRelativePath()
View Full Code Here

    public void execute(IProject project, IProjectFacetVersion facetVersion, Object config, IProgressMonitor monitor)
            throws CoreException {

        Logger pluginLogger = Activator.getDefault().getPluginLogger();

        pluginLogger.trace("Installing facet {0} on project {1}", facetVersion, project);

        new ProjectDescriptionManager(pluginLogger).enableValidationBuilderAndCommand(project, monitor);
    }

}
View Full Code Here

            Logger logger = Activator.getDefault().getPluginLogger();

            for (Iterator<IModuleResource> it = resources.iterator(); it.hasNext();) {
        IModuleResource iModuleResource = it.next();
                logger.trace("For module {0} added {1}", getName(), iModuleResource.getModuleRelativePath()
                        .toString());
      }
            return resources.toArray(new IModuleResource[resources.size()]);
        }
View Full Code Here

    public void execute(IProject project, IProjectFacetVersion facetVersion, Object config, IProgressMonitor monitor)
            throws CoreException {

        Logger pluginLogger = Activator.getDefault().getPluginLogger();

        pluginLogger.trace("Installing facet {0} on project {1}", facetVersion, project);

        new ProjectDescriptionManager(pluginLogger).enableValidationBuilderAndCommand(project, monitor);
    }

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