Re: FW: checkstyle failureproperty

"Lars Kühne" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi,

do you have failOnViolation set to false? If not, the default is
"true", and checkstyle will break the build. You might want to check
checkstyle's own buildfile to see how to set things up correctly:

http://checkstyle.svn.sourceforge.net/viewvc/checkstyle/trunk/checkstyle/build.xml?view=markup#l_295

Regards,
Lars

On Fri, Aug 8, 2008 at 4:16 PM, Chaturvedula, Lakshmi wrote:
> Hi,
>
>
>
> I have the failureProperty set to "checkstyle.failure" in the ant checkstyle
> target.
>
> I have the following check on the failureProperty to email the errors if the
> violations failed -
>
> <target name="checkstyle-nightly"
>
>         depends="checkstyle"
>
>         if="checkstyle.failure"
>
>         description="Sends email if checkstyle detected code conventions
> violations.">
>
>     <mail ../> </target>
>
>  But it doesn't seem to be working. I do have violations in the code and it
> is suppose to process the condition statement. The failureProperty is not
> setting the given property.
>
> Appreciate any help,
>
> Thanks,
>
> Lakshmi

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.