Hi,

You could also use a setting: http://qooxdoo.org/documentation/0.7/settings

Settings are like single-assignment global vars. Unlike with variants, 
all code is retained during builds. You can define your own setting and 
pass it when building the app. In your application code you can test its 
value.

You can pass the respective value through the make file, e.g. through

APPLICATION_ADDITIONAL_SOURCE_OPTIONS = --use-settings myns.buildver:false

for the source version, and

APPLICATION_ADDITIONAL_BUILD_OPTIONS = --use-settings myns.buildver:true

for the build version.

HTH,
Thomas


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

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