Re: checkstyle-metadata.xml including strings from checkstyle-metadata.properties ?
Lars Ködderitzsch <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, checkstyle-metadata.xml files are a mechanism used in the eclipse-cs Checkstyle plugin, they are not part of the Checkstyle core. However, since plugin release 4.4.0 (please check which version you are using) descriptive text (name and description attributes/elements) can be externalized to checkstyle-metadata.properties - where the properties file must be in the same package as the checkstyle-metadata.xml. The syntax is as you already discovered, %propertyName - of course in the properties file the property key must be written without the %. I hadn't tested this feature so far with a custom checks jar, there might very well be a bug. Could you please flesh out how you incorporate your checks with the plugin (via externsion-libraries dir or via a plugin fragment)? Regards, Lars Ködderitzsch romain bisse schrieb: > Hi, > > I've written a set of custom checks and I would like to outsource some descriptions from my checkstyle-metadata.xml. > It looks like it can be done using "%" followed by the name of the property. > However I try several configurations without success, the description isn't replaced by the value of the property. > How should I organize my packages ? Is there something special to do or to declare in order to use this feature ? > > Thanks for your help. > > Regards > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Checkstyle-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/checkstyle-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user