Skip to content

Mixing generateStubs with java and xtend files #3667

@dilyanpalauzov

Description

@dilyanpalauzov

My understanding is that in .mwe2 files code { preferXtendStubs = } controls whether .java or .xtend files should be generated. If the destination .xtend or .java file exists, it is not overwritten, otherwise a stub file is created.

Sometimes some people think that some files should be in .java and others in .xtend, e.g. …serializer/SemanticSequencer.xtend and serializer/…SyntacticSequencer.java . The problem report is that in such cases it is not possible to prevent the generation of serializer/…SyntacticSequencer.xtend, if serializer/…SyntacticSequencer.java does exist. And if both files coexist at the end the compilation does not work. So:

  • when generating stubs in Xtend, avoid creating files, if the same filename but with extension .java exists.
  • when generating stubs in Java, avoid creating files, if the same filename but with extension .xtend exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions