On 19/08/10 9:24 PM, Matthias Bohlen wrote:
Hi,
when the code quality plugin is active inside a Gradle build, it would
be nice if the Eclipse plugin for gradle would also add the Checkstyle
nature and the checkstyle builder to the generated .project files,
An excellent idea. Could you add a JIRA issue for this?
In the meantime, you can configure the eclipseProject task to include
the nature and build command. For example:
eclipseProject {
natures 'net.sf.eclipsecs.core.CheckstyleBuilder'
buildCommand 'net.sf.eclipsecs.core.CheckstyleNature'
}
like this:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>myProject</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
</natures>
</projectDescription>
Is this possible?
Cheers
Matthias
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz