| From | Sent On | Attachments |
|---|---|---|
| Bertrand Delacretaz | Apr 14, 2008 8:45 am | |
| Carsten Ziegeler | Apr 14, 2008 9:11 am | |
| Alexander Klimetschek | Apr 14, 2008 9:25 am | |
| Carsten Ziegeler | Apr 16, 2008 1:00 am | |
| Bertrand Delacretaz | Apr 16, 2008 5:43 am | |
| Carsten Ziegeler | Apr 16, 2008 5:52 am | |
| Felix Meschberger | Apr 16, 2008 8:11 am | |
| Carsten Ziegeler | Apr 16, 2008 9:09 am | |
| Carsten Ziegeler | Apr 16, 2008 11:20 pm | |
| Bertrand Delacretaz | Apr 17, 2008 12:00 am | |
| Gert Vanthienen | Apr 17, 2008 12:49 am | |
| Juanjo Vázquez | Apr 17, 2008 1:33 am | |
| Alexander Klimetschek | Apr 17, 2008 1:48 am | |
| Michael Marth | Apr 17, 2008 6:39 am | |
| Bertrand Delacretaz | Apr 18, 2008 12:21 am | |
| Bertrand Delacretaz | Apr 18, 2008 12:24 am | |
| Felix Meschberger | Apr 18, 2008 12:56 am | |
| Michael Marth | Apr 18, 2008 1:33 am | |
| Bertrand Delacretaz | Apr 18, 2008 1:36 am | |
| Bertrand Delacretaz | Apr 18, 2008 1:43 am | |
| Felix Meschberger | Apr 18, 2008 2:10 am | |
| Bertrand Delacretaz | Apr 18, 2008 2:16 am | |
| Felix Meschberger | Apr 18, 2008 4:18 am | |
| Carsten Ziegeler | Apr 18, 2008 4:59 am | |
| Felix Meschberger | Apr 18, 2008 5:54 am | |
| Bertrand Delacretaz | Apr 18, 2008 5:58 am | |
| Felix Meschberger | Apr 18, 2008 6:16 am | |
| Bertrand Delacretaz | Apr 18, 2008 6:19 am | |
| Carsten Ziegeler | Apr 18, 2008 6:21 am | |
| Felix Meschberger | Apr 18, 2008 6:45 am | |
| Carsten Ziegeler | Apr 18, 2008 6:53 am | |
| Bertrand Delacretaz | Apr 18, 2008 6:53 am | |
| Felix Meschberger | Apr 18, 2008 7:06 am | |
| Felix Meschberger | Apr 18, 2008 7:07 am | |
| Carsten Ziegeler | Apr 18, 2008 7:11 am | |
| Carsten Ziegeler | Apr 18, 2008 7:22 am | |
| Felix Meschberger | Apr 18, 2008 7:30 am | |
| Carsten Ziegeler | Apr 18, 2008 7:35 am | |
| Felix Meschberger | Apr 18, 2008 7:43 am | |
| Carsten Ziegeler | Apr 18, 2008 7:49 am | |
| Tobias Bocanegra | Apr 18, 2008 9:33 am | |
| David Nuescheler | Apr 25, 2008 7:40 am | |
| Felix Meschberger | Apr 25, 2008 8:52 am | |
| Tobias Bocanegra | Apr 25, 2008 9:35 am | |
| Dominik Süß | Apr 25, 2008 10:09 am | |
| Dominik Süß | Apr 25, 2008 12:07 pm | |
| Carsten Ziegeler | Apr 26, 2008 10:16 am | |
| Tobias Bocanegra | Apr 26, 2008 10:45 am | |
| Dominik Süß | Apr 26, 2008 1:45 pm | |
| Tobias Bocanegra | Apr 26, 2008 2:14 pm | |
| David Nuescheler | Apr 27, 2008 4:37 am | |
| Bertrand Delacretaz | Apr 28, 2008 6:21 am | |
| Felix Meschberger | Apr 28, 2008 6:40 am | |
| Felix Meschberger | Apr 28, 2008 8:33 am | |
| Bertrand Delacretaz | Apr 29, 2008 12:50 am |
| Subject: | Re: Simplifying script paths and names? | |
|---|---|---|
| From: | Carsten Ziegeler (czie...@apache.org) | |
| Date: | Apr 18, 2008 6:21:23 am | |
| List: | org.apache.incubator.sling-dev | |
Felix Meschberger wrote:
Hi,
Am Freitag, den 18.04.2008, 14:59 +0200 schrieb Bertrand Delacretaz:
On Fri, Apr 18, 2008 at 2:54 PM, Felix Meschberger <fmes...@gmail.com> wrote:
Am Freitag, den 18.04.2008, 13:59 +0200 schrieb Carsten Ziegeler:
...Given that we search in /A and /V, is first /A searched for possible script and only if there is none, /V is searched? Or is the script search alternating between /A and /V?
We must search both locations "at the same" time. I could imagine something like:
(1) find best match in /A (aka /apps) (2) find better match /V (aka /libs), otherwise use result of (1)...
XSLT uses a numeric priority scheme to handle such things, we could probably use something similar: find scripts in both locations, compute their numeric priorities, use the best match or complain (probably only a warning) if there's a tie.
See http://www.w3.org/TR/xslt#conflict for inspiration.
I was in fact thinking of calculating a weight value for each script path and take the one with the greatest value. But I think, it is probably even better to make use of the Comparable interface (or Comparator depending on the actual implementation) and be able to just compare two objects representing the scripts and using the "higher" one.
Hmm, I know that we can cache the results, but isn't this too expensive? (First searching all configured paths - there could be more than two and then use the best result). For a given search path we have a well-defined search order for the script (as outlined in the bug), so we make this the outer loop and the inner loop iterates over the configured scripts. As soon as a script is found, we can use that.
Carsten
-- Carsten Ziegeler czie...@apache.org





