Wicket Web アプリケーションのドキュメントを作成しようとしています。マウントされたすべてのページを取得して /sitemap.xml に表示するページを作成しました。ドキュメントの流れとして、ファイルに新しいタグを追加した<siteMap:Description>
ので、クラス ファイルを説明する javadoc エントリでその説明を埋めたいと思います。
実行時にそれらにアクセスする直接的な方法があることを知っています。代わりに、コンパイル時にそれらをリストにコピーして、実行時にアクセスできるようにしたいと考えています。どうすればいいですか?
ビルドに Maven を使用しています。
編集
おそらく、コンパイルの日付/時刻をプロパティファイルに保存するために、ビルドプロセスの一部として AntTask Already が定義されていることにも言及する必要があります。
私のクラスをスキャンし、情報をファイルに入れるのはおそらくタスクのようです。問題は、どのように進めればよいかわからないことです。
私のAnt-Taskは私のpom.xmlのように定義されているので:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>set-build-time</id>
<phase>process-sources</phase>
<configuration>
<tasks>
<tstamp>
<format property="build.timestamp" pattern="yyyy/MM/dd HH:mm:ss"/>
<format property="build.time" pattern="HH:mm:ss" />
<format property="build.date" pattern="MM/dd/yyyy" />
<format property="build.year" pattern="yyyy"/>
</tstamp>
<replaceregexp byline="true">
<regexp pattern="copyYear\=.*" />
<!--suppress MavenModelInspection -->
<substitution expression="copyYear=${build.year}" />
<fileset dir="src/main/java/" includes="**/*.properties" />
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="buildTime\=.*" />
<!--suppress MavenModelInspection -->
<substitution expression="buildTime=${build.date} ${build.time}" />
<fileset dir="src/main/java/" includes="**/*.properties" />
</replaceregexp>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>