Skip to content

Instantly share code, notes, and snippets.

@masazdream
Created July 1, 2014 08:59
Show Gist options
  • Select an option

  • Save masazdream/73cf4080a680f9d66916 to your computer and use it in GitHub Desktop.

Select an option

Save masazdream/73cf4080a680f9d66916 to your computer and use it in GitHub Desktop.
doma build
<project name="doma-tutorial" default="jar" basedir=".">
<property name="dest" value="src/target/build"/>
<property name="apt_generated" value="src/target/apt_generated"/>
<property name="src" value="src"/>
<property name="resources" value="src"/>
<path id="classpath">
<fileset dir="libs" includes="*.jar"/>
</path>
<target name="jar" depends="clean,copy,compile">
<jar jarfile="target/doma-own-test.jar" basedir="${dest}" />
</target>
<target name="clean">
<delete dir="target" failonerror="false"/>
<mkdir dir="target"/>
<mkdir dir="${dest}"/>
<mkdir dir="${apt_generated}"/>
</target>
<target name="compile">
<javac fork="yes" compiler="javac1.7" debug="on" encoding="UTF-8"
classpathref="classpath" srcdir="${src}" destdir="${dest}">
<compilerarg line="-s ${apt_generated}" />
</javac>
</target>
<target name="copy">
<copy todir="${dest}" filtering="true">
<fileset dir="${resources}">
<include name="META-INF/**" />
</fileset>
</copy>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment