B4J Question Programmatically detect B4J Bridge

lip

Active Member
Licensed User
Longtime User
I use B4J to develop a Raspberry Pi server/access point program. Having prepared a new release by testing with B4J bridge (either run or debug) I release it by transferring the .jar file onto the Pi so that the Pi runs my program on startup (using crontab).

In normal mode (program started from the copied .jar file) there a a few house keeping functions that are called before the program gets going. I would like to skip these housekeeping steps when I run from B4J bridge as it unnecessarily delays startup during development.

Is there a simple way to detect that I am programmatically detect that I am running in B4J bridge?

Desired Function: B4JBridgeMode:
If Not(B4JBridgeMode) Then
    Housekeeping
End If
 
Top