> Hi
>
> I have now changed my structure so that I have two projects "dcbase" for
> my base classes and a second real project called "kardpoll". I then
> changed the config.json and added
>
> "library" :
> [
> {
> "manifest" : "../dcbase/Manifest.json"
> }
> ]
>
> I can now simply use dcbase classes in my kardpoll application. The
> only problem left to solve is the images used in the dcbase classes.
> When used in the kardpoll application the images are missing. I assume
> this is due to the relative paths. So is there a way to refer to these
> images so that they will work in any application?
This should work out of the box. I'm not sure, though, I understand what
you mean by "relative paths". In qooxdoo, images are referenced by their
"resource id". This is the trailing end of their file system path, but
only the part under the "source/resource" root. What you get is a resource
id that always has to start with a name space, e.g. like
"dcbase/images/i.png". This resource id, together with the "library" entry
to the library, is all the build system needs to know to locate the image.
One crucial aspect is that the library containing the image is known to
*all* relevant build jobs. E.g. it is not enough that dcbase is known to
the "build-script" job for the script generation, it has also to be known
to the "build-resources" job which copies resource files to the build
version. Maybe there is an issue here in your configuration.
An easy way around this is to override the "libraries" (mind the plural)
job in your own config. This makes sure your additional library gets
honored in all relevant jobs:
"libraries": {
"library" : [
{ "manifest" : "../dcbase/Manifest.json" }
]
}
Take a look at the config.json of a vanilla gui skeleton which has a
commented out example of this.
T.
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel