On 07/14/2010 02:02 PM, Charlie wrote:
> I have :
> #asset(argeo-ria-lib/slc/resource/org.argeo.slc.ria/*)

Ah, this might be an issue. Arguments to #asset() denote resource
*id's*, and resource id's always start with the name space. This is the
path suffix starting from below the "source/resource" folder of the
library. As you have a complex name space, I presume your path suffix
below "source/resource" would be like this:

  #asset(org/argeo/slc/ria/*)

Or do you actually have a single directory named "org.argeo.slc.ria"?
Then this might be confusing the generator. Keep in mind that "." in an
id are translated to "/" on the file system. It might be that this was
handled differently in older qooxdoo versions.

> I ended up using such a path because there was problem with the 
> generator that searches only on the "end" of the string, thus if I had 
> resources in both an "ria" library and "org.argeo.slc.ria" library, 
> there was a confusion. Resources are well copied, but does this #asset 
> key have an impact in the resourcesManager?

It has, as the images that are covered by the #asset hints are also
automatically registered with the ResourceManager, so they become
"managed resources". Managed images would return a true value when
checked with ResourceManager.has().

> qx.util.ResourceManager.getInstance().has("org.argeo.slc.ria/office-chart.png")
> 
> SOURCE : true
> BUILD : false

Now this is interesting!

Could you just check

- the directory structure beneath 'source/resource' of this library. Is
it like I hope "org/argeo/slc/..."?

- the directory structure beneath 'build/resource'. Is it the same, or
is it different?

- the generated script under 'build/script/<yourapp>.js'. It has very
long lines so don't be shocked. Search for the string
"office-chart.png". Is it present? If so, it should be at the end of a
map key. What is the entire key? The map value should be [<int>, <int>,
'png', <string>]. The fourth entry of this value, the <string>, what
does it say?

T.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to