javaRuntimeName = eclipse_java_runtime_name
// add in jalview project specific properties/preferences into eclipse core preferences
+ // and also the codestyle XML file
file {
withProperties { props ->
def jalview_prefs = new Properties()
props.putAt(t, v)
}
}
+ // codestyle file -- overrides previous formatter prefs
+ def csFile = file("${jalviewDirAbsolutePath}/${eclipse_codestyle_file}")
+ if (csFile.exists()) {
+ XmlParser parser = new XmlParser()
+ def profiles = parser.parse(csFile)
+ def profile = profiles.'profile'.find { p -> (p.'@kind' == "CodeFormatterProfile" && p.'@name' == "Jalview") }
+ if (profile != null) {
+ profile.'setting'.each { s ->
+ def id = s.'@id'
+ def value = s.'@value'
+ if (id != null && value != null) {
+ props.putAt(id, value)
+ }
+ }
+ }
+ }
}
}
bamboo_getdown_channel_suffix = /latest/artifact/shared/getdown-channel
eclipse_extra_jdt_prefs_file = .settings/org.eclipse.jdt.core.jalview.prefs
+eclipse_codestyle_file = utils/eclipse/JalviewCodeStyle.xml
eclipse_project_name = jalview
eclipse_bin_dir = bin
eclipse_debug = false