Skip to content

Commit

Permalink
Set logging level during Checkstyle plugin install
Browse files Browse the repository at this point in the history
  • Loading branch information
ripleymj committed Jan 14, 2024
1 parent 9f4a0c2 commit 198acfc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/eclipse/files/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<configuration>
<logger name="org.apache" level="WARN" />
<logger name="httpclient" level="WARN" />
</configuration>
7 changes: 7 additions & 0 deletions roles/eclipse/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
owner: root
group: root
mode: "0755"
- name: Install logback config file
ansible.builtin.copy:
src: logback.xml
dest: '{{ eclipse.install_path }}'
mode: "0644"
- name: Install checkstyle plugin
ansible.builtin.command: >
{{ eclipse.install_path }}/eclipse
Expand All @@ -49,6 +54,8 @@
-repository https://checkstyle.org/eclipse-cs-update-site/
-installIU net.sf.eclipsecs.feature.group
-destination {{ eclipse.install_path }}
-vmargs
-Dlogback.configurationFile=file:{{ eclipse.install_path }}/logback.xml
args:
creates: '{{ eclipse.install_path }}/plugins/net.sf.eclipsecs.checkstyle*'
- name: Install Eclipse desktop icon
Expand Down

0 comments on commit 198acfc

Please sign in to comment.