# HG changeset patch # User ksrini # Date 1321286987 28800 # Node ID c4224d65eb3e3ce6f3d56cd633465b4a1123235a # Parent 48713f779b1d22fc449566a6a9614108c0293948 7110974: (javac) add coding conventions and style checkers for langtools Reviewed-by: jjg diff -r 48713f779b1d -r c4224d65eb3e langtools/make/build.properties --- a/langtools/make/build.properties Tue Nov 08 17:06:58 2011 -0800 +++ b/langtools/make/build.properties Mon Nov 14 08:09:47 2011 -0800 @@ -196,3 +196,7 @@ # An empty value means all tests # Override as desired to run a specific set of tests jtreg.tests = + +# Check style configuration +# overridable name and version +checkstyle.name.version = checkstyle-5.4 diff -r 48713f779b1d -r c4224d65eb3e langtools/make/build.xml --- a/langtools/make/build.xml Tue Nov 08 17:06:58 2011 -0800 +++ b/langtools/make/build.xml Mon Nov 14 08:09:47 2011 -0800 @@ -131,8 +131,10 @@ + + @@ -263,6 +265,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + @@ -406,6 +443,7 @@ target.java.home = ${target.java.home} jtreg.home = ${jtreg.home} findbugs.home = ${findbugs.home} + checkstyle.home = ${checkstyle.home} + + + + @@ -989,6 +1031,16 @@ + + + + + + + + + diff -r 48713f779b1d -r c4224d65eb3e langtools/make/conf/checkstyle-emacs.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/make/conf/checkstyle-emacs.xsl Mon Nov 14 08:09:47 2011 -0800 @@ -0,0 +1,24 @@ + + + + + +Coding Style Check Results +-------------------------- +Total files checked: + Files with errors: + Total errors: + Errors per file: + + + + + + + + +:: + + + + diff -r 48713f779b1d -r c4224d65eb3e langtools/make/conf/checkstyle-langtools.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/make/conf/checkstyle-langtools.xml Mon Nov 14 08:09:47 2011 -0800 @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file