diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2008-12-19 19:34:45 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2008-12-19 19:34:45 +0000 |
| commit | 38cde902ffe68eac8ffb0884bcc9c7bfa98c02ac (patch) | |
| tree | 3599403c0c9690898f1e336c009a5564c587c732 /RC5/java/etc | |
| parent | a8960649bcd365ef70a5de7812f5910222388a6d (diff) | |
| download | qpid-python-38cde902ffe68eac8ffb0884bcc9c7bfa98c02ac.tar.gz | |
Tagging RC5 for M4 release
git-svn-id: https://svn.apache.org/repos/asf/qpid/tags/M4@728121 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'RC5/java/etc')
| -rw-r--r-- | RC5/java/etc/coding_standards.xml | 138 | ||||
| -rw-r--r-- | RC5/java/etc/license_header.txt | 20 | ||||
| -rw-r--r-- | RC5/java/etc/log4j.xml | 61 |
3 files changed, 219 insertions, 0 deletions
diff --git a/RC5/java/etc/coding_standards.xml b/RC5/java/etc/coding_standards.xml new file mode 100644 index 0000000000..fdb42c1b9c --- /dev/null +++ b/RC5/java/etc/coding_standards.xml @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd"> +<module name="Checker"> + <!-- Checks package.html defined for all packages. --> + <module name="PackageHtml"/> + + <module name="TreeWalker"> + + <!-- Whitespace conventions. --> + <module name="TabCharacter"/> + + <!-- License conventions. Checks that the license is included in every file. --> + <module name="Header"> + <property name="headerFile" value="${checkstyle.header.file}"/> + </module> + + <!-- Coding style conventions. --> + <module name="com.puppycrawl.tools.checkstyle.checks.coding.PackageDeclarationCheck"> + <property name="severity" value="error"/> + </module> + + <!-- These rules ensure that everything is javadoc'ed. --> + <!-- + <module name="RequiredRegexp"> + <property name="format" value="<table id="crc"><caption>CRC Card</caption>"/> + </module> + --> + + <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck"> + <property name="excludeScope" value="nothing"/> + <property name="scope" value="private"/> + <property name="severity" value="error"/> + <property name="tokens" value="CLASS_DEF, INTERFACE_DEF"/> + <property name="allowMissingParamTags" value="true"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck"> + <property name="excludeScope" value="nothing"/> + <property name="scope" value="private"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck"> + <property name="allowMissingParamTags" value="false"/> + <property name="allowMissingReturnTag" value="false"/> + <property name="allowMissingThrowsTags" value="false"/> + <property name="allowThrowsTagsForSubclasses" value="false"/> + <property name="allowUndeclaredRTE" value="true"/> + <property name="allowMissingJavadoc" value="false"/> + <property name="allowMissingPropertyJavadoc" value="true"/> + <property name="excludeScope" value="nothing"/> + <property name="scope" value="private"/> + <property name="severity" value="error"/> + <property name="tokens" value="METHOD_DEF, CTOR_DEF"/> + </module> + + <module name="JavadocStyle"> + <property name="scope" value="private"/> + <property name="checkHtml" value="false"/> + <property name="checkFirstSentence" value="true"/> + <property name="checkEmptyJavadoc" value="true"/> + </module> + + <!-- These rules enforce the conventions for the naming of variables. --> + <!-- + <module name="com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck"> + <property name="format" value="^log$|^[A-Z](_?[A-Z0-9]+)*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck"> + <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck"> + <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck"> + <property name="applyToPackage" value="true"/> + <property name="applyToPrivate" value="true"/> + <property name="applyToProtected" value="true"/> + <property name="applyToPublic" value="true"/> + <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck"> + <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck"> + <property name="format" value="^[a-z]+(\.[a-zA-Z_][a-zA-Z0-9_]*)*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.ParameterNameCheck"> + <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.StaticVariableNameCheck"> + <property name="format" value="^[a-z][a-zA-Z0-9_]*$"/> + <property name="severity" value="error"/> + </module> + + <module name="com.puppycrawl.tools.checkstyle.checks.naming.TypeNameCheck"> + <property name="format" value="^[A-Z][a-zA-Z0-9_]*$"/> + <property name="severity" value="error"/> + <property name="tokens" value="CLASS_DEF, INTERFACE_DEF"/> + </module> + --> + </module> +</module> diff --git a/RC5/java/etc/license_header.txt b/RC5/java/etc/license_header.txt new file mode 100644 index 0000000000..02ee6e8f98 --- /dev/null +++ b/RC5/java/etc/license_header.txt @@ -0,0 +1,20 @@ +/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
\ No newline at end of file diff --git a/RC5/java/etc/log4j.xml b/RC5/java/etc/log4j.xml new file mode 100644 index 0000000000..266c466a3a --- /dev/null +++ b/RC5/java/etc/log4j.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="ALL"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%m%n"/>
+ </layout>
+
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.apache.qpid">
+ <priority value="${amqj.logging.level}" logger="CONSOLE"/>
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root level="${root.logging.level}">
+ <appender-ref ref="CONSOLE"/>
+ </root>
+
+</log4j:configuration>
|
