Eclipse Fun:
1. Language server jdtls code formatting: needs XML file exported from eclipse.
2. Command line JavaCodeFormatter (https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-231.htm) wants a properties file for -config
I used
xq <eclipse-formatter.xml | jq -Mr '.profiles.profile.setting[] | ."@id" + "=" + ."@value"' >config.props
and all worked but the indent with spaces. It used tabs. Reason:
- XML export uses value="SPACE"
- the property file needs ...=space
🤦♀️
