Carlos <angus / quovadis.com.ar> wrote:

> 
> #compact only removes nils, not empty strings. You should try another
> way to remove empty strings. Probably using #reject or #delete_if.
> 
> #<< doesn't concatenate arrays; it only appends its argument to the
> end of the array. To concatenate you can use #+ or #concat.

ok tanxs, i've changed to :

context = $tag.getPropertyInTree("context") # = "/com-ultrid-yvonthor/"
path = $tag.getPropertyInTree("path")       # = "MaCave/"
fs = JavaLang::System.getProperty("file.separator") # = "/" (MacOS X)

contextL = context.split(fs)
contextL.delete("")
pathL = path.split(fs)
pathL.delete("")

plary = Array.new
plary << contextL << pathL << "languages" << $tbl # $tbl =
"t_bottles_btl"
pl = plary.join "/"

-- 
yt