From: markt Date: Thu, 22 Jul 2010 22:31:30 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49268 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ef24aafc1972cf464ae42848c7b24e44936144d1;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49268 Add necessary plumbing to enable Checkstyle The config file is deliberately empty. The check will be uncommented once the source code has been fixed (~200 files contain tabs). git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@966882 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build.properties.default b/build.properties.default index a6bab5645..cbfc32db3 100644 --- a/build.properties.default +++ b/build.properties.default @@ -120,6 +120,12 @@ junit.lib=${junit.home} junit.jar=${junit.lib}/junit.jar junit.loc=${base-sf.loc}/junit/junit3.8.2.zip +# ----- Checkstyle, version 5.1 or later ----- +checkstyle.version=5.1 +checkstyle.home=${base.path}/checkstyle-${checkstyle.version} +checkstyle.loc=${base-sf.loc}/checkstyle/checkstyle-${checkstyle.version}.zip +checkstyle.jar=${checkstyle.home}/checkstyle-all-${checkstyle.version}.jar + # ----- JSON Libraries (for bayeux module) ----- json-lib.home=${base.path}/json-20080701 json-lib.lib=http://repo1.maven.org/maven2/org/json/json/20080701/json-20080701.jar diff --git a/build.xml b/build.xml index f5d794b08..a237b17e6 100644 --- a/build.xml +++ b/build.xml @@ -410,7 +410,18 @@ - + + + + + + + + + + + + + + + + + + + + + diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 000000000..784b70a28 --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 67e671b0e..13f58c0f2 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -294,6 +294,11 @@ Re-factor unit tests to enable them to be run once with each of the HTTP connector implementations (BIO, NIO and APR/native). (markt) + + 49268: Add the necessary plumbing to include CheckStyle in + the build process. Start with no checks. Additional checks will be + added as they are agreed. (markt) +