Dev doc: Document the maxCompiledUnitsAtOnce setting in Eclipse
This setting is needed to make annotation processing work reliably. See the related discussion on repo-discuss: https://groups.google.com/d/msg/repo-discuss/rpv-ElAWr2Y/CbXj6NL2BwAJ Change-Id: I7cf967a2207b6c9e5dd75de3647be3a71c9db948
This commit is contained in:
@@ -10,6 +10,20 @@ runtime debugging environment.
|
|||||||
[[setup]]
|
[[setup]]
|
||||||
== Project Setup
|
== Project Setup
|
||||||
|
|
||||||
|
In your Eclipse installation's `eclipse.ini` file, add the following line in
|
||||||
|
the `vmargs` section:
|
||||||
|
|
||||||
|
----
|
||||||
|
-DmaxCompiledUnitsAtOnce=10000
|
||||||
|
----
|
||||||
|
|
||||||
|
Without this setting, annotation processing does not work reliably and the
|
||||||
|
build is likely to fail with errors like:
|
||||||
|
|
||||||
|
----
|
||||||
|
Could not write generated class ... javax.annotation.processing.FilerException: Source file already created
|
||||||
|
----
|
||||||
|
|
||||||
In Eclipse, choose 'Import existing project' and select the `gerrit` project
|
In Eclipse, choose 'Import existing project' and select the `gerrit` project
|
||||||
from the current working directory.
|
from the current working directory.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user