I'm in the grips of automating our IDE setup with Oomph. I'm currently occupied with Checkstyle. Using the recorder function, no settings get saved when I set our company's own Checkstyle configuration. How do I solve this?
https://www.eclipse.org/forums/index.php/t/803782/:
Add a Resource Creation
task to your setup file, since Checkstyle saves its preferences in a dedicated file and not in the Oomph settings.
E. g.:
<setupTask
xsi:type="setup:CompoundTask"
id="checkstyle.prefs"
disabled="false"
name="Checkstyle Setup">
<setupTask
xsi:type="setup:ResourceCreationTask"
excludedTriggers="BOOTSTRAP"
filter=""
content="<?xml version="1.0" encoding="UTF-8"?>

<checkstyle-configurations file-format-version="5.0.0" default-check-configuration="GOOS Checkstyle">
 <check-configuration name="GOOS Checkstyle" location="configuration\checkstyle\goos-checkstyle.xml" type="external" description="">
 <additional-data name="protect-config-file" value="true"/>
 </check-configuration>
</checkstyle-configurations>
"
targetURL="${workspace.location|uri}/.metadata/.plugins/net.sf.eclipsecs.core/checkstyle-config.xml"
encoding="UTF-8">
<description></description>
</setupTask>
</setupTask>
The targetURL
specifies the standard saving location for Checkstyle's preferences. This is also the place you can look for your own Checkstyle configuration, so you can add it to the content
of the Oomph Resource Creation
task.