location of suppressions filter file
Gary McWilliams <[email protected]> Mon, 13 Oct 2008 09:09:22 +0100
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <7BEB0888F69BF046870D207FF0E6CAE83530CEDAFF@lagan-exch-2.lagan.com> |
I have started to create some suppression filters. My problem is that I am unsure how to make this file "portable". On my dev machine, I can put in a full path to the file, and that is fine. However, on the CI server, the file will be in a different location (in addition, my dev machine is windows, the CI machine is Linux). I am using eclipse (which may be clouding the issue here), and cannot work out how to setup a "relative path" to work. For background, my heirarchy is along the lines of: + shared - build/lib/checkstyle (the checkstyle xml & suppressions xml are held here also) + project - src/java/com/... - build.xml my project/build.xml sets up the task with a reference to the shared/build/lib location and by itself works fine. In my case the CI server also has different locations for these. So on my dev box, I can get from the project to checkstyle with a relative path of ../shared/build/lib; on the CUI server this relative path will not resolve to the same place). Is there a way I can tell checkstyle to read the suppression file from the "same folder" as the checkstyle.xml file? ________________________________ The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. The views and opinions expressed in this email may not reflect the views and opinions of any member of Lagan Technologies Limited, or any of its subsidiaries. Lagan Technologies Limited is a company registered in Northern Ireland with registration number NI 28773. The registered office of Lagan Technologies Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ. ------------------------------------------------------------------------- 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=/ _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user