Menu

#10 system properties ignored

open
nobody
None
5
2006-05-02
2006-05-02
Don Hill
No

I have a checkstyle file that I am using in a build
script that uses ant, this works with no problem, when
I am in intellij I have a build.root system property
set and it seems that jetstyle isn't passing these
values, I am always getting the error Checkstyle error
(com.puppycrawl.tools.checkstyle.api.CheckstyleException:
cannot initialize module SuppressionFilter - Cannot set
property 'file' in module SuppressionFilter to
'PROPERTY 'build.root' NEEDS TO BE CONFIGURED IN THE
CHECKSTYLE
CONFIGURATION/build/checkstyle_suppressions.xml':
unable to find PROPERTY 'build.root' NEEDS TO BE
CONFIGURED IN THE CHECKSTYLE
CONFIGURATION/build/checkstyle_suppressions.xml).

Is there a way to work around this, I don't want to
manage 2 sets of checkstyle files, the setting that are
failing are

<module name="SuppressionFilter">
<property name="file"
value="${build.root}/build/checkstyle_suppressions.xml"/>
</module>

and

<property name="cacheFile"
value="${build.root}/build/checkstyle.cache"/>

Thanks

Discussion

  • Dennis Lundberg

    Dennis Lundberg - 2006-05-04

    Logged In: YES
    user_id=662018

    Hello Don,

    I'm not sure that I understand your problem. Let's see if we
    can figure it out together.

    You want to run Checkstyle inside IDEA using the JetStyle
    plugin in the same way that you run Checkstyle using the Ant
    tasks that come with Checkstyle. Correct?

    In your Checkstyle configuration file you use a property
    ${build.root} for some good reason, I'm sure. Is this
    property set using a system property when you call Ant? Like
    this:
    ant -Dbuild.root=/my/path mytarget
    Or is it set in another way, a properties file maybe?

     
  • thinkpuppet

    thinkpuppet - 2006-05-05

    Logged In: YES
    user_id=1457221

    we are getting the same error for import-control; please see
    details under "support requests". otherwise working great!

     

Log in to post a comment.