This is a cache of http://dbflute.seasar.org/ja/manual/reference/dfprop/allclasscopyright/index.html. It is a snapshot of the page at 2024-03-19T00:35:25.791+0000.
allClassCopyright | <strong>dbflute</strong>

allClassCopyright

allClassCopyrightとは?

dbfluteが自動生成するクラスファイル(の先頭)に、任意の Copyright の記述を差し込むdbfluteプロパティ。dbfluteクライアントの dfprop 配下の allClassCopyright.dfprop という名前のテキストファイルです。主に Generateタスク および Sql2Entityタスク にて参照されます。

再自動生成時でもExクラスに反映されます。ファイルの上書きではなく、ファイルの一行目が "package " で始まっていれば、それより前の行を作成してそこのCopyrightを出力します。

プロパティ

他のプロパティで多い map型プロパティ とは違い、ファイル内のテキスト自体がそのまま プロパティ値となる 値型プロパティ です。("#" で始まる行がプロパティ上のコメントとして扱われる仕様に変わりはありません)

e.g. "Copyright(c) dbflute TestCo.,TestLtd..." というCopyrightを設定 @allClassCopyright.dfprop
/*
 * Copyright(c) dbflute TestCo.,TestLtd. All Rights Reserved.
 */