eclipse-platform / .github

Common contribution content for eclipse-platform repositories
https://www.eclipse.org/eclipse/
5 stars 10 forks source link

External snippet files with Java 18 #42

Closed uhoefel closed 2 years ago

uhoefel commented 2 years ago

From Oracles description on how to use external snippet files:

The first example shows a directory named src, containing the source for a class p.Main, an image icon.png in the doc-files subdirectory, and a file for external snippets, Snippets.java, in the snippet-files directory. The presence of doc-files/icon.png is just to show the similarity between the use of doc-files and snippet-files directories. No additional options are required for the Standard Doclet to locate the external snippets in this example.

src
└── p
├── Main.java
├── doc-files
│   └── icon.png
└── snippet-files
└── Snippets.java

Note: some build systems may (incorrectly) treat files in the snippet-files directory as part of the enclosing package hierarchy, even though snippet-files is not a valid Java identifier and cannot be part of a Java package name. The local snippet-files directory cannot be used in these cases.

If I try this in eclipse I get image and image

Is this reasonably fixable? The other solution listed by Oracle requires setting --snippet-path which I'd rather avoid, if possible.

mickaelistria commented 2 years ago

Can you please report this issue to https://github.com/eclipse-jdt/eclipse.jdt.core/issues ? Unfortunately, we cannot transfer the issue to the repo so a new report is necessary.

uhoefel commented 2 years ago

I've opened a new issue there.

mickaelistria commented 2 years ago

Thanks!