Title: How do I configure the IDE to put logs and other files in separate project folders?
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:

  • Set the iscobol.logfile property to specify the directory where trace log files are written
  • Set the iscobol.file.prefix property to specify the directory where data files are opened
  • Use the -eo compiler option to specify the directory where compiler error files are written
  • Use the -lo compiler option to specify the directory where compiler listing files are written
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.

Authored by: Veryant Support on Thu, Jun 3rd, 2010 at 7:00 PM
This question has been viewed 8003 times so far.
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=130

Powered by PHPKB Knowledge Base Software