Hi,

I guess the basefile.js is not a qooxdoo class right?

You can include it by adding the following key to an exisiting job:

add-script

e.g.

 "build-script" :
    {
      "add-script" :
      [
        {
          "uri" : "resource/qx/mobile/js/iscroll.js"
        }
      ]
...

http://manual.qooxdoo.org/1.5.x/pages/tool/generator_config.html

The script will be loaded before all other scripts.

Tino



Am 22.07.2011 um 15:36 schrieb Seldaiendil D. Flourite:

Hi again,

I'm trying to compile my app with qooxdoo's generate.py. My app has a 
Manifest.json and the skeleton and compiles ok, but my app has a "base file" 
than contains common functions and utils without a qooxdoo class, so I need 
this class to be compiled at the top of my application files I mean, if my 
directory tree is like this:

myapp/
  source/
    class/
      myapp/
        Message.js
        ui/
          Window.js
      basefile.js

I need basefile.js to be loaded first.

For now I hacked it to compile inserting at the top of basefile.js

qx.Class.define("myapp.basefile", {});
qx.Class.undefine("myapp.basefile");

The generate.py config.json has this configuration

...
              "include": ["qx.*", "myapp.*"],
              "library": [
                {
                  // Qooxdoo manifest
                  "manifest": "Manifest.json"
                },
                // I need basefile.js to be loaded after Qooxdoo but before the 
rest of myapp
                {
                  // MyApp manifest
                  "manifest": "../../myapp/Manifest.json"
                }
              ],
...

And I dont want to create another manifest just to fix this.

Is there any way to build basefile.js before all myapp code?

Thanks u all

---
Seldaiendil
------------------------------------------------------------------------------
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

Tino Butz
Mobile Architect

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-4488
[email protected]<mailto:[email protected]>

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Robert Hoffmann, 
Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren

------------------------------------------------------------------------------
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

Reply via email to