Commit ca7d7465 authored by Christian Meyer's avatar Christian Meyer
Browse files

ZmtEclipsePlugin.java: formatter settings are applied via eclipse task

added eclipse.formatter.properties
    properties file storing formatter applied settings
parent ff25c85d
......@@ -31,6 +31,17 @@ class ZmtEclipsePlugin implements Plugin<Project> {
tasks.cleanEclipse.doLast {
Files.deleteIfExists(launchConfig)
}
// add formatting properties into .settings/
eclipse.jdt.file.withProperties { properties ->
def formatterProperties = new Properties()
// load properties from file
def formatterPropertiesInputStream = getClass().getResourceAsStream('eclipse.formatter.properties')
formatterProperties.load(formatterPropertiesInputStream)
formatterPropertiesInputStream.close()
properties.putAll(formatterProperties)
}
}
@Override
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment