On 05/31/2011 06:09 PM, mrosoiu wrote:
> I am trying to create a qx application with a custom directory structure
> (maven-like):
> - config.json and Manifest.json in /src/main/config
> - qx classes in /src/main/qx
> - resources in /src/main/resources
> - translations in /src/main/translations
>
> I am executing:
> $ python /path/to/qooxdoo-sdk/tool/bin/generator.py build
> --macro=QOOXDOO_PATH: /path/to/qooxdoo-sdk
> --config=/path/to/application/src/main/config/config.json
>
> and by tweaking the "provides" section in Manifest.json I am able to tell
> the generator script where to get the sources and resources.
>
> The compiled script is however dumped in
> /path/to/application/build/script/app.js and I would like to tell the
> generator to dump it in /path/to/application/target/build when I specify the
> "build" parameter and to /path/to/application/target/source when I specify
> the "source" parameter. Is this possible?

Marius, you've got the "input" side of the story straight, by using the 
Manifest entries. For the "output" side of the generation, you need to 
tweak compile settings in the config.json:

For the source version: Let 'compile-options/paths/file' point to the 
main output file. The path to that file will be used as general 'script' 
directory. You might need to adapt 'compile-options/paths/app-root' too, 
so relative URIs to the various locations are calculated correctly.

For the build version: The same should apply for the build version, 
adapting 'compile-options/paths/file'. Maybe besides 'app-root' you need 
to also tweak 'compile-options/uris/script'. Check it out.

T.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to