2019-01-11 11:33:05 +00:00
|
|
|
# Build directories
|
|
|
|
/classes
|
|
|
|
/logs
|
2018-11-16 13:02:48 +00:00
|
|
|
/build
|
|
|
|
/out
|
2020-10-27 22:19:28 +00:00
|
|
|
/doc/out/
|
Generate documentation stubs from Javadocs
illuaminate does not handle Java files, for obvious reasons. In order to
get around that, we have a series of stub files within /doc/stub which
mirrored the Java ones. While this works, it has a few problems:
- The link to source code does not work - it just links to the stub
file.
- There's no guarantee that documentation remains consistent with the
Java code. This change found several methods which were incorrectly
documented beforehand.
We now replace this with a custom Java doclet[1], which extracts doc
comments from @LuaFunction annotated methods and generates stub-files
from them. These also contain a @source annotation, which allows us to
correctly link them back to the original Java code.
There's some issues with this which have yet to be fixed. However, I
don't think any of them are major blockers right now:
- The custom doclet relies on Java 9 - I think it's /technically/
possible to do this on Java 8, but the API is significantly uglier.
This means that we need to run javadoc on a separate JVM.
This is possible, and it works locally and on CI, but is definitely
not a nice approach.
- illuaminate now requires the doc stubs to be generated in order for
the linter to pass, which does make running the linter locally much
harder (especially given the above bullet point).
We could notionally include the generated stubs (or at least a cut
down version of them) in the repo, but I'm not 100% sure about that.
[1]: https://docs.oracle.com/javase/9/docs/api/jdk/javadoc/doclet/package-summary.html
2020-07-03 12:31:26 +00:00
|
|
|
/doc/javadoc/
|
2019-01-11 11:33:05 +00:00
|
|
|
|
|
|
|
# Runtime directories
|
2018-11-16 13:02:48 +00:00
|
|
|
/run
|
2018-12-29 17:13:10 +00:00
|
|
|
/run-*
|
2019-01-11 11:33:05 +00:00
|
|
|
/test-files
|
|
|
|
|
2017-05-01 13:32:39 +00:00
|
|
|
*.ipr
|
|
|
|
*.iws
|
|
|
|
*.iml
|
2017-05-04 21:39:12 +00:00
|
|
|
.idea
|
2017-05-01 13:32:39 +00:00
|
|
|
.gradle
|
2017-09-11 23:05:26 +00:00
|
|
|
*.DS_Store
|
2019-06-07 13:35:17 +00:00
|
|
|
|
|
|
|
.classpath
|
|
|
|
.project
|
|
|
|
.settings/
|
|
|
|
bin/
|
|
|
|
*.launch
|
2020-01-29 16:41:26 +00:00
|
|
|
|
|
|
|
/src/generated/resources/.cache
|