How do I configure the IDE to put logs and other files in separate project folders?

Question ID : 130
Created on 2010-06-03 at 1:54 PM
Author : Veryant Support [support@veryant.com]

Online URL : http://support.veryant.com/support/phpkb/question.php?ID=130



Question:

By default, trace logs and data files are created in my project's output folder. How do I configure the IDE to put these and other files in separate project folders?

Answer:

When running or debugging the isCOBOL IDE sets the current working directory to the project's output folder. This explains why your log files are getting written there. You can specify directories for log files, compiler error and listing files, and even data files in your project as follows:

isCOBOL properties can be placed in a file named "iscobol.properties" in your output folder. Or they can be placed in any file you choose and then specify this file on the command line using the system property -Discobol.conf=filename.

For example, add a folder to your project named "logs". Then create a file in your output folder named iscobol.properties with the following contents:

iscobol.tracelevel=31
iscobol.logfile=../logs/iscobol.log

Add "errors" and "listings" folders to your project and then add the following compiler options:

-ef -eo=errors -lf -lo=listings

Add a "data" folder to your project and then add the following to your properties file:

iscobol.file.prefix=../data

The reason to specify "../" in folder names in the properties file is because these folders are one level up from the current working directory when the program runs (i.e. the parent of the output folder), and using "../" allows you to move your project to a different folder without requiring a change to your properties file.


Back to Original Question