Donate Share

Eclipse Checkstyle Plug-in

Tracker: Bugs

5 Resolve Checkstyle filenames in fragment scope. - ID: 1883343
Last Update: Comment added ( lkoe )

When creating a plugin fragment with a Checkstyle configuration, any header
file or suppression file references in the Checkstyle configuration file
are resolved relative to the VMs working directory.

It would be much more practical for these files to be resolved relative to
the location of the configuration file itself, i.e. the plugin fragment.
That way a plugin fragment can be built that includes

checkstyle.xml
checkstyle.header.txt
checkstyle.suppressions.xml

with checkstyle.xml containing settings such as

<module name="RegexpHeader">
<property name="severity" value="warning" />
<property name="headerFile" value="checkstyle.header.txt" />
</module>


Emerson Farrugia ( emersonf ) - 2008-01-31 09:13

5

Closed

Fixed

Lars Koedderitzsch

Checkstyle Integration

5.0.0

Public


Comments ( 2 )

Date: 2008-06-17 22:24
Sender: lkoeProject Admin


Fix backported for 4.4.2


Date: 2008-04-06 12:22
Sender: lkoeProject Admin


Support has been added for the future 5.0.0 version.
The additional file references in a builtin configuration file must be
denoted with the ${config_loc} or ${samedir} property to make this work,
e.g. <property name="headerFile"
value="${configLoc}/checkstyle.header.txt" />

Note that 5.0.0 is a heavy restructuring/repackaging, which also changes
the plugin ids (no more com.atlassw.... but
net.sf.eclipscs.checkstyle|core|doc|ui) instead.
Documentation will be adapted accordingly.


Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Open 2008-04-06 12:22 lkoe
resolution_id None 2008-04-06 12:22 lkoe
category_id None 2008-04-06 12:22 lkoe
artifact_group_id None 2008-04-06 12:22 lkoe
assigned_to nobody 2008-04-06 12:22 lkoe
close_date - 2008-04-06 12:22 lkoe