Hi J-B,

> The reason (maybe bad, let's clarify that) is the Java backend for
> that application.
> Will I be able to launch RPC request on a qooxdoo application launched
> from the file system ?

No, but to have proxy/mock objects to decouple the client from the server
is good engineering practice, just think of unit and regression testing.
You would want to be able to test the client independent of the server.

> That's excatly the problem : to produce the application, generate.py
> look for the sdk from QOOXDOO_PATH variable.
> Then it is wrongly assume that later, at runtime, the SDK will be at a
> place that correspond to QOOXDOO_PATH.
> But that's wrong in our config. The path at runtime is different so
> I'd love to find in the config.json 2 variables :
> * one for specifying to generate.py where is the SDK to find the
> generator.py and all the ressources
> * one to take into account in the generated application for the URI od
> the SDK at runtime eventually behind a web server.

Ok, try the following. In your config.json, add this job to the "jobs" map:

  "libraries" : {
    "library" : [
      {  "manifest" : "${QOOXDOO_PATH}/Manifest.json",
         "uri"      : "<your_desired_SDK_path_for_runtime>"
      }
    ]
  }

Now the URIs to the resources from the SDK will be generated using the
path prefix given in "uri" (only specify the path up to the directory
including the SDK's Manifest.json).

See these documents for more information:
http://qooxdoo.org/documentation/0.8/generator_config_ref#library
http://qooxdoo.org/documentation/0.8/generator_config_articles#library_key_and_manifest_files

> No, it's not 2 SDK : it is only one but can't be the same path from
> file system (generator.py) and runtime.
> It is also important to note it is not a simple web server but a Java
> web container : tomcat.

So, can you tell a bit more about how the path to the SDK differs in your
runtime environment (tomcat)?!

>> That's right, you can invoke generator.py directly if you like.
> Does it change something ? Could that make QOOXDOO_PATH only useful
> for runtime ?

No, it doens't make any difference whether you use generate.py or
generator.py.

HTH, Thomas




------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to