著作権ルールを使用するには、ユーザーは次の 3 つのフィールドを処理する必要があります。

1. パッケージの組み込み:

ユーザーは、このフィールドでコンマ区切りのパッケージ仕様を使用して、この著作権を適用するクラスを決定する必要があります
(例えば com.ibm.package1、com.ibm.package2)。このフィールドはワイルドカードもサポートしています (例えば com.ibm.package1.*、com.ibm.package2.*)。
ただし、"com.ibm.package1" と "com.ibm.package1.*" では、意味が異なります。 ユーザーが 1 つのクラスにのみ自身の著作権コメントを使用する場合、"com.ibm.package1" を使用します。
一方、"com.ibm.package1" で始まるすべてのクラスに著作権コメントを使用する場合、"com.ibm.package1.*" を使用します。


このフィールドでは、値の指定が必須ではありません。値が指定されていない場合、すべてのパッケージに対してルールが実行されます。

2. パッケージの除外:

このフィールドのプロパティーは「パッケージの組み込み (Include Packages)」フィールドと同じです。 ただし、ユーザーはこのフィールドを使用して、ルールを実行させたくないパッケージを指定します。


このフィールドでは、値の指定が必須ではありません。値が指定されていない場合、すべてのパッケージに対してルールが実行されます。

3. 著作権コメント:

ユーザーは、必要な著作権表示が含まれた有効な Java コメント・ブロックを入力する必要があります。

ユーザーは、著作権の日付を表示する箇所に [date] を使用することができます。 以下に例を示します。


/**********************************************************************
* Copyright (c) [date] IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: Copyright_Help.html,v 1.1 2008/02/29 15:07:43 linda_hillis Exp $
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/

ファイル上に著作権コメントがなく、現在の年が 2007 年の場合、クイック・フィックス後の著作権コメントは以下のようになります。


/**********************************************************************
* Copyright (c) 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: Copyright_Help.html,v 1.1 2008/02/29 15:07:43 linda_hillis Exp $
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/

ファイルに以下のような著作権コメントがある場合、
/**********************************************************************
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: Copyright_Help.html,v 1.1 2008/02/29 15:07:43 linda_hillis Exp $
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/

このファイルの最終変更日は 2006 年で、現在の年は 2006 年です。 クイック・フィックス後、コメントは以下のようになります。
/**********************************************************************
* Copyright (c) 2005,2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: Copyright_Help.html,v 1.1 2008/02/29 15:07:43 linda_hillis Exp $
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/

最終変更の年が 2006 年で、現在の年が 2007 年の場合、 クイック・フィックス後、ファイルは以下のようになります。
/**********************************************************************
* Copyright (c) 2005,2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: Copyright_Help.html,v 1.1 2008/02/29 15:07:43 linda_hillis Exp $
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/

ユーザーが行の比較を無視したい場合、その行で [ignore] を使用する必要があります。 その行には [ignore] タグのみを入力してください
([ignore] タグの前後には、スペースも入力できません)。以下に例を示します。


/**********************************************************************
* Copyright (c) [date] IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
[ignore]
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/

クイック・フィックスはファイル内の著作権コメントから該当する行を取得し、[ignore] をその行で置換します。
ファイル内に著作権コメントがない場合、クイック・フィックスは [ignore] のある行を削除します。

[date] および [ignore] タグがない場合、ルールはパラメーターとして渡されるすべての項目を比較します。
その場合、著作権の年が入力されていなければなりません。 以下に例を示します。


/**********************************************************************
* Copyright (c) 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: Copyright_Help.html,v 1.1 2008/02/29 15:07:43 linda_hillis Exp $
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/