kanugula wrote:
>
> Is there a way to pass parameter or any other solution in your mind at
> build time to tell us that it is Production version. I use source version
> for development.
>
If you mapping is "source for development, build for production", why don't
you simply use "qx.debug" variant? It's automatically available for source
versions and avoids creating additional tricky variants. Usage is shown in
Derrel's suggestion but here is a quick adaption for your sample:
if (qx.core.Variant.isSet("qx.debug", "on")) {
// DEVELOPMENT
var tableModel = new
MyRemoteTableModel("http://localhost:8080/myService/.qxrpc", "getRowCount",
"getData", this);
} else {
// PRODUCTION
var tableModel = new MyRemoteTableModel(qx.io.remote.Rpc.makeServerURL(),
"getRowCount", "getData", this);
}
Regards,
Helder Magalhães
--
View this message in context:
http://www.nabble.com/Can-I-pass-any-parameter-in-Qooxdoo-build-to-identify-Prod-or-Dev--tp16349822p16394319.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel