Ok it seem that if
+ I copy the images inside a real arborescence instead of "dotted"
folder name,
+ I declare assets using #asset(org/argeo/slc/ria/*) for example
+ And then call images using something like ICON =
"org/argeo/slc/ria/my_image.png"
it's working for both SRC and BUILD.
[Using dots instead of slash does not seem to work, should it? Where?]
I'll go through my code and fix this! Thanks a lot Thomas
Cheers
Charles
Le 14/07/2010 15:58, thron7 a écrit :
>
> 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
>
>
------------------------------------------------------------------------------
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