**.xml = LF
**.xsd = LF
+**.dtd = LF
-**.css = LF
**.html = LF
+**.htm = LF
+**.css = LF
+
**.png = BIN
+**.gif = BIN
+**.jpeg = BIN
+**.jpg = BIN
-syntax: regexp\r
-\r
-\.orig$\r
-\.orig\..*$\r
-\.chg\..*$\r
-\.rej$\r
-\.conflict\~$\r
-^nb-configuration\.xml$\r
-^nbactions\.xml$\r
-^target$\r
+#########################
+# for Mercurial hgignore
+#########################
+
+
+#####################
+syntax: regexp
+
+^nb-configuration\.xml$
+^nbactions\.xml$
+^\.classpath$
+^\.project$
+
+\.orig$
+\.orig\..*$
+\.chg\..*$
+\.rej$
+\.conflict\~$
+^target/
+^build/
+^bin/
+^nbproject/
+^\.settings/
+
+
+#####################
+syntax: glob
+
+.DS_Store
+_MACOSX
+[Tt]humbs.db
+[Dd]esktop.ini
+core
+
+
+### EOF ###
1.206.5-SNAPSHOT (201X-XX-XX)
+ ・Maven3対応。
・ninjin氏の連絡先を http://ninjinix.com へ変更。
1.206.4 (2011-05-10)
[UTF-8 Japanese]
- JinCoreライブラリ
+ J i n C o r e
README
Copyright(c) 2009 olyutorskii
原則として、JRE1.5に準拠した実行系であれば、プラットフォームを選びません。
-=== アーカイブ管理体制 ===
-
- このアーカイブは、UTF-8による開発環境を前提として構成されています。
- このアーカイブの原本となる開発資産は、
- http://hg.sourceforge.jp/view/jindolf/JinCore
- を上位に持つMercurialリポジトリで管理されています。
-
-
=== 開発プロジェクト運営元 ===
http://sourceforge.jp/projects/jindolf/devel/ まで。
=== ディレクトリ内訳構成 ===
-基本的にはMaven2のmaven-archetype-quickstart構成に準じます。
+基本的にはMaven3のmaven-archetype-quickstart構成に準じます。
./README.txt
あなたが今見てるこれ。
./LICENSE.txt
ライセンスに関して。
-./pom.xml
- Maven2用プロジェクト構成定義ファイル。
+./SCM.txt
+ ソースコード管理に関して。
-./build.xml
- Ant用追加タスク。
+./pom.xml
+ Maven3用プロジェクト構成定義ファイル。
./src/main/java/
Javaのソースコード。
./src/test/java/
JUnit 4.* 用のユニットテストコード。
+./src/main/config/
+ 各種ビルド・構成管理に必要なファイル群。
+
./src/main/config/checks.xml
Checkstyle用configファイル。
--- /dev/null
+[UTF-8 Japanese]
+
+ J i n C o r e
+ バージョン管理システムに関する情報
+
+ Copyright(c) 2011 olyutorskii
+
+
+=== バージョン管理体制 ===
+
+ このアーカイブの原本は、Mercurial(hg)でバージョン管理されています。
+ このアーカイブの原本となる開発資産は、
+ http://hg.sourceforge.jp/view/jindolf/JinCore
+ を上位に持つMercurialリポジトリで管理されています。
+ アーカイブの代わりにMercurialを通じての開発資産へのアクセスが可能です。
+ # hg clone http://hg.sourceforge.jp/view/jindolf/JinCore
+
+
+=== 各種設定ファイル ===
+
+./.hgignore
+
+Mercurial 管理の対象外にさせたいファイル群の設定です。
+IDE独自の設定ファイルは基本的に管理対象外とするつもりです。
+
+
+./.hgeol
+
+Mercurial の EOL Extension 用の設定です。
+非バイナリなテキストファイルの改行コードに関する設定です。
+・拡張子が *.txt なローカルファイルの改行文字はローカルの環境に合わせる。
+・拡張子が *.java なローカルファイルの改行文字はローカルの環境に合わせる。
+・それ以外の非バイナリなローカルファイルの改行文字は基本LFで統一。
+・リポジトリ上の全ての非バイナリファイルの改行文字は基本LFで統一。
+というポリシーで運用しています。
+EOL Extensionを有効にしないと設定が反映されません。
+
+
+=== リンク ===
+
+・http://mercurial.selenic.com/
+・http://mercurial.selenic.com/wiki/.hgignore
+・http://www.selenic.com/mercurial/hgignore.5.html
+・http://mercurial.selenic.com/wiki/EolExtension
+・http://tortoisehg.bitbucket.org/
+
+
+--- EOF ---
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
<!-- ====================================================================== -->
-<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.8.0 or later. -->
<!-- ====================================================================== -->
-<project name="jincore" default="package" basedir=".">
-
-<!-- ====================================================================== -->
-<!-- Import maven-build.xml into the current project -->
-<!-- Maven2 command "mvn ant:ant" will put maven-build.xml -->
-<!-- ====================================================================== -->
-
- <import optional="true" file="maven-build.xml"/>
-
-<!-- ====================================================================== -->
-<!-- Help target -->
-<!-- ====================================================================== -->
-
- <target name="help">
- <echo message="Please run: $ant -projecthelp"/>
- </target>
+<project basedir=".">
+<description>
+CAUTION : This is not build-file for project-building.
+It's just adapting project-files for native environment.
+</description>
<!-- ====================================================================== -->
<!-- sanitize files for native environment -->
<echo message="sanitize files..." />
<fixcrlf
- srcDir="./" includes="**/*.java"
+ srcDir="." includes="*.txt"
encoding="UTF-8" outputencoding="UTF-8"
- tablength="4" tab="remove" javafiles="true"
+ tablength="8" tab="remove"
eof="remove"
/>
<fixcrlf
- srcDir="./" includes="**/*.xml,**/*.xsd"
+ srcDir="./src/" includes="**/*.java"
encoding="UTF-8" outputencoding="UTF-8"
- tablength="8" tab="remove"
- eol="lf"
+ tablength="4" tab="remove" javafiles="true"
eof="remove"
/>
<fixcrlf
- srcDir="./" includes="**/*.properties"
+ srcDir="./src/" includes="**/*.properties"
encoding="ISO-8859-1" outputencoding="ISO-8859-1"
eol="lf"
eof="remove"
/>
<fixcrlf
- srcDir="./" includes="*.txt"
+ srcDir="./src/" includes="**/*.xml,**/*.xsd,**/*.dtd"
encoding="UTF-8" outputencoding="UTF-8"
tablength="8" tab="remove"
+ eol="lf"
+ eof="remove"
+ />
+
+ <fixcrlf
+ srcDir="./src/" includes="**/*.html,**/*.htm,**/*.css"
+ encoding="UTF-8" outputencoding="UTF-8"
+ tablength="8" tab="remove"
+ eol="lf"
eof="remove"
/>
<chmod type="file" perm="a-x">
- <fileset dir="./" includes="**/*" excludes="**/*.sh" />
+ <fileset dir="." includes="**/*" excludes="**/*.sh" />
</chmod>
</target>
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
<!--
- Maven2 POM definition file
+ Maven2(or3) POM definition file
-->
<project
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <project.myrepoconf>${project.basedir}/src/main/config</project.myrepoconf>
+ <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
- <!-- Walkaround for Maven3&PMD-plugin bug -->
- <targetJdk>${maven.compiler.source}</targetJdk>
-
- <!-- Walkaround for Maven3&checkstyle bug -->
- <checkstyle.config.location>${project.myrepoconf}/checks.xml</checkstyle.config.location>
+ <checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.location>
+ <checkstyle.enable.rss>false</checkstyle.enable.rss>
</properties>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>[4.8.2,)</version>
+ <version>4.10</version>
<scope>test</scope>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0.1</version>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>[2.2,)</version>
+ </requireMavenVersion>
+ <requireJavaVersion>
+ <version>[1.5,)</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<directory>${project.basedir}</directory>
<includes>
<include>**/.DS_Store</include>
+ <include>**/_MACOSX</include>
<include>**/Thumbs.db</include>
+ <include>**/thumbs.db</include>
+ <include>**/Desktop.ini</include>
+ <include>**/desktop.ini</include>
<include>**/core</include>
</includes>
</fileset>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
- <version>2.3.1</version>
+ <version>2.3.2</version>
<configuration>
<archive>
<manifestEntries>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.0</version>
- <configuration>
- <rules>
- <requireMavenVersion>
- <version>[2.2,3)</version>
- </requireMavenVersion>
- <requireJavaVersion>
- <version>[1.5,)</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<configuration>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.10</version>
+ <configuration>
+ <skipTests>false</skipTests>
+ <enableAssertions>true</enableAssertions>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ <configuration>
+ <generateReports>true</generateReports>
+ <locales>ja</locales>
+ <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
+ <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.8</version>
+ <!-- config from property value -->
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <targetJdk>${maven.compiler.target}</targetJdk>
+ <rulesets>
+ <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
+ </rulesets>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <effort>Max</effort>
+ <threshold>Low</threshold>
+ </configuration>
+ </plugin>
+
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
- <include>**/*.css</include>
- <include>**/*.html</include>
- <include>**/*.png</include>
- <include>**/*.properties</include>
<include>**/*.txt</include>
+
+ <include>**/*.properties</include>
+
<include>**/*.xml</include>
<include>**/*.xsd</include>
+ <include>**/*.dtd</include>
+
+ <include>**/*.html</include>
+ <include>**/*.htm</include>
+ <include>**/*.css</include>
+
+ <include>**/*.png</include>
+ <include>**/*.gif</include>
+ <include>**/*.jpeg</include>
+ <include>**/*.jpg</include>
</includes>
<excludes>
<exclude>**/version.properties</exclude>
+
+ <exclude>**/.DS_Store</exclude>
+ <exclude>**/_MACOSX</exclude>
+ <exclude>**/Thumbs.db</exclude>
+ <exclude>**/thumbs.db</exclude>
+ <exclude>**/Desktop.ini</exclude>
+ <exclude>**/desktop.ini</exclude>
+ <exclude>**/core</exclude>
</excludes>
</resource>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>2.2</version>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
<configuration>
- <locales>ja</locales>
- <generateReports>true</generateReports>
- <generateSitemap>true</generateSitemap>
- <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
- <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
+ <linkOnly>true</linkOnly>
+ <offline>true</offline>
</configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>summary</report>
+ <report>license</report>
+ <report>dependencies</report>
+ <report>plugins</report>
+ <report>scm</report>
+ <report>project-team</report>
+<!--
+ <report>dependency-convergence</report>
+ <report>dependency-management</report>
+ <report>distribution-management</report>
+ <report>issue-tracking</report>
+ <report>mailing-list</report>
+ <report>modules</report>
+ <report>plugin-management</report>
+-->
+ </reports>
+ </reportSet>
+ </reportSets>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
+ <skip>false</skip>
+ <notimestamp>true</notimestamp>
+ <quiet>true</quiet>
<show>protected</show>
+ <stylesheet>maven</stylesheet>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>javadoc</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.10</version>
+ <configuration>
+ <showSuccess>false</showSuccess>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>report-only</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.5.1</version>
+ <configuration>
+ <encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.6</version>
+ <version>2.8</version>
<configuration>
- <configLocation>${checkstyle.config.location}</configLocation>
- <encoding>UTF-8</encoding>
+ <skip>false</skip>
+ <!-- config from property value -->
</configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>checkstyle</report>
+ </reports>
+ </reportSet>
+ </reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
- <version>2.5</version>
+ <version>2.6</version>
<configuration>
+ <skip>false</skip>
<targetJdk>${maven.compiler.target}</targetJdk>
<rulesets>
- <ruleset>${project.myrepoconf}/pmdrules.xml</ruleset>
+ <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
</rulesets>
</configuration>
<reportSets>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.2</version>
<configuration>
+ <skip>false</skip>
<effort>Max</effort>
<threshold>Low</threshold>
- <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
- <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
- <!--excludeFilterFile/-->
+ <!-- excludeFilterFile/ -->
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.4</version>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- <version>2.2</version>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jdepend-maven-plugin</artifactId>
+ <version>2.0-beta-2</version>
</plugin>
</plugins>
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
<assembly
- xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
- http://maven.apache.org/xsd/assembly-1.1.0.xsd"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
+ http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
<!--
SourceForge.JP用リリースファイル構成定義ファイル
- Maven2 assembly用
+ Maven2(or3) assembly用
-->
<id>src</id>
<fileSets>
<fileSet>
<includes>
- <include>*.txt</include>
<include>pom.xml</include>
- <include>build.xml</include>
+ <include>fixcrlf.xml</include>
+ <include>*.txt</include>
</includes>
+ <excludes>
+ <exclude>nb-configuration.xml</exclude>
+ <exclude>nbactions.xml</exclude>
+ </excludes>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
<fileSet>
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
<!--
Checkstyle用チェック項目定義。
- Checkstyle 5.0 以降向けに記述。
+ Checkstyle 5.3 以降向けに記述。
[ http://checkstyle.sourceforge.net/ ]
<!-- <module name="DesignForExtension" /> -->
<module name="MutableException" />
<module name="ThrowsCount">
- <property name="max" value="3" />
+ <property name="max" value="4" />
</module>
+ <module name="InnerTypeLast" />
<!-- Coding -->
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
<module name="StringLiteralEquality" />
+ <module name="NestedForDepth" />
<module name="NestedIfDepth" />
<module name="NestedTryDepth" />
<module name="NoClone" />
<module name="DefaultComesLast" />
<module name="MissingCtor" />
<module name="FallThrough" />
- <module name="MultipleStringLiterals">
- <property
- name="ignoreStringsRegexp"
- value="^""$|^"."$"
- />
- </module>
+ <module name="MultipleStringLiterals" />
<module name="MultipleVariableDeclarations" />
<module name="UnnecessaryParentheses" />
+ <module name="OneStatementPerLine" />
<!-- Imports -->
<property name="format" value="^ \* License : The MIT License" />
<property name="duplicateLimit" value="1" />
</module>
+ <module name="OuterTypeFilename" />
<!-- Modifiers -->
<module name="ParameterName">
<property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
</module>
- <module name="StaticVariableName" />
+ <module name="StaticVariableName">
+ <property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
+ </module>
<module name="TypeName" />
<module name="AnonInnerLength" />
<module name="ParameterNumber" />
<module name="OuterTypeNumber" />
+ <module name="MethodCount" />
<!-- Whitespace -->
<!-- バグ?
<module name="RequireThis" />
-->
-<!-- 5.2 or later
- <module name="InnerTypeLast" />
--->
-
-<!-- 5.3 or later
- <module name="NestedForDepth" />
- <module name="OneStatementPerLine" />
- <module name="OuterTypeFilename" />
- <module name="MethodCount" />
--->
<!-- Obsolated
<module name="TabCharacter" />
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
<!--
PMD用ルールセット定義
name="Custom ruleset"
>
+ <description>
+ custom rulesets for project
+ </description>
+
<rule ref="rulesets/basic.xml">
<exclude name="UnnecessaryReturn" />
</rule>
<exclude name="OnlyOneReturn" />
<exclude name="DefaultPackage" />
<exclude name="DataflowAnomalyAnalysis" />
+ <exclude name="AvoidUsingShortType" />
</rule>
<rule ref="rulesets/coupling.xml" />
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"