IntelliJ IDEA: Checkstyle 5.0 Plugin

Torben | java, open source | Thursday, May 21st, 2009

While working on JBoss Tattletale I was missing a Checkstyle 5.0 plugin in IDEA. The actual plugin is only capable of version 4.4.

I have patched the source code of today. You can download the plugin here.

It’s working with IntelliJ IDEA 8.1.2 (idea-9852). Can’t tell about other versions.

I have sent the patch to the corresponding authors. I’ll comment on this if it gets committed and when it is available through the plugin manager.

Installation instructions:
(more…)

Retrieve a Maven2 Plugin resource

Torben | java, open source | Sunday, January 28th, 2007

This is a technique to retrieve a resource out of a ant-based Maven2 Plugin:

<!-- get xsl file -->
<property name="temp.dir" value="./target/maven-propsgen-plugin" />
<mkdir dir="${temp.dir}" />
<whichresource resource="/oids2log4j.xsl" property="xsl.url" />
<get src="${xsl.url}" dest="${temp.dir}/oids2log4j.xsl"/>

<!-- use it -->
<xslt in="${oids.src.dir}/oids.xml" out="${oids.target.dir}/${project.prefix}-appender_snmp_clover.log4j.xml" style="${temp.dir}/oids2log4j.xsl">
<param name="env-name" expression="clover"/>
</xslt>

Powered by WordPress | Theme by Roy Tanck