私はジャージーを使用しているapache freemarkerで作業しています。テンプレートを使用してwarファイルを作成しようとしたときに.ftlテンプレートをテンプレートフォルダに入れています。このコードをビルドするantを使用してwarファイルにテンプレートを作成してコピーする方法
<target name="war" depends="clean,compile,copy-resources">
<war destfile="${dist}/sample.war" webxml="WEB-INF/web.xml">
<fileset dir="WebContent"/>
<webinf dir="WEB-INF" includes="**/log4j.properties"></webinf>
<lib dir="${lib}"/>
<classes dir="${build}"/>
<templates dir="${templates}"/>
</war>
</target>
それは
war doesn't support the nested "templates" element.
を言っているクラスとlibフォルダを追加することなく、テンプレートフォルダwarファイルで作成されていません。
おかげで、 PraveenさんR.