Copies the tracked Eclipse JDT preference files from scripts/eclipse-preferences/ into the .settings/ directory of every Maven module.
.prefs files..settings/ files. Edit the canonical files and run this script again.eclipse-warnings.py reads the copied preferences, so run this first if it reports them missing.python3 scripts/apply-eclipse-prefs.py python3 scripts/apply-eclipse-prefs.py /path/to/another/checkout
| Option | Argument | Default | Meaning |
|---|---|---|---|
root-dir | path (optional positional) | repository root | Root of the checkout whose modules should be updated. Only sys.argv[1] is read. |
scripts/ (main).juneau-bean, juneau-core, juneau-examples, juneau-microservice, juneau-petstore, juneau-rest, juneau-sc and juneau-shaded (one level down), plus juneau-integration-tests and juneau-secret-macos-keychain, for directories with a pom.xml (discover_projects).<packaging>pom</packaging> (is_aggregator_pom).juneau-integration-tests or ends in -ftest; everything else is a source module (is_test_module)..settings/ if needed and copies org.eclipse.jdt.core.prefs and org.eclipse.jdt.ui.prefs from eclipse-preferences/source-prefs/ or eclipse-preferences/test-prefs/ (apply_preferences).Preferences applied to <module> per module, then a summary with total, updated and failed counts.
| Code | Meaning |
|---|---|
| 0 | Every module was updated. |
| 1 | At least one module failed, or a preferences directory or file was missing. |
.settings/ directories are ignored by git. The copies are local to your machine; only the files under scripts/eclipse-preferences/ are tracked.REACTOR_GROUPS in the script. New modules inside existing groups are found automatically..settings/ are overwritten.eclipse-warnings.py04.02.07.ScriptApplyEclipsePrefs.md in juneau-docs)