Re: Questions about the HC Api

2013-07-29 Thread Carsten Ziegeler
Some more :) It seems a Rule is tied to a single SystemAttribute - what if a rule wants to check two values? I have the feeling that we can replace SystemAttribute with a map. The RuleBuilder interface uses the namespace to define whether this builder is responsible for creating a rule with that n

Re: How to evaluate Resource#isResourceType()

2013-07-29 Thread Carsten Ziegeler
Hi, if you're Resource implementation inherits from AbstractResource (which it should), then isResourceType is already implemented for you and you can use this implementation. (Actually this method simply calls ResourceResolver#isResourceType. Regards Carsten 2013/7/30 Dishara Wijewardana > H

How to evaluate Resource#isResourceType()

2013-07-29 Thread Dishara Wijewardana
Hi Ian, How to evaluate Resource#isResourceType(String s). I believe the String we pass is A resource type. So obvious feeling is the equal comparison. But I believe as per JCR spec, that there is a hierarchy of node types. So do we need to consider that also in this case. If so, any APIs availabl

Jenkins build is back to normal : sling-healthcheck-1.6 #69

2013-07-29 Thread Apache Jenkins Server
See

Build failed in Jenkins: sling-trunk-1.6 #1777

2013-07-29 Thread Apache Jenkins Server
See Changes: [rombert] SLING-2789 - deploying Sling 7-SNAPSHOT on Karaf fails Re-added the launchpad/karaf module to the contrib reactor. [rombert] SLING-2789 - deploying Sling 7-SNAPSHOT on Karaf fails Applied patch SLING-2789.2013-

Build failed in Jenkins: sling-trunk-1.6 » Apache Sling Event Support #1777

2013-07-29 Thread Apache Jenkins Server
See -- [...truncated 9412 lines...] 29.07.2013 16:33:47.031 *INFO* [main] PAXEXAM-PROBE-ca2ca4d5-35e2-498f-af9f-a3d63fa54db0 Service [92] ServiceEvent UNREGISTER

[jira] [Commented] (SLING-2984) [Tooling] improve import-content wizard

2013-07-29 Thread Robert Munteanu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722578#comment-13722578 ] Robert Munteanu commented on SLING-2984: There's a project setting for that Sling

[jira] [Commented] (SLING-2984) [Tooling] improve import-content wizard

2013-07-29 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722572#comment-13722572 ] Stefan Egli commented on SLING-2984: Agreed that the target folder is something of an

Build failed in Jenkins: sling-trunk-1.7 » Apache Sling Resource-Based Discovery Service #149

2013-07-29 Thread Apache Jenkins Server
See -- Jul 29, 2013 3:57:51 PM org.apache.maven.cli.event.ExecutionEventLogger projectStarted INFO:

Build failed in Jenkins: sling-trunk-1.7 #149

2013-07-29 Thread Apache Jenkins Server
See Changes: [rombert] SLING-2789 - deploying Sling 7-SNAPSHOT on Karaf fails Re-added the launchpad/karaf module to the contrib reactor. [rombert] SLING-2789 - deploying Sling 7-SNAPSHOT on Karaf fails Applied patch SLING-2789.2013-0

Re: [jira] [Created] (SLING-2979) Scheduled task should only run on leader

2013-07-29 Thread Carsten Ziegeler
Yes, this was my first idea as well (the single property pointing to either an instance id or having the constant "LEADER"). I decided against this as the most common use case right now is "run this on a single instance"; I could also imagine the use case of running the task on a group of machines

[jira] [Commented] (SLING-2984) [Tooling] improve import-content wizard

2013-07-29 Thread Robert Munteanu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722556#comment-13722556 ] Robert Munteanu commented on SLING-2984: I think that the target folder can't be a

Re: svn commit: r1507250 - in /sling/trunk/bundles/commons/scheduler: ./ src/main/java/org/apache/sling/commons/scheduler/impl/

2013-07-29 Thread Felix Meschberger
Hi Am 29.07.2013 um 16:22 schrieb Carsten Ziegeler: > Good catch, somehow I was under the impression that bnd calculates this for > us...but of course it doesn't as it (correctly) takes the statement written > to the pom. BND will calculate the range for Import-Package but it probably cannot for

[jira] [Commented] (SLING-2984) [Tooling] improve import-content wizard

2013-07-29 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722552#comment-13722552 ] Stefan Egli commented on SLING-2984: [~rombert], thanks, good to know. I do have a ten

Re: [jira] [Created] (SLING-2979) Scheduled task should only run on leader

2013-07-29 Thread Felix Meschberger
Hi Am 29.07.2013 um 16:14 schrieb Carsten Ziegeler: > Yepp, I thought about this as well and came to the same conclusion. > However, apart from the Sling ID there is today no other mechanism to > identify an instance - apart from the leader. So I went with the easiest > case first. Right. The Sl

[jira] [Commented] (SLING-2984) [Tooling] improve import-content wizard

2013-07-29 Thread Robert Munteanu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722543#comment-13722543 ] Robert Munteanu commented on SLING-2984: I actually moved the contribution from be

[jira] [Commented] (SLING-2923) release org.apache.sling.jcr.jackrabbit.server 2.1.1

2013-07-29 Thread Robert Munteanu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722541#comment-13722541 ] Robert Munteanu commented on SLING-2923: With the current changes from SLING-2789,

[jira] [Commented] (SLING-2789) deploying Sling 7-SNAPSHOT on Karaf fails

2013-07-29 Thread Robert Munteanu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722538#comment-13722538 ] Robert Munteanu commented on SLING-2789: * Patch applied in http://svn.apache.org/

[jira] [Resolved] (SLING-2789) deploying Sling 7-SNAPSHOT on Karaf fails

2013-07-29 Thread Robert Munteanu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Munteanu resolved SLING-2789. Resolution: Fixed > deploying Sling 7-SNAPSHOT on Karaf fails > ---

[jira] [Commented] (SLING-2984) [Tooling] improve import-content wizard

2013-07-29 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722540#comment-13722540 ] Stefan Egli commented on SLING-2984: Also, move the wizard to be a standard "Import wi

[jira] [Created] (SLING-2985) [Tooling] show content of .content.xml in project explorer

2013-07-29 Thread Stefan Egli (JIRA)
Stefan Egli created SLING-2985: -- Summary: [Tooling] show content of .content.xml in project explorer Key: SLING-2985 URL: https://issues.apache.org/jira/browse/SLING-2985 Project: Sling Issue Ty

[jira] [Created] (SLING-2984) [Tooling] improve import-content wizard

2013-07-29 Thread Stefan Egli (JIRA)
Stefan Egli created SLING-2984: -- Summary: [Tooling] improve import-content wizard Key: SLING-2984 URL: https://issues.apache.org/jira/browse/SLING-2984 Project: Sling Issue Type: Sub-task

Jenkins build is back to stable : sling-trunk-1.6 » Apache Sling Launchpad Testing #1775

2013-07-29 Thread Apache Jenkins Server
See

Jenkins build is back to stable : sling-trunk-1.6 #1775

2013-07-29 Thread Apache Jenkins Server
See

Jenkins build is back to normal : sling-trunk-1.7 #147

2013-07-29 Thread Apache Jenkins Server
See

Re: svn commit: r1507250 - in /sling/trunk/bundles/commons/scheduler: ./ src/main/java/org/apache/sling/commons/scheduler/impl/

2013-07-29 Thread Carsten Ziegeler
Good catch, somehow I was under the impression that bnd calculates this for us...but of course it doesn't as it (correctly) takes the statement written to the pom. Fixed now Carsten 2013/7/29 Felix Meschberger > Hi > > Am 26.07.2013 um 12:07 schrieb < > cziege...@apache.org>: > > >

Jenkins build is back to normal : sling-trunk-1.7 » Apache Sling Event Support #147

2013-07-29 Thread Apache Jenkins Server
See

Re: [jira] [Created] (SLING-2979) Scheduled task should only run on leader

2013-07-29 Thread Carsten Ziegeler
Yepp, I thought about this as well and came to the same conclusion. However, apart from the Sling ID there is today no other mechanism to identify an instance - apart from the leader. So I went with the easiest case first. Regards Carsten 2013/7/29 Felix Meschberger > Hi > > Is it really so, t

Questions about the HC Api

2013-07-29 Thread Carsten Ziegeler
Hi, as the hc tool progresses I think it's time to talk about the API and its intend. I had a brief look at the Java API and I'm a little bit confused. I asume the RulesEngine is an OSGi service which is entended to run rules - wouldn't it be better to give the set of rules to evaluate in the ev

Re: [jira] [Created] (SLING-2979) Scheduled task should only run on leader

2013-07-29 Thread Felix Meschberger
Hi Is it really so, that a job may be run on any instance or the leader instance ? Shouldn't we be able to bind a scheduled job just any instance X where "LEADER" might just be a special well-known instance name (like the HEAD revision in subversion) ? Regards Felix Am 25.07.2013 um 15:59 sch

Re: svn commit: r1507250 - in /sling/trunk/bundles/commons/scheduler: ./ src/main/java/org/apache/sling/commons/scheduler/impl/

2013-07-29 Thread Felix Meschberger
Hi Am 26.07.2013 um 12:07 schrieb : > > +org.apache.sling.discovery, Can we at least declare a very broad import version range ? such as [1.0,2) ? Regards Felix

[jira] [Commented] (SLING-2983) Scripted expressions for Health Check rules

2013-07-29 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722459#comment-13722459 ] Bertrand Delacretaz commented on SLING-2983: Added a JMX binding in revision 1

Jenkins build became unstable: sling-trunk-1.6 » Apache Sling Launchpad Testing #1774

2013-07-29 Thread Apache Jenkins Server
See

Jenkins build became unstable: sling-trunk-1.6 #1774

2013-07-29 Thread Apache Jenkins Server
See

[jira] [Resolved] (SLING-2983) Scripted expressions for Health Check rules

2013-07-29 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz resolved SLING-2983. Resolution: Fixed Committed in revision 1508040 > Scripted express

[jira] [Created] (SLING-2983) Scripted expressions for Health Check rules

2013-07-29 Thread Bertrand Delacretaz (JIRA)
Bertrand Delacretaz created SLING-2983: -- Summary: Scripted expressions for Health Check rules Key: SLING-2983 URL: https://issues.apache.org/jira/browse/SLING-2983 Project: Sling Issue T

Re: FYI, starting a "Sling mail archive server" student project, ok to discuss it here?

2013-07-29 Thread Bertrand Delacretaz
Hi Justin, On Fri, Jul 26, 2013 at 4:43 PM, Justin Edelson wrote: > ...I think using this mailing list is fine, assuming that this project is only > going to have OSS dependencies... Yes that's the idea, to build that project using only dependencies that would work in Sling. > ...I'm less sure