You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/06/09 12:26:11 UTC

[tomcat] branch 9.0.x updated: Checkstyle config is relative to cwd, not basedir

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new d4f588712a Checkstyle config is relative to cwd, not basedir
d4f588712a is described below

commit d4f588712a15cdd14fd23c2fc1797e3058e9d109
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Jun 9 13:24:52 2023 +0100

    Checkstyle config is relative to cwd, not basedir
    
    This fixes building when the cwd is not the root of the source tree
---
 build.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/build.xml b/build.xml
index 1f8cfe994c..796f33bbc4 100644
--- a/build.xml
+++ b/build.xml
@@ -850,7 +850,7 @@
     <taskdef resource="${checkstyletask.properties}"
              classpath="${checkstyle.jar}" />
     <!-- Main checks -->
-    <checkstyle config="res/checkstyle/checkstyle.xml">
+    <checkstyle config="${basedir}/res/checkstyle/checkstyle.xml">
       <fileset dir="." >
         <patternset refid="text.files" />
         <include name="**/*.bat"/>
@@ -894,19 +894,19 @@
       </fileset>
     </checkstyle>
     <!-- javax package checks -->
-    <checkstyle config="res/checkstyle/javax-checkstyle.xml">
+    <checkstyle config="${basedir}/res/checkstyle/javax-checkstyle.xml">
       <fileset dir="java/javax" >
         <include name="**/*.java"/>
       </fileset>
     </checkstyle>
     <!-- org package checks -->
-    <checkstyle config="res/checkstyle/org-checkstyle.xml">
+    <checkstyle config="${basedir}/res/checkstyle/org-checkstyle.xml">
       <fileset dir="java/org" >
         <include name="**/*.java"/>
       </fileset>
     </checkstyle>
     <!-- Tests checks -->
-    <checkstyle config="res/checkstyle/test-checkstyle.xml">
+    <checkstyle config="${basedir}/res/checkstyle/test-checkstyle.xml">
       <fileset dir="test" >
         <patternset refid="text.files" />
         <exclude name=".*/**"/>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org