On Wednesday November 08 2006 4:31 pm, Barrie Treloar wrote:
> I found one post here
> http://www.nabble.com/forum/ViewPost.jtp?post=2165470&framed=y&skin=177
> which discussed creating the buildcommand, projectnature and
> additional .checkstyle file needed for configuring checkstyle in
> eclipse but this has yet made it back to the community.
>
> I can configure the checkstyle using the following:
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-eclipse-plugin</artifactId>
>           <configuration>
>             <downloadSources>true</downloadSources>
>             <additionalBuildcommands>
>               <buildcommand>
>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder
>               </buildcommand>
>             </additionalBuildcommands>
>             <additionalProjectnatures>
>               <projectnature>
>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
>               </projectnature>
>             </additionalProjectnatures>
>           </configuration>
>         </plugin>
>
> But I also need the ${project}/.checkstyle file.
>
> Anyone have recommendations on how to do this?
> Should eclipse:eclipse be extended to support this?
> Should eclipse:checkstyle be created instead?

We kind of ran into the same problem, but it's not limited to checkstyle.  
PMD also has the same issue.   We also wanted the ability to setup the 
workspace to set warning levels, code formats, import orders, etc....

We ended up creating a "-Psetup.eclipse" profile that uses a combination 
of the eclipse plugin and antrun to completely get things setup.   
eclipse:eclipse handles the .classpath/.project stuff, but antrun creates 
the .pmd, .ruleset, .checkstyle files as well as creates the workspace, 
injects code formats into the workspace, adds the checkstyle.xml file 
into the workspace (with the correct name), etc....

Anyway, you can see what we did at:
http://svn.apache.org/repos/asf/incubator/cxf/trunk/pom.xml


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194   F:781-902-8001
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to