Hello,

I frequently have to modify some classes to make Production Build.

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. 

I need a condition to check that the call is coming from Development or
Production.

E.g.,
//var tableModel = new MyRemoteTableModel(qx.io.remote.Rpc.makeServerURL(),
"getRowCount", "getData", this); <---- PROD
var tableModel = new
MyRemoteTableModel("http://localhost:8080/myService/.qxrpc";, "getRowCount",
"getData", this); <--- DEV

When I build the above code, I need to switch the two lines.

I have similar things at different places. It is so painful sometimes.

It would be nice to pass a parameter at build time, so I can check for it's
existence?

If (qx.build_parameter != undefined) it is PROD
else it is DEV

Any other solution is appreciated.

Than ks.
Kanugula. 
-- 
View this message in context: 
http://www.nabble.com/Can-I-pass-any-parameter-in-Qooxdoo-build-to-identify-Prod-or-Dev--tp16349822p16349822.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

Reply via email to