저지와 함께 아파치 freemarker에서 작업하고 있습니다. 템플릿이없는 war 파일을 만들 때 템플리트 폴더에 .ftl 템플릿을 저장하고 있습니다. 개미를 사용하여 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 폴더가 추가하지만 템플릿 폴더 전쟁 파일에 만들어지지 않습니다 빌드.
감사합니다, 프라 빈 R.