Category Image Useful Development Launch Arguments


Here are some of the useful development launch arguments that can improve your WebObjects development...

In XCode, select the menu Project/Edit Active Executable...



Here you can set a number of arguments that will take effect every time you build and run.

Shown here is DWODirectConnectEnabled which allows you to develop directly using Apache instead of Direct Connect. This is better since you are simulating the deployment environment closer using Apache web server than Direct Connect which was from the early days when people may not have had a web server on their development computer.

Also, we have DWOPort. This is great for ensuring a fixed URL everytime your dev app launches. Consequently you can create a shortcut on another computer and use that computer's browser to test the app running on your dev machine while you watch log output on the computer you use for development. The less time you spend switching windows, the faster your development will go!

In general, custom system properties can be defined and added to command line launch arguments by this syntax:
-DtheProperty=propertyValue

.... and retrieved in the program by
System.getProperty("theProperty");



Posted: Tuesday - January 04, 2005 at 03:55 PM        


Published by