Daniel,
On 08/19/2012 08:45 PM, Daniel Gagnon wrote:
> I'm trying to create the following structure:
>
> / (slightly dynamic, can redirect to either source or build)
> /static/qx/source/script/custom.js
> /static/qx/build/script/custom.js
>
> I can change my index.html to point to
> "static/qx/(source|build)/custom.js" without any issue but the
> generated custom.js fails to load the remaining files.
>
> I tried setting app-root to "qx/source" in the "source-script" and got
> a warning that I was shadowing the original
That is ok and can be silenced by a config key.
> but the build system seems to ignore that.
Your approach is actually right. The point is that you give the path
from config dir to index.html dir in 'app-root', and the generator will
calculate backwards from there. I suppose in your setup (assuming
index.html is in '/' and config.json is in /static/qx) this would be
"paths" : {
"app-root" : "../.."
for 'source-script'.
For the 'build-script' job 'app-root' is not suitable, and it will be
necessary to set
"uris": {
"script" : "qx/build/script",
"resource" : "qx/build/resource"
(which calculates from the app root to the respective dirs). Please
consult the config reference in the manual for details.
T.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel