-
|
Had a bit of a question as to whether or not something is possible using the existing config. However we have a several classes which compile fine within mpro. Our folder structure as an example: Customer.cls could be defined as the following: But someone for example has given Employee.cls the following definition: And the following error occurs: This is a snippet of how the openedge-project.json build path is configured for context: Is there any way this is able to still be able to compile? Or do we need to migrate these classes to use a consistent pattern to work with the extension? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You could add a source entry pointing to Extra note: your propath entry pointing to |
Beta Was this translation helpful? Give feedback.
-
Gilles' suggestion is the better long-term solution, and will save you confusion/suffering over which classes are where and how to reference them. A consistent package (ie folder) structure is really what you should have. That said, the build paths have options to include and/or exclude files based on Ant patterns. The project README has a few more details. So you counlt try setting the includes to only compile classes in the root folder. {
"type": "source",
"path": ".",
"includes": "*.cls",
"excludes": ""
} |
Beta Was this translation helpful? Give feedback.
You could add a source entry pointing to
.(root directory of the project) but I don't recommend that, especially if you keep theobjectsdirectory as a source directory as there will be some overlap between the two entries. I'd keep theobjectsdirectory and either change the class name (and references) to match the right structure. If that implies too many changes in the source code, you can moveobjects/Customer.clstoobjects/objects/Customer.cls. Or better, tosrc/objects/Customer.cls. You can have a look at the directory structure in this sample project: https://github.com/Riverside-Software/sonaroe-test-projectExtra note: your propath entry pointing to
objectsis not required as t…