<!-- META-Copy of INF-->
<target name="copy">
<copy todir="WEB-INF/classes" filtering="true">
<fileset dir="WEB-INF/src">
<include name="META-INF/**" />
</fileset>
</copy>
</target>
<!--Build the project-->
<target depends="copy" name="build-project">
<javac destdir="WEB-INF/classes" includeantruntime="false" encoding="UTF-8" debug="true">
<src path="WEB-INF/src" />
<classpath refid="hogehoge.classpath"/>
<compilerarg line="-Adao.subpackage=impl -Adao.suffix=Impl -Adebug=false "/>
<compilerarg line="-s .apt_generated" />
</javac>
</target>
--Copy META-INF (directory with SQL) to the build destination directory
--<compilerarg line = "-s .apt_generated" />
The source file generated by the annotation process is spit out to an appropriate directory.
--Specify <compilerarg line ="-Adao.subpackage = impl -Adao.suffix = Impl -Adebug = false "/>
It didn't work well without the last
http://doma.seasar.org/reference/app_build.html#Ant%E3%81%AB%E3%82%88%E3%82%8B%E3%83%93%E3%83%AB%E3%83%89 http://doma.seasar.org/reference/apt.html
I feel that the official annotation processing sample code is incorrect
Recommended Posts