(Note that isrun is simply a wrapper for “java com.iscobol.rts.Isrun”)
java -Discobol.conf=myapp.cfg MYAPP
isCOBOL uses the following algorithm for loading properties from the environment and/or the isCOBOL properties file. Properties read in each step override those read in previous steps:
Read environment variables such as those set with SET VAR=VAL. In this case the prefix "iscobol." is stripped from the name before it is looked up in the environment.
Read properties from /etc/iscobol.properties if it exists
Read properties from %HOMEPATH%/iscobol.properties if it exists
Read the first iscobol.properties found in CLASSPATH
Read the file specified as the value of the iscobol.conf property if it exists. iscobol.conf cannot be set in the environment (i.e. isCOBOL does not read the CONF environment variable).
Read properties specified directly with -Discobol.* on the java command line
In the above, %HOMEPATH% is the user’s home directory, and the iscobol.conf value can be the path of a regular disk file, a URL or the name of a class. When the name of a class is specified, isCOBOL searches for a file called iscobol.properties in the same directory or jar file that the class is located in.
by: Veryant Support
This question has been viewed 5814 times so far.
Here to View all the questions in isCOBOL General
There are no attachment file(s) related to this question.
There are no user comments for this question. Be the first to post a comment. Click Here