Important: Linked resources are an Eclipse concept and are supported for COBOL projects, but Micro Focus recommends you use project dependencies where possible, and create projects to contain the resources and define an appropriate dependency between them.
You can link to individual source files and to folders containing sources. You can specify absolute paths to the sources. Alternatively, you can use a variable to define a path and then you can link to sources using a relative path.
Tip: You can prevent linked folders, copybooks, or other sources from being built by right-clicking them in COBOL Explorer and clicking
Build Action > Ignore.
To link to a file
Restriction: You cannot link to an individual copybook file. To link to a copybook, you must link to the containing folder instead.
- Click
File > New > Other.
- Expand
General and click
File.
- Enter the name to use for the linked resource. You can enter an alias.
- Click
Advanced.
- Select
Link to file in the file system and browse to the file to link to. You can also click
Variables and define a path variable, so that you can link to files using a relative path.
To link to a folder containing copybooks
- Click
File > New > Other.
- Expand General and click
Folder.
- Enter the name to use for the folder containing the copybooks or linked resources. You can enter an alias.
- Click
Advanced.
- Select
Link to alternate location and browse to the folder to link to. You can also click
Variables and define a path variable, so that you can link to folders using a relative path.
To link to a copybook project
- Select your project.
- Right-click and select
Properties.
- Expand Micro Focus > Build Path and click
Projects.
- Click
Add and choose the copybook, or remote copybook, project.