On 12/10/2012 04:03 PM, Greg Hellings wrote:
> I'm trying to generate two different Qooxdoo applications which need
> to coexist in the same output directory when I run 'generate.py build'
> on each. Since the two applications have different names, this isn't
> such a big deal for the JavaScript files, but I have two questions
> about how to get the build to behave correctly:
>
> First, I tried shadowing the 'build' target with the following options
> in both config.json files:
> "build" : {
>    "compile-options" : {
>      "paths" : {
>        "app-root" : "../common_build"
>      }
>    }
> }
> but this does not appear to have changed the results of the build
> output. Both applications still built directly into their 'build'
> directory internal to the application.

The best way to tweak the build output path is to set the BUILD_PATH 
macro in the build_script job's or global 'let' section.

The 'app-root' key is only interesting for the 'source' version when you 
want to load the app from an index html other than source/index.html.


>
> Second, both applications will have an index.html file which will
> result in a collision between them when they are building into the
> same target directory. I would like one to have an 'index.html' file
> and the other to have a different name, e.g. 'common.html'. I tried
> accomplishing this by shadowing the 'build-files' target with the
> following:
> "build-files" : {
>    "copy-files" : {
>      "files" : ["common.html"]
>    }
> }
> and renaming the index.html in that Qooxdoo application to
> common.html. Is this the proper way to go about it? It appears to have
> worked as I intend (within the limits of figuring out my first
> problem), but I just want to be sure this is the proper way to change
> the index.html name in a Qooxdoo application.

That's perfect. The generator doesn't touch .html files other than 
copying them around through the 'copy-files' directive. So if you make 
sure your .html files get copied to the build version you're all set. 
The 'build_files' job is the right place, and filling the 'files' key 
will copy those files in addition to the default index.html. You can get 
rid of index.html altogether if you make the key non-merging, by 
prefixing it with a '=' like "=files".

T.


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to