Skip to content

Commit ed4a02b

Browse files
authored
Merge pull request #398 from diffplug/issue_393
Improved Java Eclipse formatter documentation.
2 parents 9069a06 + dff9082 commit ed4a02b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugin-maven/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ By default, all files matching `src/main/java/**/*.java` and `src/test/java/**/*
9797
<file>${basedir}/license-header</file>
9898
</licenseHeader>
9999
<eclipse>
100-
<file>${basedir}/eclipse-fmt.xml</file>
100+
<!-- Optional, otherwise Eclipse defaults are used. Eclipse preference or property files are also supported. -->
101+
<file>${basedir}/eclipse-format.xml</file>
101102
<!-- Optional, available versions: https://github.com/diffplug/spotless/tree/master/lib-extra/src/main/resources/com/diffplug/spotless/extra/config/eclipse_jdt_formatter -->
102103
<version>4.7.1</version>
103104
</eclipse>
@@ -111,12 +112,14 @@ By default, all files matching `src/main/java/**/*.java` and `src/test/java/**/*
111112
<importOrder>
112113
<!-- Specify either order or file, but not both -->
113114
<order>java,javax,org,com,com.diffplug,</order>
114-
<file>${basedir}/importOrder</file>
115+
<file>${basedir}/eclipse.importorder</file>
115116
</importOrder>
116117
</java>
117118
</configuration>
118119
```
119120

121+
See [ECLIPSE_SCREENSHOTS](../ECLIPSE_SCREENSHOTS.md) for screenshots that demonstrate how to get and install the Eclipse format configuration file and Eclipse import order file mentioned above.
122+
120123
<a name="scala"></a>
121124

122125
## Applying to Scala source

0 commit comments

Comments
 (0)