On 07/22/2011 05:22 PM, John Spackman wrote:
Hi,
I need to change the sourceUri for the current application but can't
get it to work; in my app's config.json I've tried setting:
jobs/source/compile-options/uris/script
jobs/source/compile-options/uris/source
jobs/source/compile-options/uris/sourceUri
But it doesn't work -- what am I doing wrong?
John,
first, don't guess, but see the config ref in the manual :).
This would have told you that there are just 'script' and 'resource'
sub-keys, but neither 'source' nor 'sourceUri'. Also, it would have told
you that these keys are only relevant for the *build* version of your app.
Why? In the build version, everything is collected under build/script
and build/resource, but these two paths might look different if you move
the index.html to another place. You use these two keys to adjust that.
The source version is totally different, and those keys are ignored
there. In the source version, you have *multiple* script and resource
URIs - one for each involved library -, and they are calculated for each
library individually, as they are found on the file system.
If you must tweak the URIs in the source version, you need to set them
on a per-library base. This can be achieved using the
"library/<lib>/uri" key of each library (consequently, the build version
ignores *those*). But mind that you only specify the URI to the *root*
directory of the library; beneath that, 'script' and 'resource' entries
from the lib's Manifest.json apply.
See [1] for an in-depth treatment of URIs (there is a little document
bug in the example involving blank.gif that needn't bother you).
HTH,
T.
[1]
http://manual.qooxdoo.org/1.5.x/pages/tool/generator_config_articles.html#uri-handling
------------------------------------------------------------------------------
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