Permanent Vs. One Time Options

“undjava” lets you control every aspect of the parsing in the same way the Project Configure dialog does in Understand for Java’s GUI. One important difference is that with “undjava” options can be permanent or just for the invocation of “undjava”.

Here is the rule: Any option specified when creating a database will be permanently stored as an option to be used with future uses of “undjava” (unless overridden or reset using the Understand for Java GUI).

So...

undjava -db foo.udj -create -include /usr/myincludes 

permanently adds “/usr/myincludes” to the include path, while

undjava -db foo.udj -include /usr/myincludes/test 

uses that include path only for this invocation of “undjava”.

The exception is that options that add files to the project (for example, -add) are always stored permanently unless later modified in the GUI environment.

When you use the -create option, filenames specified on the command line are treated as if they were used with the -add option (to add them to the project). When you do not use the -create option, filenames specified on the command line are treated as a list of files to be reparsed.


Scientific Toolworks, Inc.
http://www.scitools.com