Build Doma1 with Ant


    
    <!-- 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>

point

--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

reference

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

Build Doma1 with Ant
Build Growai with Centos7
Build Java with Wercker
Build bazel with alpine
Build a WEB system with Spring + Doma + H2DB
Build a WEB system with Spring + Doma + H2DB + Thymeleaf
Build a WEB system with Spring + Doma + H2DB Part 2
Build GitLab / Mattermost with DockerForWindows
Build softether VPN with Centos7.
Control log output with Doma2
Build docker environment with WSL
Build Ubuntu 18.04.5 with dual boot
Ninja-build with smart differential build
Build AWS Lambda with Quarkus
[Introduction] Build MVC with Scala
Build DynamoDB local with Docker
Build Couchbase local environment with Docker
Build a Java project with Gradle
Build a Node.js environment with Docker
Build a Tomcat 8.5 environment with Pleiades 4.8
Database linkage with doma2 (Spring boot)
Build environment with vue.js + rails + docker
Build Rails environment with Docker Compose
Build a web application with Javalin
Java build with mac vs code
Build jooby development environment with Eclipse
Build docker + laravel environment with laradock
Build WebRTC Janus with Docker container
Spring Boot gradle build with Docker
How to compile Java with VsCode & Ant
Build a PureScript development environment with Docker
Build and manage RStudio environment with Docker-compose
CICS-Run Java applications-(3) Build management with Gradle
Build REST API with Apache2 + Passenger + Sinatra.
Build DNS server with CentOS8 and bind
Build a Wordpress development environment with Docker
De-cron! Build a job scheduler with Rundeck
CICS-Run Java applications-(2) Build management with Maven
Build OpenCV with Java Wrapper on Ubuntu 18.04
Build Nuxt TypeScript + Vuetify environment with docker-compose
[Docker] Build Jupyter Lab execution environment with Docker
Build an environment with Docker on AWS
Build TensorFlow operation check environment with Docker
How to build Rails 6 environment with Docker