Re: [J2me-device-db-general] Define custom properties
Brought to you by:
s_szczygiel,
space2
From: Sebastian S. <seb...@op...> - 2006-11-09 13:11:22
|
Or you can include in your source-code (where you use own properties) with //#include "common.inc" Just before you include the device profile. Where common.inc is a file in /build folder (where res.bld is). There you you can define //#define $debug Or whatever you need. > -----Original Message----- > From: j2m...@li... [mailto:j2me- > dev...@li...] On Behalf Of Jim Walt > Sent: Donnerstag, 9. November 2006 14:07 > To: Szasz Pal > Cc: j2m...@li... > Subject: Re: [J2me-device-db-general] Define custom properties > > Thanks! it works. > > I've made some custom --set parameters to exporter in microcode's > build.xml such as > "--set ${prop1}" parameter > > and then in my build.properties project file do > "prop1=DEBUG" > > regards, > Jim > > 2006/11/9, Szasz Pal <sp...@sp...>: > > I think you can edit the build.xml file and add some extra options for > > the exporter. For example if you add the option '--set DEBUG=1' then it > > will be defined in every source file (actually it will be like a > > property, ie. I think you need to use it as $DEBUG) > > > > Jim Walt wrote: > > > Hi! > > > > > > How can I use my own-defined properties? > > > I want to define "DEBUG" property and use it with preprocessor, but i > > > cant get where to put it. > > > > > > e.g. > > > Canvas.java > > > > > > //#ifdef DEBUG > > > render_debug(); > > > //#endif > > > I want to define it global. Putting "//#define DEBUG" in every source > > > header is inconvenient. > > > > > > > > > best regards, > > > Jim > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > J2me-device-db-general mailing list > J2m...@li... > https://lists.sourceforge.net/lists/listinfo/j2me-device-db-general |