Rules for code generation of SourceArtifacts
Keep in mind the following rules for code generation and locating a SourceArtifact:
- Only advanced code generation supports SourceArtifacts.
- If a class/package belongs to a scope of component, the artifacts under the class are generated according to their code preserving information, the same as other component files.
- If more than one class is mapped to a SourceArtifact, all classes are generated.
- Other elements mapped to the SourceArtifact are also generated.
Note the following rules in relation to the location of the generated files:
- According to folder hierarchy under component. If a class displays in the scope of the component as an element of the folder, the class and its SourceArtifacts aggregates will be generated according to the path of the folder.
- According to the "package as directory" policy, the package hierarchy determines the folder hierarchy.