KanonConductor

changeset 45:001247e6efe7

enabled bazaar plugin.
author chris
date Tue, 29 Mar 2011 10:09:30 +0900
parents 640e6a9509aa 558164e2f6de
children 2ab1fe86e12d
files kanon-setup
diffstat 33 files changed, 1218 insertions(+), 302 deletions(-) [+]
line diff
     1.1 --- a/SampleProject/LibraryProject/trunk/pom.xml	Mon Mar 28 04:13:15 2011 +0900
     1.2 +++ b/SampleProject/LibraryProject/trunk/pom.xml	Tue Mar 29 10:09:30 2011 +0900
     1.3 @@ -1,10 +1,10 @@
     1.4 -<?xml version="1.0" encoding="Windows-31J"?>
     1.5 +<?xml version="1.0" encoding="utf-8"?>
     1.6  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     1.7    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     1.8  
     1.9    <modelVersion>4.0.0</modelVersion>
    1.10  
    1.11 -  <!-- ‚±‚±‚ðƒJƒXƒ^ƒ}ƒCƒY -->
    1.12 +  <!-- ここをカスタマイズ -->
    1.13    <name>LibraryProject</name>
    1.14    <groupId>com.example</groupId>
    1.15    <artifactId>library</artifactId>
    1.16 @@ -16,53 +16,44 @@
    1.17  
    1.18    <packaging>jar</packaging>
    1.19  
    1.20 -  <!-- Maven‚̃Šƒ|ƒWƒgƒŠ‚̐ݒè -->
    1.21 +  <properties>
    1.22 +    <project.build.sourceEncoding>Windows-31J</project.build.sourceEncoding>
    1.23 +    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    1.24 +  </properties>
    1.25 +
    1.26 +  <!-- Mavenのリポジトリの設定 -->
    1.27    <repositories>
    1.28      <repository>
    1.29        <id>example.com</id>
    1.30        <name>My Maven Repository</name>
    1.31 -      <!-- localhost ‚ð‚±‚ÌƒT[ƒo‚̃zƒXƒg–¼‚É’uŠ· -->
    1.32 +      <!-- localhost をこのサーバのホスト名に置換 -->
    1.33        <url>http://localhost/maven/</url>
    1.34        <layout>default</layout>	  
    1.35      </repository>
    1.36    </repositories>
    1.37  
    1.38 -  <!-- ”z•zæ‚̐ݒè -->
    1.39 +  <!-- 配布先の設定 -->
    1.40    <distributionManagement>
    1.41      <repository>
    1.42        <id>local-repository</id>
    1.43 -      <url>file:///var/www/maven</url>
    1.44 +      <url>/var/opt/kanon/maven</url>
    1.45      </repository>
    1.46 -    <site>
    1.47 -      <id>maven.apache.org</id>
    1.48 -      <url>file:///var/www/report/SampleProject/LibraryProject</url>
    1.49 -    </site>
    1.50    </distributionManagement>
    1.51  
    1.52 -  <!-- SVN‚̐ݒè -->
    1.53 +  <!-- SVNの設定 -->
    1.54    <scm>
    1.55 -    <!-- connection,developerConnection,url‚Ì localhost ‚ð‚±‚ÌƒT[ƒo‚̃zƒXƒg–¼‚É’uŠ· -->
    1.56 +    <!-- connection,developerConnection,urlの localhost をこのサーバのホスト名に置換 -->
    1.57      <connection>scm:svn:http://localhost/svn/SampleProject/LibraryProject/trunk/</connection>
    1.58      <developerConnection>scm:svn:http://localhost/svn/SampleProject/LibraryProject/trunk/</developerConnection>
    1.59      <url>http://localhost/svn/SampleProject/LibraryProject/</url>
    1.60    </scm>
    1.61  
    1.62 -  <!-- CI‚̐ݒè -->
    1.63 +  <!-- CIの設定 -->
    1.64    <ciManagement>
    1.65      <system>jenkins</system>
    1.66 -<!-- 
    1.67 -    <notifiers>
    1.68 -      <notifier>
    1.69 -        <type>mail</type>
    1.70 -        <configuration>
    1.71 -          <address>dev-ml@example.com</address>
    1.72 -        </configuration>
    1.73 -      </notifier>
    1.74 -    </notifiers>
    1.75 --->
    1.76    </ciManagement>
    1.77  
    1.78 -  <!-- ŠJ”­ŽÒ‚̃ŠƒXƒg‚ð‹Lq(È—ª‰Â”\) -->
    1.79 +  <!-- 開発者のリストを記述(省略可能) -->
    1.80    <developers>
    1.81      <developer>
    1.82        <name>Takashi Okamoto</name>
    1.83 @@ -74,108 +65,86 @@
    1.84      <dependency>
    1.85        <groupId>junit</groupId>
    1.86        <artifactId>junit</artifactId>
    1.87 -      <version>3.8.1</version>
    1.88 +      <version>4.8.2</version>
    1.89        <scope>test</scope>
    1.90      </dependency>
    1.91    </dependencies>
    1.92  
    1.93 -  <reporting>
    1.94 -    <plugins>
    1.95 -
    1.96 -      <!-- siteƒvƒ‰ƒOƒCƒ“‚̏o—͐ݒè -->
    1.97 -      <plugin>
    1.98 -        <groupId>org.apache.maven.plugins</groupId>
    1.99 -        <artifactId>maven-site-plugin</artifactId>
   1.100 -        <configuration>
   1.101 -          <inputEncoding>Windows-31J</inputEncoding>
   1.102 -          <outputEncoding>UTF-8</outputEncoding>
   1.103 -          <locales>ja</locales>
   1.104 -        </configuration>
   1.105 -      </plugin>
   1.106 -
   1.107 -      <!-- javadoc‚̏o—Í -->
   1.108 -      <plugin>
   1.109 -        <groupId>org.apache.maven.plugins</groupId>
   1.110 -        <artifactId>maven-javadoc-plugin</artifactId>
   1.111 -        <configuration>
   1.112 -          <encoding>Windows-31J</encoding>
   1.113 -          <docencoding>UTF-8</docencoding>
   1.114 -        </configuration>
   1.115 -      </plugin>
   1.116 -
   1.117 -      <!-- CheckStyle‚̃Œƒ|[ƒgo—Í -->
   1.118 -      <plugin>
   1.119 -        <groupId>org.apache.maven.plugins</groupId>
   1.120 -        <artifactId>maven-checkstyle-plugin</artifactId>
   1.121 -      </plugin>
   1.122 -
   1.123 -      <!-- FindBugs‚̃Œƒ|[ƒgo—Í -->
   1.124 -      <plugin>
   1.125 -        <groupId>org.codehaus.mojo</groupId>
   1.126 -        <artifactId>findbugs-maven-plugin</artifactId>
   1.127 -      </plugin>
   1.128 -
   1.129 -      <!-- PMD‚̃Œƒ|[ƒgo—Í -->
   1.130 -      <plugin>
   1.131 -        <groupId>org.apache.maven.plugins</groupId>
   1.132 -        <artifactId>maven-pmd-plugin</artifactId>
   1.133 -      </plugin>
   1.134 -
   1.135 -      <!-- ƒJƒoƒŒƒbƒW‚̏o—Í -->
   1.136 -      <plugin>
   1.137 -        <groupId>org.codehaus.mojo</groupId>
   1.138 -        <artifactId>cobertura-maven-plugin</artifactId>
   1.139 -        <configuration>
   1.140 -          <sourceEncoding>Windows-31J</sourceEncoding>
   1.141 -        </configuration>
   1.142 -      </plugin>
   1.143 -
   1.144 -      <!-- ƒƒgƒŠƒbƒNƒX‚̏o—Í -->
   1.145 -      <plugin>
   1.146 -        <groupId>org.codehaus.mojo</groupId>
   1.147 -        <artifactId>jdepend-maven-plugin</artifactId>
   1.148 -      </plugin>
   1.149 -
   1.150 -      <plugin>
   1.151 -        <groupId>org.codehaus.mojo</groupId>
   1.152 -        <artifactId>javancss-maven-plugin</artifactId>
   1.153 -      </plugin>
   1.154 -
   1.155 -      <!-- ƒNƒƒXƒŠƒtƒ@ƒŒƒ“ƒX -->
   1.156 -      <plugin>
   1.157 -        <groupId>org.apache.maven.plugins</groupId>
   1.158 -        <artifactId>maven-jxr-plugin</artifactId>
   1.159 -        <configuration>
   1.160 -          <aggregate>true</aggregate>
   1.161 -	  <inputEncoding>Windows-31J</inputEncoding>
   1.162 -	  <outputEncoding>UTF-8</outputEncoding>
   1.163 -        </configuration>
   1.164 -      </plugin>
   1.165 -
   1.166 -      <!-- ƒeƒXƒgƒŒƒ|[ƒg‚̐ݒè -->
   1.167 -      <plugin>
   1.168 -        <groupId>org.apache.maven.plugins</groupId>
   1.169 -        <artifactId>maven-surefire-report-plugin</artifactId>
   1.170 -      </plugin>
   1.171 -
   1.172 -    </plugins>
   1.173 -  </reporting>
   1.174 -
   1.175    <build>
   1.176      <plugins>
   1.177  
   1.178 -      <!-- JavaƒRƒ“ƒpƒCƒ‰‚̐ݒè -->
   1.179 +      <!-- Javaコンパイラの設定 -->
   1.180        <plugin>
   1.181          <groupId>org.apache.maven.plugins</groupId>
   1.182          <artifactId>maven-compiler-plugin</artifactId>
   1.183          <configuration>
   1.184 -          <source>1.4</source>
   1.185 -          <target>1.4</target>
   1.186 +          <source>1.5</source>
   1.187 +          <target>1.5</target>
   1.188            <encoding>Windows-31J</encoding>
   1.189          </configuration>
   1.190        </plugin>
   1.191  
   1.192 +      <!-- レポーティングの設定 -->
   1.193 +      <plugin>
   1.194 +	<groupId>org.apache.maven.plugins</groupId>
   1.195 +	<artifactId>maven-site-plugin</artifactId>
   1.196 +	<version>3.0-beta-2</version>
   1.197 +	<configuration>
   1.198 +          <locales>ja</locales>
   1.199 +	  <reportPlugins>
   1.200 +	    <plugin>
   1.201 +	      <groupId>org.apache.maven.plugins</groupId>
   1.202 +	      <artifactId>maven-javadoc-plugin</artifactId>
   1.203 +	      <version>2.7</version>
   1.204 +	    </plugin>
   1.205 +	    <plugin>
   1.206 +	      <groupId>org.apache.maven.plugins</groupId>
   1.207 +	      <artifactId>maven-jxr-plugin</artifactId>
   1.208 +	      <version>2.1</version>
   1.209 +	      <configuration>
   1.210 +		<aggregate>true</aggregate>
   1.211 +		<charset>${project.reporting.outputEncoding}</charset>
   1.212 +	        <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
   1.213 +		<outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
   1.214 +	      </configuration>
   1.215 +	    </plugin>
   1.216 +<!--テストレポートを出力。
   1.217 +emmaプラグインを利用している場合はemmaでテストレポートを作成してくれるので無効にする。
   1.218 +	    <plugin>
   1.219 +	      <groupId>org.apache.maven.plugins</groupId>
   1.220 +	      <artifactId>maven-surefire-report-plugin</artifactId>
   1.221 +	      <version>2.7.2</version>
   1.222 +	    </plugin>
   1.223 +-->
   1.224 +	    <plugin>
   1.225 +	      <groupId>org.codehaus.mojo</groupId>
   1.226 +	      <artifactId>emma-maven-plugin</artifactId>
   1.227 +	      <version>1.0-alpha-3</version>
   1.228 +	    </plugin>
   1.229 +	    <plugin>
   1.230 +	      <groupId>org.apache.maven.plugins</groupId>
   1.231 +	      <artifactId>maven-checkstyle-plugin</artifactId>
   1.232 +	      <version>2.6</version>
   1.233 +	      <configuration>
   1.234 +                <configLocation>src/conf/sun_checks_eclipse.xml</configLocation>
   1.235 +	      </configuration>
   1.236 +	    </plugin>
   1.237 +	    <plugin>
   1.238 +	      <groupId>org.codehaus.mojo</groupId>
   1.239 +	      <artifactId>findbugs-maven-plugin</artifactId>
   1.240 +	      <version>2.3.1</version>
   1.241 +	    </plugin>
   1.242 +	    <plugin>
   1.243 +	      <groupId>org.apache.maven.plugins</groupId>
   1.244 +	      <artifactId>maven-pmd-plugin</artifactId>
   1.245 +	      <version>2.5</version>
   1.246 +	    </plugin>
   1.247 +	  </reportPlugins>
   1.248 +	</configuration>
   1.249 +      </plugin>
   1.250 +
   1.251      </plugins>
   1.252   </build>
   1.253  
   1.254  </project>
   1.255 + 
   1.256 \ No newline at end of file
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/SampleProject/LibraryProject/trunk/src/conf/sun_checks_eclipse.xml	Tue Mar 29 10:09:30 2011 +0900
     2.3 @@ -0,0 +1,187 @@
     2.4 +<?xml version="1.0"?>
     2.5 +<!DOCTYPE module PUBLIC
     2.6 +    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
     2.7 +    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
     2.8 +
     2.9 +<!--
    2.10 +
    2.11 +  Checkstyle configuration that checks the sun coding conventions from:
    2.12 +
    2.13 +    - the Java Language Specification at
    2.14 +      http://java.sun.com/docs/books/jls/second_edition/html/index.html
    2.15 +
    2.16 +    - the Sun Code Conventions at http://java.sun.com/docs/codeconv/
    2.17 +
    2.18 +    - the Javadoc guidelines at
    2.19 +      http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
    2.20 +
    2.21 +    - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
    2.22 +
    2.23 +    - some best practices
    2.24 +
    2.25 +  Checkstyle is very configurable. Be sure to read the documentation at
    2.26 +  http://checkstyle.sf.net (or in your downloaded distribution).
    2.27 +
    2.28 +  Most Checks are configurable, be sure to consult the documentation.
    2.29 +
    2.30 +  To completely disable a check, just comment it out or delete it from the file.
    2.31 +
    2.32 +  Finally, it is worth reading the documentation.
    2.33 +
    2.34 +-->
    2.35 +
    2.36 +<module name="Checker">
    2.37 +	<property name="severity" value="warning"/>
    2.38 +
    2.39 +    <!-- Checks that a package.html file exists for each package.     -->
    2.40 +    <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
    2.41 +<!--     <module name="PackageHtml"/>-->
    2.42 +
    2.43 +    <!-- Checks whether files end with a new line.                        -->
    2.44 +    <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
    2.45 +    <module name="NewlineAtEndOfFile"/>
    2.46 +
    2.47 +    <!-- Checks that property files contain the same keys.         -->
    2.48 +    <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
    2.49 +    <module name="Translation"/>
    2.50 +
    2.51 +    <module name="TreeWalker">
    2.52 +        <property name="tabWidth" value="4"/>
    2.53 +
    2.54 +        <!-- Checks for Javadoc comments.                     -->
    2.55 +        <!-- See http://checkstyle.sf.net/config_javadoc.html -->
    2.56 +        <module name="JavadocMethod">
    2.57 +            <property name="logLoadErrors" value="true"/>
    2.58 +            <property name="suppressLoadErrors" value="true"/>
    2.59 +        </module>
    2.60 +        <module name="JavadocType"/>
    2.61 +        <module name="JavadocVariable"/>
    2.62 +        <module name="JavadocStyle"/>
    2.63 +
    2.64 +
    2.65 +        <!-- Checks for Naming Conventions.                  -->
    2.66 +        <!-- See http://checkstyle.sf.net/config_naming.html -->
    2.67 +        <module name="ConstantName"/>
    2.68 +        <module name="LocalFinalVariableName"/>
    2.69 +        <module name="LocalVariableName"/>
    2.70 +        <module name="MemberName"/>
    2.71 +        <module name="MethodName"/>
    2.72 +        <module name="PackageName"/>
    2.73 +        <module name="ParameterName"/>
    2.74 +        <module name="StaticVariableName"/>
    2.75 +        <module name="TypeName"/>
    2.76 +
    2.77 +
    2.78 +        <!-- Checks for Headers                                -->
    2.79 +        <!-- See http://checkstyle.sf.net/config_header.html   -->
    2.80 +        <!-- <module name="Header">                            -->
    2.81 +            <!-- The follow property value demonstrates the ability     -->
    2.82 +            <!-- to have access to ANT properties. In this case it uses -->
    2.83 +            <!-- the ${basedir} property to allow Checkstyle to be run  -->
    2.84 +            <!-- from any directory within a project. See property      -->
    2.85 +            <!-- expansion,                                             -->
    2.86 +            <!-- http://checkstyle.sf.net/config.html#properties        -->
    2.87 +            <!-- <property                                              -->
    2.88 +            <!--     name="headerFile"                                  -->
    2.89 +            <!--     value="${basedir}/java.header"/>                   -->
    2.90 +        <!-- </module> -->
    2.91 +
    2.92 +        <!-- Following interprets the header file as regular expressions. -->
    2.93 +        <!-- <module name="RegexpHeader"/>                                -->
    2.94 +
    2.95 +
    2.96 +        <!-- Checks for imports                              -->
    2.97 +        <!-- See http://checkstyle.sf.net/config_import.html -->
    2.98 +        <module name="AvoidStarImport"/>
    2.99 +        <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
   2.100 +        <module name="RedundantImport"/>
   2.101 +        <module name="UnusedImports"/>
   2.102 +
   2.103 +
   2.104 +        <!-- Checks for Size Violations.                    -->
   2.105 +        <!-- See http://checkstyle.sf.net/config_sizes.html -->
   2.106 +        <!--  <module name="FileLength"/>-->
   2.107 +        <module name="LineLength">
   2.108 +         	<property name="max" value="120"/>
   2.109 +        </module>
   2.110 +        <module name="MethodLength"/>
   2.111 +        <module name="ParameterNumber"/>
   2.112 +
   2.113 +
   2.114 +        <!-- Checks for whitespace                               -->
   2.115 +        <!-- See http://checkstyle.sf.net/config_whitespace.html -->
   2.116 +        <module name="EmptyForIteratorPad"/>
   2.117 +        <module name="MethodParamPad"/>
   2.118 +        <module name="NoWhitespaceAfter">
   2.119 +            <property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
   2.120 +        </module>
   2.121 +        <module name="NoWhitespaceBefore"/>
   2.122 +        <module name="OperatorWrap"/>
   2.123 +        <module name="ParenPad"/>
   2.124 +        <module name="TypecastParenPad"/>
   2.125 +        <module name="WhitespaceAfter"/>
   2.126 +        <module name="WhitespaceAround">
   2.127 +            <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>
   2.128 +        </module>
   2.129 +
   2.130 +
   2.131 +        <!-- Modifier Checks                                    -->
   2.132 +        <!-- See http://checkstyle.sf.net/config_modifiers.html -->
   2.133 +        <module name="ModifierOrder"/>
   2.134 +        <module name="RedundantModifier"/>
   2.135 +
   2.136 +
   2.137 +        <!-- Checks for blocks. You know, those {}'s         -->
   2.138 +        <!-- See http://checkstyle.sf.net/config_blocks.html -->
   2.139 +        <module name="AvoidNestedBlocks"/>
   2.140 +        <module name="EmptyBlock"/>
   2.141 +        <module name="LeftCurly"/>
   2.142 +        <module name="NeedBraces"/>
   2.143 +        <module name="RightCurly"/>
   2.144 +
   2.145 +
   2.146 +        <!-- Checks for common coding problems               -->
   2.147 +        <!-- See http://checkstyle.sf.net/config_coding.html -->
   2.148 +        <module name="AvoidInlineConditionals"/>
   2.149 +        <module name="DoubleCheckedLocking"/>    <!-- MY FAVOURITE -->
   2.150 +        <module name="EmptyStatement"/>
   2.151 +        <module name="EqualsHashCode"/>
   2.152 +        <module name="HiddenField"/>
   2.153 +        <module name="IllegalInstantiation"/>
   2.154 +        <module name="InnerAssignment"/>
   2.155 +        <module name="MagicNumber"/>
   2.156 +        <module name="MissingSwitchDefault"/>
   2.157 +        <module name="RedundantThrows">
   2.158 +            <property name="logLoadErrors" value="true"/>
   2.159 +            <property name="suppressLoadErrors" value="true"/>
   2.160 +        </module>
   2.161 +        <module name="SimplifyBooleanExpression"/>
   2.162 +        <module name="SimplifyBooleanReturn"/>
   2.163 +
   2.164 +        <!-- Checks for class design                         -->
   2.165 +        <!-- See http://checkstyle.sf.net/config_design.html -->
   2.166 +        <module name="FinalClass"/>
   2.167 +        <module name="HideUtilityClassConstructor"/>
   2.168 +        <module name="InterfaceIsType"/>
   2.169 +        <module name="VisibilityModifier"/>
   2.170 +
   2.171 +
   2.172 +        <!-- Miscellaneous other checks.                   -->
   2.173 +        <!-- See http://checkstyle.sf.net/config_misc.html -->
   2.174 +        <module name="ArrayTypeStyle"/>
   2.175 +        <module name="FinalParameters"/>
   2.176 +        <!--
   2.177 +        <module name="GenericIllegalRegexp">
   2.178 +            <property name="severity" value="ignore"/>
   2.179 +            <property name="format" value="\s+$"/>
   2.180 +            <property name="message" value="Line has trailing spaces."/>
   2.181 +        </module>
   2.182 +        -->
   2.183 +        <module name="TodoComment">
   2.184 +            <property name="severity" value="ignore"/>
   2.185 +        </module>
   2.186 +        <module name="UpperEll"/>
   2.187 +
   2.188 +    </module>
   2.189 +
   2.190 +</module>
     3.1 --- a/SampleProject/LibraryProject/trunk/src/main/java/org/ultimania/SampleLib.java	Mon Mar 28 04:13:15 2011 +0900
     3.2 +++ b/SampleProject/LibraryProject/trunk/src/main/java/org/ultimania/SampleLib.java	Tue Mar 29 10:09:30 2011 +0900
     3.3 @@ -1,31 +1,33 @@
     3.4  package org.ultimania;
     3.5  
     3.6  /**
     3.7 - * ƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚̃Tƒ“ƒvƒ‹
     3.8 - * @author Takashi Okamoto
     3.9 + * TracLightning‚̃Tƒ“ƒvƒ‹ƒNƒ‰ƒXƒR[ƒh
    3.10 + * @author someone
    3.11   */
    3.12 -public class SampleLib
    3.13 -{
    3.14 -    public static final int RUBY = 1;
    3.15 -    public static final int PYTHON = 2;
    3.16 -    public static final int PERL = 3;
    3.17 -    public static final int UNKNOWN = 4;
    3.18 -    /**
    3.19 -      * Œ¾Œê‚ÌŽí—Þ‚ð”»’è
    3.20 -      * @param langType Œ¾Œê‚ÌŽí—Þ‚ðŽ¦‚·•¶Žš—ñ
    3.21 -      * @return Œ¾Œê‚ÌŽí—Þ
    3.22 -      */
    3.23 -    public int detectLangType(String langType) {
    3.24 -      if(langType.equals("ruby")){
    3.25 -        System.out.println("RubyŒ¾Œê‚ªÝ’肳‚ê‚Ü‚µ‚½B");
    3.26 -        return RUBY;
    3.27 -      } else if(langType.equals("python")){
    3.28 -        System.out.println("PythonŒ¾Œê‚ªÝ’肳‚ê‚Ü‚µ‚½B");
    3.29 -        return PYTHON;
    3.30 -      } else if(langType.equals("perl")){
    3.31 -        System.out.println("PerlŒ¾Œê‚ªÝ’肳‚ê‚Ü‚µ‚½B");
    3.32 -        return PERL;
    3.33 -      }
    3.34 -      return UNKNOWN;
    3.35 -    }
    3.36 +public class SampleLib {
    3.37 +	public enum LangType {
    3.38 +		RUBY, PYTHON, PERL, UNKNOWN
    3.39 +	};
    3.40 +
    3.41 +	/**
    3.42 +	 * Œ¾Œê‚ÌŽí—Þ‚ð”»’è
    3.43 +	 *
    3.44 +	 * @param langType
    3.45 +	 *            Œ¾Œê‚ÌŽí—Þ‚ðŽ¦‚·•¶Žš—ñ
    3.46 +	 * @return Œ¾Œê‚ÌŽí—Þ
    3.47 +	 */
    3.48 +	public LangType detectLangType(String langType) {
    3.49 +		if (langType.equals("ruby")) {
    3.50 +			System.out.println("Ruby‚ª‘I‘ð‚³‚ê‚Ü‚µ‚½");
    3.51 +			return LangType.RUBY;
    3.52 +		} else if (langType.equals("pyhon")) {
    3.53 +			System.out.println("Python‚ª‘I‘ð‚³‚ê‚Ü‚µ‚½");
    3.54 +			return LangType.PYTHON;
    3.55 +		} else if (langType.equals("perl")) {
    3.56 +			System.out.println("Perl‚ª‘I‘ð‚³‚ê‚Ü‚µ‚½");
    3.57 +			return LangType.PERL;
    3.58 +		}
    3.59 +		return LangType.UNKNOWN;
    3.60 +	}
    3.61 +
    3.62  }
     4.1 --- a/SampleProject/LibraryProject/trunk/src/test/java/org/ultimania/SampleLibTest.java	Mon Mar 28 04:13:15 2011 +0900
     4.2 +++ b/SampleProject/LibraryProject/trunk/src/test/java/org/ultimania/SampleLibTest.java	Tue Mar 29 10:09:30 2011 +0900
     4.3 @@ -1,41 +1,75 @@
     4.4  package org.ultimania;
     4.5  
     4.6 -import junit.framework.Test;
     4.7 -import junit.framework.TestCase;
     4.8 -import junit.framework.TestSuite;
     4.9 +import org.junit.After;
    4.10 +import org.junit.AfterClass;
    4.11 +import org.junit.BeforeClass;
    4.12 +import org.junit.Test;
    4.13 +import org.ultimania.SampleLib.LangType;
    4.14 +
    4.15 +import static org.junit.Assert.*;
    4.16  
    4.17  /**
    4.18 - * Unit test for simple SampleLibTest.
    4.19 + * SampleLib‚̃eƒXƒgƒNƒ‰ƒX
    4.20   */
    4.21 -public class SampleLibTest extends TestCase {
    4.22 +public class SampleLibTest {
    4.23 +
    4.24  	/**
    4.25 -	 * Create the test case
    4.26 -	 * 
    4.27 -	 * @param testName
    4.28 -	 *            name of the test case
    4.29 +	 * ‚±‚̃Nƒ‰ƒX‚Ì‘S‚ẴeƒXƒg‚ðŽÀs‚·‚é‘O‚̏ˆ—
    4.30  	 */
    4.31 -	public SampleLibTest(String testName) {
    4.32 -		super(testName);
    4.33 +	@BeforeClass
    4.34 +	public static void doBeforeTests() {
    4.35 +		// ‘S‚ẴeƒXƒg‚ðŽÀs‚·‚é‘O‚Ɉê“x‚¾‚¯ŽÀs‚·‚鏈—‚ð‹Lq
    4.36 +		// DB‚̏‰Šú‰»‚âƒeƒXƒg‚É‚æ‚Á‚Ä“à—e‚ª•Ï‚í‚é‰Â”\«‚ª‚ ‚éƒtƒ@ƒCƒ‹‚Ì
    4.37 +		// ‰Šú‰»ˆ—‚È‚Ç‚ð‹Lq
    4.38  	}
    4.39  
    4.40  	/**
    4.41 -	 * @return the suite of tests being tested
    4.42 +	 * ƒRƒ“ƒXƒgƒ‰ƒNƒ^BŠeƒeƒXƒg‘O‚̏ˆ—‚ð‹LqB
    4.43  	 */
    4.44 -	public static Test suite() {
    4.45 -		return new TestSuite(SampleLibTest.class);
    4.46 +	public SampleLibTest() {
    4.47 +		// ŠeƒeƒXƒg–ˆ‚ɃCƒ“ƒXƒ^ƒ“ƒX‚ª¶¬‚³‚ê‚éB
    4.48 +		// ŠeƒeƒXƒg–ˆ‚̏ˆ—‚ð‹Lq
    4.49  	}
    4.50  
    4.51  	/**
    4.52 -	 * Rigourous Test :-)
    4.53 +	 * ŠeƒeƒXƒgŒã‚̏ˆ—
    4.54  	 */
    4.55 -	public void testDetectLangType() {
    4.56 -		System.out.println(
    4.57 -				"==========\n"
    4.58 -				+ java.util.ResourceBundle.getBundle("msg").getString("message")
    4.59 -				+"\n==========\n");
    4.60 +	@After
    4.61 +	public void postProcess() {
    4.62 +		// ŠeƒeƒXƒgŒã‚̏ˆ—‚ð‹Lq‚·‚éB
    4.63 +	}
    4.64 +
    4.65 +	@Test
    4.66 +	public void pythonTest() {
    4.67  		SampleLib lib = new SampleLib();
    4.68 -		assertEquals(lib.detectLangType("ruby"), SampleLib.RUBY);
    4.69 -		assertEquals(lib.detectLangType("pyton"), SampleLib.PYTHON);
    4.70 -		assertEquals(lib.detectLangType("perl"), SampleLib.PERL);
    4.71 +		assertEquals(LangType.PYTHON, lib.detectLangType("python"));
    4.72  	}
    4.73 +
    4.74 +	@Test
    4.75 +	public void rubyTest() {
    4.76 +		SampleLib lib = new SampleLib();
    4.77 +		assertEquals(LangType.RUBY, lib.detectLangType("ruby"));
    4.78 +	}
    4.79 +
    4.80 +	@Test
    4.81 +	public void perlTest() {
    4.82 +		SampleLib lib = new SampleLib();
    4.83 +		assertEquals(LangType.PERL, lib.detectLangType("perl"));
    4.84 +	}
    4.85 +
    4.86 +	@Test
    4.87 +	public void otherTest() {
    4.88 +		SampleLib lib = new SampleLib();
    4.89 +		assertEquals(LangType.UNKNOWN, lib.detectLangType("scala"));
    4.90 +	}
    4.91 +
    4.92 +	/**
    4.93 +	 * ‚±‚̃Nƒ‰ƒX‚Ì‘S‚ẴeƒXƒg‚ðŽÀs‚µ‚½Œã‚̏ˆ—
    4.94 +	 */
    4.95 +	@AfterClass
    4.96 +	public static void doAfterTests() {
    4.97 +		// ‚±‚̃Nƒ‰ƒX‚Ì‘S‚ẴeƒXƒg‚ÌŽÀs‚ªI‚í‚Á‚½‚ ‚Æ‚É‚·‚鏈—‚ð‹LqB
    4.98 +		// •ÏX‚µ‚½DB‚̍폜‚âƒSƒ~ƒtƒ@ƒCƒ‹‚̍폜‚È‚Ç‚ð‹Lq‚·‚é
    4.99 +	}
   4.100 +
   4.101  }
     5.1 --- a/SampleProject/WebProject/trunk/pom.xml	Mon Mar 28 04:13:15 2011 +0900
     5.2 +++ b/SampleProject/WebProject/trunk/pom.xml	Tue Mar 29 10:09:30 2011 +0900
     5.3 @@ -1,9 +1,9 @@
     5.4 -<?xml version="1.0" encoding="Windows-31J"?>
     5.5 +<?xml version="1.0" encoding="utf-8"?>
     5.6  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     5.7    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     5.8    <modelVersion>4.0.0</modelVersion>
     5.9  
    5.10 -  <!--‚±‚±‚ðƒJƒXƒ^ƒ}ƒCƒY-->
    5.11 +  <!--ここをカスタマイズ-->
    5.12    <name>WebProject</name>
    5.13    <artifactId>web</artifactId>
    5.14    <groupId>com.example</groupId>
    5.15 @@ -15,40 +15,41 @@
    5.16  
    5.17    <packaging>war</packaging>
    5.18  
    5.19 -  <!-- Maven‚̃Šƒ|ƒWƒgƒŠ‚̐ݒè -->
    5.20 +  <properties>
    5.21 +    <project.build.sourceEncoding>Windows-31J</project.build.sourceEncoding>
    5.22 +    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    5.23 +  </properties>
    5.24 +
    5.25 +  <!-- Mavenのリポジトリの設定 -->
    5.26    <repositories>
    5.27      <repository>
    5.28        <id>com.example</id>
    5.29        <name>My Maven Repository</name>
    5.30 -      <!-- localhost ‚ð‚±‚ÌƒT[ƒo‚̃zƒXƒg–¼‚É’uŠ· -->
    5.31 +      <!-- localhost をこのサーバのホスト名に置換 -->
    5.32        <url>http://localhost/maven</url>
    5.33        <layout>default</layout>	  
    5.34      </repository>
    5.35    </repositories>
    5.36  
    5.37 -  <!-- ”z•zæ‚̐ݒè -->
    5.38 +  <!-- 配布先の設定 -->
    5.39    <distributionManagement>
    5.40      <repository>
    5.41        <id>local-repository</id>
    5.42 -      <url>file:///var/www/maven</url>
    5.43 +      <url>/var/opt/kanon/maven</url>
    5.44      </repository>
    5.45 -    <site>
    5.46 -      <id>maven.apache.org</id>
    5.47 -      <url>file:///var/www/report/SampleProject/WebProject</url>
    5.48 -    </site>
    5.49    </distributionManagement>
    5.50  
    5.51 -  <!-- SVN‚̐ݒè -->
    5.52 +  <!-- SVNの設定 -->
    5.53    <scm>
    5.54 -    <!-- connection,developerConnection,url‚Ì localhost ‚ð‚±‚ÌƒT[ƒo‚̃zƒXƒg–¼‚É’uŠ· -->
    5.55 +    <!-- connection,developerConnection,urlの localhost をこのサーバのホスト名に置換 -->
    5.56      <connection>scm:svn:http://localhost/svn/SampleProject/WebProject/trunk/</connection>
    5.57      <developerConnection>scm:svn:http://localhost/svn/SampleProject/WebProject/trunk/</developerConnection>
    5.58      <url>http://localhost/svn/SampleProject/WebProject/</url>
    5.59    </scm>
    5.60  
    5.61 -  <!-- CI‚̐ݒè -->
    5.62 +  <!-- CIの設定 -->
    5.63    <ciManagement>
    5.64 -    <system>jenkins</system>
    5.65 +    <system>continuum</system>
    5.66  <!-- 
    5.67      <notifiers>
    5.68        <notifier>
    5.69 @@ -61,7 +62,7 @@
    5.70  -->
    5.71    </ciManagement>
    5.72  
    5.73 -  <!-- ŠJ”­ŽÒ‚̃ŠƒXƒg‚ð‹Lq(È—ª‰Â”\) -->
    5.74 +  <!-- 開発者のリストを記述(省略可能) -->
    5.75    <developers>
    5.76      <developer>
    5.77        <name>Takashi Okamoto</name>
    5.78 @@ -80,109 +81,86 @@
    5.79      <dependency>
    5.80        <groupId>junit</groupId>
    5.81        <artifactId>junit</artifactId>
    5.82 -      <version>3.8.1</version>
    5.83 +      <version>4.8.2</version>
    5.84        <scope>test</scope>
    5.85      </dependency>
    5.86  
    5.87    </dependencies>
    5.88  
    5.89 -  <reporting>
    5.90 -    <plugins>
    5.91 -
    5.92 -      <!-- siteƒvƒ‰ƒOƒCƒ“‚̏o—͐ݒè -->
    5.93 -      <plugin>
    5.94 -        <groupId>org.apache.maven.plugins</groupId>
    5.95 -        <artifactId>maven-site-plugin</artifactId>
    5.96 -        <configuration>
    5.97 -          <outputEncoding>UTF-8</outputEncoding>
    5.98 -          <inputEncoding>Windows-31J</inputEncoding>
    5.99 -          <locales>ja</locales>
   5.100 -        </configuration>
   5.101 -      </plugin>
   5.102 -
   5.103 -      <!-- javadoc‚̏o—Í -->
   5.104 -      <plugin>
   5.105 -        <groupId>org.apache.maven.plugins</groupId>
   5.106 -        <artifactId>maven-javadoc-plugin</artifactId>
   5.107 -        <configuration>
   5.108 -          <encoding>Windows-31J</encoding>
   5.109 -          <docencoding>UTF-8</docencoding>
   5.110 -        </configuration>
   5.111 -      </plugin>
   5.112 -
   5.113 -      <!-- CheckStyle‚̃Œƒ|[ƒgo—Í -->
   5.114 -      <plugin>
   5.115 -        <groupId>org.apache.maven.plugins</groupId>
   5.116 -        <artifactId>maven-checkstyle-plugin</artifactId>
   5.117 -      </plugin>
   5.118 -
   5.119 -      <!-- FindBugs‚̃Œƒ|[ƒgo—Í -->
   5.120 -      <plugin>
   5.121 -        <groupId>org.codehaus.mojo</groupId>
   5.122 -        <artifactId>findbugs-maven-plugin</artifactId>
   5.123 -      </plugin>
   5.124 -
   5.125 -      <!-- PMD‚̃Œƒ|[ƒgo—Í -->
   5.126 -      <plugin>
   5.127 -        <groupId>org.apache.maven.plugins</groupId>
   5.128 -        <artifactId>maven-pmd-plugin</artifactId>
   5.129 -      </plugin>
   5.130 -
   5.131 -      <!-- ƒJƒoƒŒƒbƒW‚̏o—Í -->
   5.132 -      <plugin>
   5.133 -        <groupId>org.codehaus.mojo</groupId>
   5.134 -        <artifactId>cobertura-maven-plugin</artifactId>
   5.135 -        <configuration>
   5.136 -          <sourceEncoding>Windows-31J</sourceEncoding>
   5.137 -        </configuration>
   5.138 -      </plugin>
   5.139 -
   5.140 -      <!-- ƒƒgƒŠƒbƒNƒX‚̏o—Í -->
   5.141 -      <plugin>
   5.142 -        <groupId>org.codehaus.mojo</groupId>
   5.143 -        <artifactId>jdepend-maven-plugin</artifactId>
   5.144 -      </plugin>
   5.145 -
   5.146 -      <plugin>
   5.147 -        <groupId>org.codehaus.mojo</groupId>
   5.148 -        <artifactId>javancss-maven-plugin</artifactId>
   5.149 -      </plugin>
   5.150 -
   5.151 -      <!-- ƒNƒƒXƒŠƒtƒ@ƒŒƒ“ƒX -->
   5.152 -      <plugin>
   5.153 -        <groupId>org.apache.maven.plugins</groupId>
   5.154 -        <artifactId>maven-jxr-plugin</artifactId>
   5.155 -        <configuration>
   5.156 -          <aggregate>true</aggregate>
   5.157 -	  <inputEncoding>Windows-31J</inputEncoding>
   5.158 -	  <outputEncoding>UTF-8</outputEncoding>
   5.159 -        </configuration>
   5.160 -      </plugin>
   5.161 -
   5.162 -      <!-- ƒeƒXƒgƒŒƒ|[ƒg‚̐ݒè -->
   5.163 -      <plugin>
   5.164 -        <groupId>org.apache.maven.plugins</groupId>
   5.165 -        <artifactId>maven-surefire-report-plugin</artifactId>
   5.166 -      </plugin>
   5.167 -
   5.168 -    </plugins>
   5.169 -  </reporting>
   5.170 -
   5.171    <build>
   5.172      <plugins>
   5.173  
   5.174 -      <!-- JavaƒRƒ“ƒpƒCƒ‰‚̐ݒè -->
   5.175 +      <!-- Javaコンパイラの設定 -->
   5.176        <plugin>
   5.177          <groupId>org.apache.maven.plugins</groupId>
   5.178          <artifactId>maven-compiler-plugin</artifactId>
   5.179          <configuration>
   5.180 -          <source>1.4</source>
   5.181 -          <target>1.4</target>
   5.182 +          <source>1.5</source>
   5.183 +          <target>1.5</target>
   5.184            <encoding>Windows-31J</encoding>
   5.185          </configuration>
   5.186        </plugin>
   5.187  
   5.188 -      <!-- WebƒRƒ“ƒeƒi‚̐ݒè -->
   5.189 +      <!-- siteプラグインの出力設定 -->
   5.190 +      <plugin>
   5.191 +	<groupId>org.apache.maven.plugins</groupId>
   5.192 +	<artifactId>maven-site-plugin</artifactId>
   5.193 +	<version>3.0-beta-2</version>
   5.194 +	<configuration>
   5.195 +          <locales>ja</locales>
   5.196 +	  <reportPlugins>
   5.197 +	    <plugin>
   5.198 +	      <groupId>org.apache.maven.plugins</groupId>
   5.199 +	      <artifactId>maven-javadoc-plugin</artifactId>
   5.200 +	      <version>2.7</version>
   5.201 +	    </plugin>
   5.202 +	    <plugin>
   5.203 +	      <groupId>org.apache.maven.plugins</groupId>
   5.204 +	      <artifactId>maven-jxr-plugin</artifactId>
   5.205 +	      <version>2.1</version>
   5.206 +	      <configuration>
   5.207 +		<aggregate>true</aggregate>
   5.208 +		<charset>${project.reporting.outputEncoding}</charset>
   5.209 +	        <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
   5.210 +		<outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
   5.211 +	      </configuration>
   5.212 +	    </plugin>
   5.213 +<!--テストレポートを出力。
   5.214 +emmaプラグインを利用している場合はemmaでテストレポートを作成してくれるので無効にする。
   5.215 +	    <plugin>
   5.216 +	      <groupId>org.apache.maven.plugins</groupId>
   5.217 +	      <artifactId>maven-surefire-report-plugin</artifactId>
   5.218 +	      <version>2.7.2</version>
   5.219 +	    </plugin>
   5.220 +-->
   5.221 +	    <plugin>
   5.222 +	      <groupId>org.codehaus.mojo</groupId>
   5.223 +	      <artifactId>emma-maven-plugin</artifactId>
   5.224 +	      <version>1.0-alpha-3</version>
   5.225 +	    </plugin>
   5.226 +	    <plugin>
   5.227 +	      <groupId>org.apache.maven.plugins</groupId>
   5.228 +	      <artifactId>maven-checkstyle-plugin</artifactId>
   5.229 +	      <version>2.6</version>
   5.230 +	      <configuration>
   5.231 +                <configLocation>src/conf/sun_checks_eclipse.xml</configLocation>
   5.232 +	      </configuration>
   5.233 +	    </plugin>
   5.234 +	    <plugin>
   5.235 +	      <groupId>org.codehaus.mojo</groupId>
   5.236 +	      <artifactId>findbugs-maven-plugin</artifactId>
   5.237 +	      <version>2.3.1</version>
   5.238 +	    </plugin>
   5.239 +	    <plugin>
   5.240 +	      <groupId>org.apache.maven.plugins</groupId>
   5.241 +	      <artifactId>maven-pmd-plugin</artifactId>
   5.242 +	      <version>2.5</version>
   5.243 +	    </plugin>
   5.244 +	  </reportPlugins>
   5.245 +	</configuration>
   5.246 +      </plugin>
   5.247 +
   5.248 +      <!-- Webコンテナの設定 -->
   5.249        <plugin>
   5.250          <groupId>org.mortbay.jetty</groupId>
   5.251          <artifactId>maven-jetty-plugin</artifactId>
   5.252 @@ -200,4 +178,4 @@
   5.253  
   5.254      </plugins>
   5.255    </build>
   5.256 -</project>
   5.257 \ No newline at end of file
   5.258 +</project>
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/SampleProject/WebProject/trunk/src/conf/sun_checks_eclipse.xml	Tue Mar 29 10:09:30 2011 +0900
     6.3 @@ -0,0 +1,187 @@
     6.4 +<?xml version="1.0"?>
     6.5 +<!DOCTYPE module PUBLIC
     6.6 +    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
     6.7 +    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
     6.8 +
     6.9 +<!--
    6.10 +
    6.11 +  Checkstyle configuration that checks the sun coding conventions from:
    6.12 +
    6.13 +    - the Java Language Specification at
    6.14 +      http://java.sun.com/docs/books/jls/second_edition/html/index.html
    6.15 +
    6.16 +    - the Sun Code Conventions at http://java.sun.com/docs/codeconv/
    6.17 +
    6.18 +    - the Javadoc guidelines at
    6.19 +      http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
    6.20 +
    6.21 +    - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
    6.22 +
    6.23 +    - some best practices
    6.24 +
    6.25 +  Checkstyle is very configurable. Be sure to read the documentation at
    6.26 +  http://checkstyle.sf.net (or in your downloaded distribution).
    6.27 +
    6.28 +  Most Checks are configurable, be sure to consult the documentation.
    6.29 +
    6.30 +  To completely disable a check, just comment it out or delete it from the file.
    6.31 +
    6.32 +  Finally, it is worth reading the documentation.
    6.33 +
    6.34 +-->
    6.35 +
    6.36 +<module name="Checker">
    6.37 +	<property name="severity" value="warning"/>
    6.38 +
    6.39 +    <!-- Checks that a package.html file exists for each package.     -->
    6.40 +    <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
    6.41 +<!--     <module name="PackageHtml"/>-->
    6.42 +
    6.43 +    <!-- Checks whether files end with a new line.                        -->
    6.44 +    <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
    6.45 +    <module name="NewlineAtEndOfFile"/>
    6.46 +
    6.47 +    <!-- Checks that property files contain the same keys.         -->
    6.48 +    <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
    6.49 +    <module name="Translation"/>
    6.50 +
    6.51 +    <module name="TreeWalker">
    6.52 +        <property name="tabWidth" value="4"/>
    6.53 +
    6.54 +        <!-- Checks for Javadoc comments.                     -->
    6.55 +        <!-- See http://checkstyle.sf.net/config_javadoc.html -->
    6.56 +        <module name="JavadocMethod">
    6.57 +            <property name="logLoadErrors" value="true"/>
    6.58 +            <property name="suppressLoadErrors" value="true"/>
    6.59 +        </module>
    6.60 +        <module name="JavadocType"/>
    6.61 +        <module name="JavadocVariable"/>
    6.62 +        <module name="JavadocStyle"/>
    6.63 +
    6.64 +
    6.65 +        <!-- Checks for Naming Conventions.                  -->
    6.66 +        <!-- See http://checkstyle.sf.net/config_naming.html -->
    6.67 +        <module name="ConstantName"/>
    6.68 +        <module name="LocalFinalVariableName"/>
    6.69 +        <module name="LocalVariableName"/>
    6.70 +        <module name="MemberName"/>
    6.71 +        <module name="MethodName"/>
    6.72 +        <module name="PackageName"/>
    6.73 +        <module name="ParameterName"/>
    6.74 +        <module name="StaticVariableName"/>
    6.75 +        <module name="TypeName"/>
    6.76 +
    6.77 +
    6.78 +        <!-- Checks for Headers                                -->
    6.79 +        <!-- See http://checkstyle.sf.net/config_header.html   -->
    6.80 +        <!-- <module name="Header">                            -->
    6.81 +            <!-- The follow property value demonstrates the ability     -->
    6.82 +            <!-- to have access to ANT properties. In this case it uses -->
    6.83 +            <!-- the ${basedir} property to allow Checkstyle to be run  -->
    6.84 +            <!-- from any directory within a project. See property      -->
    6.85 +            <!-- expansion,                                             -->
    6.86 +            <!-- http://checkstyle.sf.net/config.html#properties        -->
    6.87 +            <!-- <property                                              -->
    6.88 +            <!--     name="headerFile"                                  -->
    6.89 +            <!--     value="${basedir}/java.header"/>                   -->
    6.90 +        <!-- </module> -->
    6.91 +
    6.92 +        <!-- Following interprets the header file as regular expressions. -->
    6.93 +        <!-- <module name="RegexpHeader"/>                                -->
    6.94 +
    6.95 +
    6.96 +        <!-- Checks for imports                              -->
    6.97 +        <!-- See http://checkstyle.sf.net/config_import.html -->
    6.98 +        <module name="AvoidStarImport"/>
    6.99 +        <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
   6.100 +        <module name="RedundantImport"/>
   6.101 +        <module name="UnusedImports"/>
   6.102 +
   6.103 +
   6.104 +        <!-- Checks for Size Violations.                    -->
   6.105 +        <!-- See http://checkstyle.sf.net/config_sizes.html -->
   6.106 +        <!--  <module name="FileLength"/>-->
   6.107 +        <module name="LineLength">
   6.108 +         	<property name="max" value="120"/>
   6.109 +        </module>
   6.110 +        <module name="MethodLength"/>
   6.111 +        <module name="ParameterNumber"/>
   6.112 +
   6.113 +
   6.114 +        <!-- Checks for whitespace                               -->
   6.115 +        <!-- See http://checkstyle.sf.net/config_whitespace.html -->
   6.116 +        <module name="EmptyForIteratorPad"/>
   6.117 +        <module name="MethodParamPad"/>
   6.118 +        <module name="NoWhitespaceAfter">
   6.119 +            <property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
   6.120 +        </module>
   6.121 +        <module name="NoWhitespaceBefore"/>
   6.122 +        <module name="OperatorWrap"/>
   6.123 +        <module name="ParenPad"/>
   6.124 +        <module name="TypecastParenPad"/>
   6.125 +        <module name="WhitespaceAfter"/>
   6.126 +        <module name="WhitespaceAround">
   6.127 +            <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>
   6.128 +        </module>
   6.129 +
   6.130 +
   6.131 +        <!-- Modifier Checks                                    -->
   6.132 +        <!-- See http://checkstyle.sf.net/config_modifiers.html -->
   6.133 +        <module name="ModifierOrder"/>
   6.134 +        <module name="RedundantModifier"/>
   6.135 +
   6.136 +
   6.137 +        <!-- Checks for blocks. You know, those {}'s         -->
   6.138 +        <!-- See http://checkstyle.sf.net/config_blocks.html -->
   6.139 +        <module name="AvoidNestedBlocks"/>
   6.140 +        <module name="EmptyBlock"/>
   6.141 +        <module name="LeftCurly"/>
   6.142 +        <module name="NeedBraces"/>
   6.143 +        <module name="RightCurly"/>
   6.144 +
   6.145 +
   6.146 +        <!-- Checks for common coding problems               -->
   6.147 +        <!-- See http://checkstyle.sf.net/config_coding.html -->
   6.148 +        <module name="AvoidInlineConditionals"/>
   6.149 +        <module name="DoubleCheckedLocking"/>    <!-- MY FAVOURITE -->
   6.150 +        <module name="EmptyStatement"/>
   6.151 +        <module name="EqualsHashCode"/>
   6.152 +        <module name="HiddenField"/>
   6.153 +        <module name="IllegalInstantiation"/>
   6.154 +        <module name="InnerAssignment"/>
   6.155 +        <module name="MagicNumber"/>
   6.156 +        <module name="MissingSwitchDefault"/>
   6.157 +        <module name="RedundantThrows">
   6.158 +            <property name="logLoadErrors" value="true"/>
   6.159 +            <property name="suppressLoadErrors" value="true"/>
   6.160 +        </module>
   6.161 +        <module name="SimplifyBooleanExpression"/>
   6.162 +        <module name="SimplifyBooleanReturn"/>
   6.163 +
   6.164 +        <!-- Checks for class design                         -->
   6.165 +        <!-- See http://checkstyle.sf.net/config_design.html -->
   6.166 +        <module name="FinalClass"/>
   6.167 +        <module name="HideUtilityClassConstructor"/>
   6.168 +        <module name="InterfaceIsType"/>
   6.169 +        <module name="VisibilityModifier"/>
   6.170 +
   6.171 +
   6.172 +        <!-- Miscellaneous other checks.                   -->
   6.173 +        <!-- See http://checkstyle.sf.net/config_misc.html -->
   6.174 +        <module name="ArrayTypeStyle"/>
   6.175 +        <module name="FinalParameters"/>
   6.176 +        <!--
   6.177 +        <module name="GenericIllegalRegexp">
   6.178 +            <property name="severity" value="ignore"/>
   6.179 +            <property name="format" value="\s+$"/>
   6.180 +            <property name="message" value="Line has trailing spaces."/>
   6.181 +        </module>
   6.182 +        -->
   6.183 +        <module name="TodoComment">
   6.184 +            <property name="severity" value="ignore"/>
   6.185 +        </module>
   6.186 +        <module name="UpperEll"/>
   6.187 +
   6.188 +    </module>
   6.189 +
   6.190 +</module>
     7.1 --- a/etc/opt/kanon/trac-template/common/trac.ini	Mon Mar 28 04:13:15 2011 +0900
     7.2 +++ b/etc/opt/kanon/trac-template/common/trac.ini	Tue Mar 29 10:09:30 2011 +0900
     7.3 @@ -38,6 +38,7 @@
     7.4  always_notify_owner = false
     7.5  always_notify_reporter = false
     7.6  always_notify_updater = true
     7.7 +ambiguous_char_width = double
     7.8  mime_encoding = base64
     7.9  smtp_always_bcc = 
    7.10  smtp_always_cc = 
     8.1 --- a/etc/opt/kanon/vcs-template/svn/post-commit	Mon Mar 28 04:13:15 2011 +0900
     8.2 +++ b/etc/opt/kanon/vcs-template/svn/post-commit	Tue Mar 29 10:09:30 2011 +0900
     8.3 @@ -1,15 +1,11 @@
     8.4  #!/bin/sh
     8.5  
     8.6 -PROJECT=test2
     8.7 -
     8.8  REPOS="$1"
     8.9  REV="$2"
    8.10  
    8.11  export PYTHONPATH=/opt/kanon/lib/python2.6:/opt/kanon/lib/python2.6/site-packages
    8.12  export PATH=/opt/kanon/bin:$PATH
    8.13  TRAC_ENV=/var/opt/kanon/trac/`echo $REPOS|sed -e "s/\(.*\)\/\(.*$\)/\2/"`
    8.14 -echo $REPOS > /tmp/log3
    8.15 -echo $TRAC_ENV >/tmp/log1
    8.16 -trac-admin $TRAC_ENV changeset added $REPOS $REV 2> /tmp/log2
    8.17 +trac-admin $TRAC_ENV changeset added $REPOS $REV
    8.18  
    8.19  
     9.1 --- a/kanon-setup	Mon Mar 28 04:13:15 2011 +0900
     9.2 +++ b/kanon-setup	Tue Mar 29 10:09:30 2011 +0900
     9.3 @@ -7,6 +7,7 @@
     9.4  then
     9.5      OS='debian'
     9.6      APACHE_USER=www-data
     9.7 +    echo "Debian / Ubuntu が検出されました。"
     9.8  elif [ -f /etc/redhat-release ]
     9.9  then
    9.10      APACHE_USER=apache
    9.11 @@ -14,8 +15,10 @@
    9.12      if [ "$CHK" != '' ]
    9.13      then
    9.14          OS='rhel5'
    9.15 +        echo "RHEL 5.x / CentOS 5.x / OEL 5.xが検出されました。"
    9.16      else
    9.17          OS='rhel6'
    9.18 +        echo "RHEL 6.x / CentOS 6.x / OEL 6.xが検出されました。"        
    9.19      fi
    9.20  else
    9.21      echo "サポートされていないOSです。"
    9.22 @@ -55,6 +58,32 @@
    9.23      exit
    9.24  fi
    9.25  
    9.26 +### ask install maven
    9.27 +echo ""
    9.28 +echo "KanonではJava開発のためのビルドツールとてMavenをインストールして"
    9.29 +echo "利用することができます。ユーザが個別にインストールしたMavenを利用することもできますが、"
    9.30 +echo "ここでインストールするとJenkinsのデモを設定なしに利用することができます。"
    9.31 +echo -n "Mavenをインストールしますか?(y/n) "
    9.32 +read YN
    9.33 +
    9.34 +if [ "$YN" = "y" ]
    9.35 +then
    9.36 +    MAVEN=y
    9.37 +fi
    9.38 +
    9.39 +### ask install jenkins
    9.40 +echo ""
    9.41 +echo "Kanonは継続的インテグレーションツール(CIツール)として"
    9.42 +echo "Jenkinsを統合して使うことができます。"
    9.43 +echo -n "Jenkinsをインストールしますか?(y/n) "
    9.44 +read YN
    9.45 +
    9.46 +if [ "$YN" = "y" ]
    9.47 +then
    9.48 +    JENKINS=y
    9.49 +fi
    9.50 +
    9.51 +
    9.52  ### install ubuntu package 
    9.53  case $OS in
    9.54      debian)
    9.55 @@ -80,6 +109,69 @@
    9.56          ;;
    9.57  esac
    9.58  
    9.59 +### install jenkins
    9.60 +if [ "$JENKINS" = 'y' ]
    9.61 +then
    9.62 +    case $OS in
    9.63 +        debian)
    9.64 +            wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
    9.65 +            CHK=`grep "http://pkg.jenkins-ci.org/debian" /etc/apt/sources.list.d/jenkins.list`
    9.66 +            if [ "$CHK" = '' ]
    9.67 +            then
    9.68 +                echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list
    9.69 +            fi
    9.70 +            apt-get update
    9.71 +            apt-get -y install jenkins openjdk-6-jdk
    9.72 +            CHK=`grep prefix "/etc/default/jenkins"`
    9.73 +            if [ "$CHK" = '' ]
    9.74 +            then
    9.75 +                cat /etc/default/jenkins |sed 's/JENKINS_ARGS="/JENKINS_ARGS="--prefix=\/jenkins /' > /tmp/jenkins_config
    9.76 +                mv -f /tmp/jenkins_config /etc/default/jenkins
    9.77 +            fi
    9.78 +            JENKINS_OWN=jenkins.nogroup
    9.79 +            ;;
    9.80 +        rhel5|rhel6)
    9.81 +            wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
    9.82 +            yum -y --nogpgcheck install jenkins
    9.83 +            CHK=`grep prefix "/etc/sysconfig/jenkins"`
    9.84 +            if [ "$CHK" = '' ]
    9.85 +            then
    9.86 +                cat /etc/sysconfig/jenkins |sed 's/JENKINS_ARGS=""/JENKINS_ARGS="--prefix=\/jenkins"/' > /tmp/jenkins_config
    9.87 +                mv -f /tmp/jenkins_config /etc/sysconfig/jenkins
    9.88 +            fi
    9.89 +            JENKINS_OWN=jenkins.jenkins
    9.90 +            ;;
    9.91 +        *)
    9.92 +            ;;
    9.93 +    esac
    9.94 +
    9.95 +    if [ ! -f /var/jenkins/kanon.install ]    
    9.96 +    then
    9.97 +        cp -fr resource/jenkins-config/* /var/lib/jenkins/
    9.98 +        chown $JENKINS_OWN -R /var/lib/jenkins
    9.99 +    fi
   9.100 +    
   9.101 +    service jenkins restart
   9.102 +fi
   9.103 +
   9.104 +### install apache maven
   9.105 +if [ "$MAVEN" = 'y' ]
   9.106 +then
   9.107 +    wget -O /tmp/maven.tgz http://ftp.riken.jp/net/apache//maven/binaries/apache-maven-3.0.3-bin.tar.gz
   9.108 +    pushd .
   9.109 +    cd /tmp
   9.110 +    tar zxf maven.tgz
   9.111 +    if [ ! -d /opt/maven ]
   9.112 +    then
   9.113 +        mkdir /opt/maven
   9.114 +    fi
   9.115 +    
   9.116 +    cp -fr apache-maven-3.?.?/* /opt/maven/
   9.117 +    rm -fr apache-maven-3.?.?
   9.118 +
   9.119 +    popd 
   9.120 +fi
   9.121 +
   9.122  ### install files
   9.123  cp -fr opt/* /opt
   9.124  if [ "$OS" = "rhel5" ]
   9.125 @@ -119,9 +211,9 @@
   9.126  easy_install http://www.i-act.co.jp/project/products/downloads/Trac-0.12.2.ja1.zip
   9.127  easy_install xlrd
   9.128  easy_install https://github.com/hvr/trac-git-plugin/zipball/v0.12.0.5
   9.129 -# bzr co lp:trac-bzr /tmp/trac-bzr-install
   9.130 -#easy_install --prefix /opt/kanon /tmp/trac-bzr-install
   9.131 -#rm -fr /tmp/trac-bzr-install
   9.132 +bzr co lp:trac-bzr /tmp/trac-bzr-install
   9.133 +easy_install /tmp/trac-bzr-install
   9.134 +rm -fr /tmp/trac-bzr-install
   9.135  
   9.136  
   9.137  ### install trac plugins
   9.138 @@ -167,7 +259,12 @@
   9.139          service apache2 stop
   9.140          service apache2 start
   9.141          ;;
   9.142 -    rhel6)
   9.143 +    rhel5|rhel6)
   9.144 +        if [ $OS = 'rhel5' ]
   9.145 +        then
   9.146 +            mkdir -p /var/opt/kanon/trac/.egg-cache
   9.147 +            chown $APACHE_USER:$APACHE_USER -R /var/opt/kanon/trac/.egg-cache/
   9.148 +        fi
   9.149          mkdir -p /usr/lib/python2.6/site-packages/bzrlib/plugin
   9.150          cp resource/trac_hook.py /usr/lib/python2.6/site-packages/bzrlib/plugin
   9.151          if [ ! -f /etc/httpd/conf.d/kanon.conf ]
   9.152 @@ -185,27 +282,6 @@
   9.153          service httpd stop
   9.154          service httpd start
   9.155          ;;
   9.156 -    rhel5)
   9.157 -        mkdir -p /var/opt/kanon/trac/.egg-cache
   9.158 -        chown $APACHE_USER:$APACHE_USER -R /var/opt/kanon/trac/.egg-cache/
   9.159 -        mkdir -p /usr/lib/python2.6/site-packages/bzrlib/plugin
   9.160 -        cp resource/trac_hook.py /usr/lib/python2.6/site-packages/bzrlib/plugin
   9.161 -        if [ ! -f /etc/httpd/conf.d/kanon.conf ]
   9.162 -        then
   9.163 -            cp resource/httpd.conf /etc/httpd/conf.d/kanon.conf
   9.164 -        fi
   9.165 -        echo 0 > /selinux/enforce
   9.166 -        CHK=`grep SELINUX=enforcing /etc/selinux/config` 
   9.167 -        if [ ! "$CHK" = '' ]   
   9.168 -        then
   9.169 -            cat /etc/selinux/config |sed 's/SELINUX=enforcing/SELINUX=disabled/' > /tmp/selinux_config
   9.170 -            mv /tmp/selinux_config /etc/selinux/config 
   9.171 -        fi
   9.172 -        echo "SELinuxが無効化されました"
   9.173 -        mv /etc/httpd/conf.d/python.conf /etc/httpd/conf.d/python.conf.disabled
   9.174 -        service httpd stop
   9.175 -        service httpd start
   9.176 -        ;;
   9.177      *)
   9.178          ;;
   9.179  esac
    10.1 --- a/resource/httpd.conf	Mon Mar 28 04:13:15 2011 +0900
    10.2 +++ b/resource/httpd.conf	Tue Mar 29 10:09:30 2011 +0900
    10.3 @@ -84,18 +84,18 @@
    10.4  #	Allow from all
    10.5  #</Directory>
    10.6  
    10.7 -#<Location /hudson>
    10.8 -#  Order allow,deny
    10.9 -#  Allow from all
   10.10 +<Location /jenkins>
   10.11 +  Order allow,deny
   10.12 +  Allow from all
   10.13     
   10.14 -#  AuthType Digest
   10.15 -#  AuthName kanon
   10.16 -#  AuthUserFile /etc/opt/kanon/trac.htdigest
   10.17 -#  Require valid-user
   10.18 +  AuthType Digest
   10.19 +  AuthName kanon
   10.20 +  AuthUserFile /etc/opt/kanon/kanon_users.htdigest
   10.21 +  Require valid-user
   10.22  
   10.23 -#  BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
   10.24 +  BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
   10.25  
   10.26 -#  ProxyPass        http://127.0.0.1:8010/hudson
   10.27 -#  ProxyPassReverse http://127.0.0.1:8010/hudson
   10.28 -#</Location>
   10.29 +  ProxyPass        http://127.0.0.1:8080/jenkins
   10.30 +  ProxyPassReverse http://127.0.0.1:8080/jenkins
   10.31 +</Location>
   10.32  
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/resource/jenkins-config/config.xml	Tue Mar 29 10:09:30 2011 +0900
    11.3 @@ -0,0 +1,12 @@
    11.4 +<?xml version='1.0' encoding='UTF-8'?>
    11.5 +<hudson>
    11.6 +  <numExecutors>2</numExecutors>
    11.7 +  <authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
    11.8 +  <securityRealm class="hudson.security.SecurityRealm$None"/>
    11.9 +  <jdks/>
   11.10 +  <slaves/>
   11.11 +  <quietPeriod>5</quietPeriod>
   11.12 +  <views/>
   11.13 +  <slaveAgentPort>0</slaveAgentPort>
   11.14 +  <secretKey>2e3822bfcf5916425bdc992d0e3956bfb93608def97b53d8e12b1b58e98253c9</secretKey>
   11.15 +</hudson>
   11.16 \ No newline at end of file
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/resource/jenkins-config/hudson.tasks.Maven.xml	Tue Mar 29 10:09:30 2011 +0900
    12.3 @@ -0,0 +1,10 @@
    12.4 +<?xml version='1.0' encoding='UTF-8'?>
    12.5 +<hudson.tasks.Maven_-DescriptorImpl>
    12.6 +  <installations>
    12.7 +    <hudson.tasks.Maven_-MavenInstallation>
    12.8 +      <name>Maven</name>
    12.9 +      <home>/opt/maven</home>
   12.10 +      <properties/>
   12.11 +    </hudson.tasks.Maven_-MavenInstallation>
   12.12 +  </installations>
   12.13 +</hudson.tasks.Maven_-DescriptorImpl>
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/resource/jenkins-config/jobs/LibraryProject/config.xml	Tue Mar 29 10:09:30 2011 +0900
    13.3 @@ -0,0 +1,207 @@
    13.4 +<?xml version='1.0' encoding='UTF-8'?>
    13.5 +<maven2-moduleset>
    13.6 +  <actions/>
    13.7 +  <description></description>
    13.8 +  <keepDependencies>false</keepDependencies>
    13.9 +  <properties/>
   13.10 +  <scm class="hudson.scm.SubversionSCM">
   13.11 +    <locations>
   13.12 +      <hudson.scm.SubversionSCM_-ModuleLocation>
   13.13 +        <remote>http://localhost/svn/SampleProject/LibraryProject/trunk</remote>
   13.14 +        <local>.</local>
   13.15 +      </hudson.scm.SubversionSCM_-ModuleLocation>
   13.16 +    </locations>
   13.17 +    <useUpdate>true</useUpdate>
   13.18 +    <doRevert>false</doRevert>
   13.19 +    <excludedRegions></excludedRegions>
   13.20 +    <includedRegions></includedRegions>
   13.21 +    <excludedUsers></excludedUsers>
   13.22 +    <excludedRevprop></excludedRevprop>
   13.23 +    <excludedCommitMessages></excludedCommitMessages>
   13.24 +  </scm>
   13.25 +  <canRoam>true</canRoam>
   13.26 +  <disabled>false</disabled>
   13.27 +  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
   13.28 +  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
   13.29 +  <triggers class="vector"/>
   13.30 +  <concurrentBuild>false</concurrentBuild>
   13.31 +  <rootModule>
   13.32 +    <groupId>com.example</groupId>
   13.33 +    <artifactId>library</artifactId>
   13.34 +  </rootModule>
   13.35 +  <goals>site</goals>
   13.36 +  <mavenName>Maven</mavenName>
   13.37 +  <aggregatorStyleBuild>true</aggregatorStyleBuild>
   13.38 +  <incrementalBuild>false</incrementalBuild>
   13.39 +  <usePrivateRepository>false</usePrivateRepository>
   13.40 +  <ignoreUpstremChanges>false</ignoreUpstremChanges>
   13.41 +  <archivingDisabled>false</archivingDisabled>
   13.42 +  <resolveDependencies>false</resolveDependencies>
   13.43 +  <processPlugins>false</processPlugins>
   13.44 +  <mavenValidationLevel>-1</mavenValidationLevel>
   13.45 +  <reporters>
   13.46 +    <hudson.plugins.violations.hudson.maven.ViolationsMavenReporter>
   13.47 +      <config>
   13.48 +        <suppressions class="tree-set">
   13.49 +          <no-comparator/>
   13.50 +        </suppressions>
   13.51 +        <typeConfigs>
   13.52 +          <no-comparator/>
   13.53 +          <entry>
   13.54 +            <string>checkstyle</string>
   13.55 +            <hudson.plugins.violations.TypeConfig>
   13.56 +              <type>checkstyle</type>
   13.57 +              <min>10</min>
   13.58 +              <max>999</max>
   13.59 +              <unstable>999</unstable>
   13.60 +              <usePattern>false</usePattern>
   13.61 +              <pattern></pattern>
   13.62 +            </hudson.plugins.violations.TypeConfig>
   13.63 +          </entry>
   13.64 +          <entry>
   13.65 +            <string>codenarc</string>
   13.66 +            <hudson.plugins.violations.TypeConfig>
   13.67 +              <type>codenarc</type>
   13.68 +              <min>10</min>
   13.69 +              <max>999</max>
   13.70 +              <unstable>999</unstable>
   13.71 +              <usePattern>false</usePattern>
   13.72 +              <pattern></pattern>
   13.73 +            </hudson.plugins.violations.TypeConfig>
   13.74 +          </entry>
   13.75 +          <entry>
   13.76 +            <string>cpd</string>
   13.77 +            <hudson.plugins.violations.TypeConfig>
   13.78 +              <type>cpd</type>
   13.79 +              <min>10</min>
   13.80 +              <max>999</max>
   13.81 +              <unstable>999</unstable>
   13.82 +              <usePattern>false</usePattern>
   13.83 +              <pattern></pattern>
   13.84 +            </hudson.plugins.violations.TypeConfig>
   13.85 +          </entry>
   13.86 +          <entry>
   13.87 +            <string>findbugs</string>
   13.88 +            <hudson.plugins.violations.TypeConfig>
   13.89 +              <type>findbugs</type>
   13.90 +              <min>10</min>
   13.91 +              <max>999</max>
   13.92 +              <unstable>999</unstable>
   13.93 +              <usePattern>false</usePattern>
   13.94 +              <pattern></pattern>
   13.95 +            </hudson.plugins.violations.TypeConfig>
   13.96 +          </entry>
   13.97 +          <entry>
   13.98 +            <string>fxcop</string>
   13.99 +            <hudson.plugins.violations.TypeConfig>
  13.100 +              <type>fxcop</type>
  13.101 +              <min>10</min>
  13.102 +              <max>999</max>
  13.103 +              <unstable>999</unstable>
  13.104 +              <usePattern>false</usePattern>
  13.105 +              <pattern></pattern>
  13.106 +            </hudson.plugins.violations.TypeConfig>
  13.107 +          </entry>
  13.108 +          <entry>
  13.109 +            <string>gendarme</string>
  13.110 +            <hudson.plugins.violations.TypeConfig>
  13.111 +              <type>gendarme</type>
  13.112 +              <min>10</min>
  13.113 +              <max>999</max>
  13.114 +              <unstable>999</unstable>
  13.115 +              <usePattern>false</usePattern>
  13.116 +              <pattern></pattern>
  13.117 +            </hudson.plugins.violations.TypeConfig>
  13.118 +          </entry>
  13.119 +          <entry>
  13.120 +            <string>jcreport</string>
  13.121 +            <hudson.plugins.violations.TypeConfig>
  13.122 +              <type>jcreport</type>
  13.123 +              <min>10</min>
  13.124 +              <max>999</max>
  13.125 +              <unstable>999</unstable>
  13.126 +              <usePattern>false</usePattern>
  13.127 +              <pattern></pattern>
  13.128 +            </hudson.plugins.violations.TypeConfig>
  13.129 +          </entry>
  13.130 +          <entry>
  13.131 +            <string>jslint</string>
  13.132 +            <hudson.plugins.violations.TypeConfig>
  13.133 +              <type>jslint</type>
  13.134 +              <min>10</min>
  13.135 +              <max>999</max>
  13.136 +              <unstable>999</unstable>
  13.137 +              <usePattern>false</usePattern>
  13.138 +              <pattern></pattern>
  13.139 +            </hudson.plugins.violations.TypeConfig>
  13.140 +          </entry>
  13.141 +          <entry>
  13.142 +            <string>pmd</string>
  13.143 +            <hudson.plugins.violations.TypeConfig>
  13.144 +              <type>pmd</type>
  13.145 +              <min>10</min>
  13.146 +              <max>999</max>
  13.147 +              <unstable>999</unstable>
  13.148 +              <usePattern>false</usePattern>
  13.149 +              <pattern></pattern>
  13.150 +            </hudson.plugins.violations.TypeConfig>
  13.151 +          </entry>
  13.152 +          <entry>
  13.153 +            <string>pylint</string>
  13.154 +            <hudson.plugins.violations.TypeConfig>
  13.155 +              <type>pylint</type>
  13.156 +              <min>10</min>
  13.157 +              <max>999</max>
  13.158 +              <unstable>999</unstable>
  13.159 +              <usePattern>false</usePattern>
  13.160 +              <pattern></pattern>
  13.161 +            </hudson.plugins.violations.TypeConfig>
  13.162 +          </entry>
  13.163 +          <entry>
  13.164 +            <string>simian</string>
  13.165 +            <hudson.plugins.violations.TypeConfig>
  13.166 +              <type>simian</type>
  13.167 +              <min>10</min>
  13.168 +              <max>999</max>
  13.169 +              <unstable>999</unstable>
  13.170 +              <usePattern>false</usePattern>
  13.171 +              <pattern></pattern>
  13.172 +            </hudson.plugins.violations.TypeConfig>
  13.173 +          </entry>
  13.174 +          <entry>
  13.175 +            <string>stylecop</string>
  13.176 +            <hudson.plugins.violations.TypeConfig>
  13.177 +              <type>stylecop</type>
  13.178 +              <min>10</min>
  13.179 +              <max>999</max>
  13.180 +              <unstable>999</unstable>
  13.181 +              <usePattern>false</usePattern>
  13.182 +              <pattern></pattern>
  13.183 +            </hudson.plugins.violations.TypeConfig>
  13.184 +          </entry>
  13.185 +        </typeConfigs>
  13.186 +        <limit>100</limit>
  13.187 +        <encoding>default</encoding>
  13.188 +      </config>
  13.189 +    </hudson.plugins.violations.hudson.maven.ViolationsMavenReporter>
  13.190 +  </reporters>
  13.191 +  <publishers>
  13.192 +    <hudson.plugins.emma.EmmaPublisher>
  13.193 +      <includes></includes>
  13.194 +      <healthReports>
  13.195 +        <minClass>0</minClass>
  13.196 +        <maxClass>100</maxClass>
  13.197 +        <minMethod>0</minMethod>
  13.198 +        <maxMethod>70</maxMethod>
  13.199 +        <minBlock>0</minBlock>
  13.200 +        <maxBlock>80</maxBlock>
  13.201 +        <minLine>0</minLine>
  13.202 +        <maxLine>80</maxLine>
  13.203 +      </healthReports>
  13.204 +    </hudson.plugins.emma.EmmaPublisher>
  13.205 +    <hudson.plugins.persona.QuotePublisher>
  13.206 +      <persona>hudmi</persona>
  13.207 +    </hudson.plugins.persona.QuotePublisher>
  13.208 +  </publishers>
  13.209 +  <buildWrappers/>
  13.210 +</maven2-moduleset>
  13.211 \ No newline at end of file
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/resource/jenkins-config/jobs/LibraryProject/subversion.credentials	Tue Mar 29 10:09:30 2011 +0900
    14.3 @@ -0,0 +1,12 @@
    14.4 +<?xml version='1.0' encoding='UTF-8'?>
    14.5 +<hudson.scm.PerJobCredentialStore>
    14.6 +  <credentials class="hashtable">
    14.7 +    <entry>
    14.8 +      <string>&lt;http://localhost:80&gt; kanon</string>
    14.9 +      <hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential>
   14.10 +        <userName>guest</userName>
   14.11 +        <password>Z3Vlc3Q=</password>
   14.12 +      </hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential>
   14.13 +    </entry>
   14.14 +  </credentials>
   14.15 +</hudson.scm.PerJobCredentialStore>
   14.16 \ No newline at end of file
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/resource/jenkins-config/jobs/LibraryProject/svnexternals.txt	Tue Mar 29 10:09:30 2011 +0900
    15.3 @@ -0,0 +1,2 @@
    15.4 +<?xml version='1.0' encoding='UTF-8'?>
    15.5 +<list/>
    15.6 \ No newline at end of file
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/resource/jenkins-config/jobs/WebProject/config.xml	Tue Mar 29 10:09:30 2011 +0900
    16.3 @@ -0,0 +1,224 @@
    16.4 +<?xml version='1.0' encoding='UTF-8'?>
    16.5 +<maven2-moduleset>
    16.6 +  <actions/>
    16.7 +  <description></description>
    16.8 +  <keepDependencies>false</keepDependencies>
    16.9 +  <properties/>
   16.10 +  <scm class="hudson.scm.SubversionSCM">
   16.11 +    <locations>
   16.12 +      <hudson.scm.SubversionSCM_-ModuleLocation>
   16.13 +        <remote>http://localhost/svn/SampleProject/WebProject/trunk</remote>
   16.14 +        <local>.</local>
   16.15 +      </hudson.scm.SubversionSCM_-ModuleLocation>
   16.16 +    </locations>
   16.17 +    <useUpdate>true</useUpdate>
   16.18 +    <doRevert>false</doRevert>
   16.19 +    <excludedRegions></excludedRegions>
   16.20 +    <includedRegions></includedRegions>
   16.21 +    <excludedUsers></excludedUsers>
   16.22 +    <excludedRevprop></excludedRevprop>
   16.23 +    <excludedCommitMessages></excludedCommitMessages>
   16.24 +  </scm>
   16.25 +  <canRoam>true</canRoam>
   16.26 +  <disabled>false</disabled>
   16.27 +  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
   16.28 +  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
   16.29 +  <triggers class="vector"/>
   16.30 +  <concurrentBuild>false</concurrentBuild>
   16.31 +  <rootModule>
   16.32 +    <groupId>com.example</groupId>
   16.33 +    <artifactId>web</artifactId>
   16.34 +  </rootModule>
   16.35 +  <goals>site</goals>
   16.36 +  <mavenName>Maven</mavenName>
   16.37 +  <aggregatorStyleBuild>true</aggregatorStyleBuild>
   16.38 +  <incrementalBuild>false</incrementalBuild>
   16.39 +  <usePrivateRepository>false</usePrivateRepository>
   16.40 +  <ignoreUpstremChanges>false</ignoreUpstremChanges>
   16.41 +  <archivingDisabled>false</archivingDisabled>
   16.42 +  <resolveDependencies>false</resolveDependencies>
   16.43 +  <processPlugins>false</processPlugins>
   16.44 +  <mavenValidationLevel>-1</mavenValidationLevel>
   16.45 +  <reporters>
   16.46 +    <hudson.plugins.checkstyle.CheckStyleReporter>
   16.47 +      <healthy></healthy>
   16.48 +      <unHealthy></unHealthy>
   16.49 +      <pluginName>[CHECKSTYLE] </pluginName>
   16.50 +      <thresholdLimit>low</thresholdLimit>
   16.51 +      <canRunOnFailed>false</canRunOnFailed>
   16.52 +    </hudson.plugins.checkstyle.CheckStyleReporter>
   16.53 +    <hudson.plugins.dry.DryReporter>
   16.54 +      <healthy></healthy>
   16.55 +      <unHealthy></unHealthy>
   16.56 +      <pluginName>[DRY] </pluginName>
   16.57 +      <thresholdLimit>low</thresholdLimit>
   16.58 +      <canRunOnFailed>false</canRunOnFailed>
   16.59 +      <highThreshold>50</highThreshold>
   16.60 +      <normalThreshold>25</normalThreshold>
   16.61 +    </hudson.plugins.dry.DryReporter>
   16.62 +    <hudson.plugins.findbugs.FindBugsReporter>
   16.63 +      <healthy></healthy>
   16.64 +      <unHealthy></unHealthy>
   16.65 +      <pluginName>[FINDBUGS] </pluginName>
   16.66 +      <thresholdLimit>low</thresholdLimit>
   16.67 +      <canRunOnFailed>false</canRunOnFailed>
   16.68 +    </hudson.plugins.findbugs.FindBugsReporter>
   16.69 +    <hudson.plugins.pmd.PmdReporter>
   16.70 +      <healthy></healthy>
   16.71 +      <unHealthy></unHealthy>
   16.72 +      <pluginName>[PMD] </pluginName>
   16.73 +      <thresholdLimit>low</thresholdLimit>
   16.74 +      <canRunOnFailed>false</canRunOnFailed>
   16.75 +    </hudson.plugins.pmd.PmdReporter>
   16.76 +    <hudson.plugins.violations.hudson.maven.ViolationsMavenReporter>
   16.77 +      <config>
   16.78 +        <suppressions class="tree-set">
   16.79 +          <no-comparator/>
   16.80 +        </suppressions>
   16.81 +        <typeConfigs>
   16.82 +          <no-comparator/>
   16.83 +          <entry>
   16.84 +            <string>checkstyle</string>
   16.85 +            <hudson.plugins.violations.TypeConfig>
   16.86 +              <type>checkstyle</type>
   16.87 +              <min>10</min>
   16.88 +              <max>999</max>
   16.89 +              <unstable>999</unstable>
   16.90 +              <usePattern>false</usePattern>
   16.91 +              <pattern></pattern>
   16.92 +            </hudson.plugins.violations.TypeConfig>
   16.93 +          </entry>
   16.94 +          <entry>
   16.95 +            <string>codenarc</string>
   16.96 +            <hudson.plugins.violations.TypeConfig>
   16.97 +              <type>codenarc</type>
   16.98 +              <min>10</min>
   16.99 +              <max>999</max>
  16.100 +              <unstable>999</unstable>
  16.101 +              <usePattern>false</usePattern>
  16.102 +              <pattern></pattern>
  16.103 +            </hudson.plugins.violations.TypeConfig>
  16.104 +          </entry>
  16.105 +          <entry>
  16.106 +            <string>cpd</string>
  16.107 +            <hudson.plugins.violations.TypeConfig>
  16.108 +              <type>cpd</type>
  16.109 +              <min>10</min>
  16.110 +              <max>999</max>
  16.111 +              <unstable>999</unstable>
  16.112 +              <usePattern>false</usePattern>
  16.113 +              <pattern></pattern>
  16.114 +            </hudson.plugins.violations.TypeConfig>
  16.115 +          </entry>
  16.116 +          <entry>
  16.117 +            <string>findbugs</string>
  16.118 +            <hudson.plugins.violations.TypeConfig>
  16.119 +              <type>findbugs</type>
  16.120 +              <min>10</min>
  16.121 +              <max>999</max>
  16.122 +              <unstable>999</unstable>
  16.123 +              <usePattern>false</usePattern>
  16.124 +              <pattern></pattern>
  16.125 +            </hudson.plugins.violations.TypeConfig>
  16.126 +          </entry>
  16.127 +          <entry>
  16.128 +            <string>fxcop</string>
  16.129 +            <hudson.plugins.violations.TypeConfig>
  16.130 +              <type>fxcop</type>
  16.131 +              <min>10</min>
  16.132 +              <max>999</max>
  16.133 +              <unstable>999</unstable>
  16.134 +              <usePattern>false</usePattern>
  16.135 +              <pattern></pattern>
  16.136 +            </hudson.plugins.violations.TypeConfig>
  16.137 +          </entry>
  16.138 +          <entry>
  16.139 +            <string>gendarme</string>
  16.140 +            <hudson.plugins.violations.TypeConfig>
  16.141 +              <type>gendarme</type>
  16.142 +              <min>10</min>
  16.143 +              <max>999</max>
  16.144 +              <unstable>999</unstable>
  16.145 +              <usePattern>false</usePattern>
  16.146 +              <pattern></pattern>
  16.147 +            </hudson.plugins.violations.TypeConfig>
  16.148 +          </entry>
  16.149 +          <entry>
  16.150 +            <string>jcreport</string>
  16.151 +            <hudson.plugins.violations.TypeConfig>
  16.152 +              <type>jcreport</type>
  16.153 +              <min>10</min>
  16.154 +              <max>999</max>
  16.155 +              <unstable>999</unstable>
  16.156 +              <usePattern>false</usePattern>
  16.157 +              <pattern></pattern>
  16.158 +            </hudson.plugins.violations.TypeConfig>
  16.159 +          </entry>
  16.160 +          <entry>
  16.161 +            <string>jslint</string>
  16.162 +            <hudson.plugins.violations.TypeConfig>
  16.163 +              <type>jslint</type>
  16.164 +              <min>10</min>
  16.165 +              <max>999</max>
  16.166 +              <unstable>999</unstable>
  16.167 +              <usePattern>false</usePattern>
  16.168 +              <pattern></pattern>
  16.169 +            </hudson.plugins.violations.TypeConfig>
  16.170 +          </entry>
  16.171 +          <entry>
  16.172 +            <string>pmd</string>
  16.173 +            <hudson.plugins.violations.TypeConfig>
  16.174 +              <type>pmd</type>
  16.175 +              <min>10</min>
  16.176 +              <max>999</max>
  16.177 +              <unstable>999</unstable>
  16.178 +              <usePattern>false</usePattern>
  16.179 +              <pattern></pattern>
  16.180 +            </hudson.plugins.violations.TypeConfig>
  16.181 +          </entry>
  16.182 +          <entry>
  16.183 +            <string>pylint</string>
  16.184 +            <hudson.plugins.violations.TypeConfig>
  16.185 +              <type>pylint</type>
  16.186 +              <min>10</min>
  16.187 +              <max>999</max>
  16.188 +              <unstable>999</unstable>
  16.189 +              <usePattern>false</usePattern>
  16.190 +              <pattern></pattern>
  16.191 +            </hudson.plugins.violations.TypeConfig>
  16.192 +          </entry>
  16.193 +          <entry>
  16.194 +            <string>simian</string>
  16.195 +            <hudson.plugins.violations.TypeConfig>
  16.196 +              <type>simian</type>
  16.197 +              <min>10</min>
  16.198 +              <max>999</max>
  16.199 +              <unstable>999</unstable>
  16.200 +              <usePattern>false</usePattern>
  16.201 +              <pattern></pattern>
  16.202 +            </hudson.plugins.violations.TypeConfig>
  16.203 +          </entry>
  16.204 +          <entry>
  16.205 +            <string>stylecop</string>
  16.206 +            <hudson.plugins.violations.TypeConfig>
  16.207 +              <type>stylecop</type>
  16.208 +              <min>10</min>
  16.209 +              <max>999</max>
  16.210 +              <unstable>999</unstable>
  16.211 +              <usePattern>false</usePattern>
  16.212 +              <pattern></pattern>
  16.213 +            </hudson.plugins.violations.TypeConfig>
  16.214 +          </entry>
  16.215 +        </typeConfigs>
  16.216 +        <limit>100</limit>
  16.217 +        <encoding>default</encoding>
  16.218 +      </config>
  16.219 +    </hudson.plugins.violations.hudson.maven.ViolationsMavenReporter>
  16.220 +  </reporters>
  16.221 +  <publishers>
  16.222 +    <hudson.plugins.persona.QuotePublisher>
  16.223 +      <persona>hudmi</persona>
  16.224 +    </hudson.plugins.persona.QuotePublisher>
  16.225 +  </publishers>
  16.226 +  <buildWrappers/>
  16.227 +</maven2-moduleset>
  16.228 \ No newline at end of file
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/resource/jenkins-config/jobs/WebProject/subversion.credentials	Tue Mar 29 10:09:30 2011 +0900
    17.3 @@ -0,0 +1,12 @@
    17.4 +<?xml version='1.0' encoding='UTF-8'?>
    17.5 +<hudson.scm.PerJobCredentialStore>
    17.6 +  <credentials class="hashtable">
    17.7 +    <entry>
    17.8 +      <string>&lt;http://localhost:80&gt; kanon</string>
    17.9 +      <hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential>
   17.10 +        <userName>guest</userName>
   17.11 +        <password>Z3Vlc3Q=</password>
   17.12 +      </hudson.scm.SubversionSCM_-DescriptorImpl_-PasswordCredential>
   17.13 +    </entry>
   17.14 +  </credentials>
   17.15 +</hudson.scm.PerJobCredentialStore>
   17.16 \ No newline at end of file
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/resource/jenkins-config/jobs/WebProject/svnexternals.txt	Tue Mar 29 10:09:30 2011 +0900
    18.3 @@ -0,0 +1,2 @@
    18.4 +<?xml version='1.0' encoding='UTF-8'?>
    18.5 +<list/>
    18.6 \ No newline at end of file
    19.1 Binary file resource/jenkins-config/persona/hudmi/failure.png has changed
    20.1 Binary file resource/jenkins-config/persona/hudmi/icon.png has changed
    21.1 Binary file resource/jenkins-config/persona/hudmi/other.png has changed
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/resource/jenkins-config/persona/hudmi/persona.xml	Tue Mar 29 10:09:30 2011 +0900
    22.3 @@ -0,0 +1,4 @@
    22.4 +<?xml version="1.0" encoding="utf-8"?>
    22.5 +<persona id='hudmi' displayName='Hud美さん'>
    22.6 +  <quote>頼れる秘書。Hud美さん</quote>
    22.7 +</persona>
    22.8 \ No newline at end of file
    23.1 Binary file resource/jenkins-config/persona/hudmi/success.png has changed
    24.1 Binary file resource/jenkins-config/plugins/analysis-core.hpi has changed
    25.1 Binary file resource/jenkins-config/plugins/checkstyle.hpi has changed
    26.1 Binary file resource/jenkins-config/plugins/dashboard-view.hpi has changed
    27.1 Binary file resource/jenkins-config/plugins/dry.hpi has changed
    28.1 Binary file resource/jenkins-config/plugins/emma.hpi has changed
    29.1 Binary file resource/jenkins-config/plugins/findbugs.hpi has changed
    30.1 Binary file resource/jenkins-config/plugins/persona.hpi has changed
    31.1 Binary file resource/jenkins-config/plugins/pmd.hpi has changed
    32.1 Binary file resource/jenkins-config/plugins/trac.hpi has changed
    33.1 Binary file resource/jenkins-config/plugins/violations.hpi has changed