1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- ====================================================================== -->
4 <!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
5 <!-- ====================================================================== -->
7 <!-- ====================================================================== -->
8 <!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
9 <!-- ====================================================================== -->
11 <!-- Any modifications will be overwritten. -->
13 <!-- Generated by Maven Ant Plugin on 5/15/14 7:12 PM -->
14 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
16 <!-- ====================================================================== -->
18 <project name="netty-buffer-from-maven" default="package" basedir=".">
20 <!-- ====================================================================== -->
21 <!-- Build environment properties -->
22 <!-- ====================================================================== -->
24 <property file="${user.home}/.m2/maven.properties"/>
25 <property file="maven-build.properties"/>
27 <property name="maven.build.finalName" value="netty-buffer-4.0.22.Final"/>
28 <property name="maven.build.dir" value="target"/>
29 <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
30 <property name="maven.build.srcDir.0" value="src/main/java"/>
31 <property name="maven.build.resourceDir.0" value="src/main/resources"/>
32 <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
33 <property name="maven.build.testDir.0" value="src/test/java"/>
34 <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
35 <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
36 <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
38 <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
39 <property name="maven.settings.offline" value="false"/>
40 <property name="maven.settings.interactiveMode" value="true"/>
42 <!-- ====================================================================== -->
43 <!-- Defining classpaths -->
44 <!-- ====================================================================== -->
46 <path id="build.classpath">
48 <path id="build.test.classpath">
51 <!-- ====================================================================== -->
52 <!-- Cleaning up target -->
53 <!-- ====================================================================== -->
55 <target name="clean" description="Clean the output directory">
56 <delete dir="${maven.build.dir}"/>
59 <!-- ====================================================================== -->
60 <!-- Compilation target -->
61 <!-- ====================================================================== -->
63 <target name="compile" description="Compile the code">
64 <mkdir dir="${maven.build.outputDir}"/>
65 <javac destdir="${maven.build.outputDir}"
73 memoryInitialSize="1024m"
76 <pathelement location="${maven.build.srcDir.0}"/>
78 <classpath refid="build.classpath"/>
82 <!-- ====================================================================== -->
83 <!-- Test-compilation target -->
84 <!-- ====================================================================== -->
86 <target name="compile-tests"
88 description="Compile the test code"
89 unless="maven.test.skip">
90 <mkdir dir="${maven.build.testOutputDir}"/>
91 <javac destdir="${maven.build.testOutputDir}"
99 memoryInitialSize="1024m"
102 <pathelement location="${maven.build.testDir.0}"/>
105 <path refid="build.test.classpath"/>
106 <pathelement location="${maven.build.outputDir}"/>
111 <!-- ====================================================================== -->
112 <!-- Run all tests -->
113 <!-- ====================================================================== -->
116 depends="compile-tests, junit-missing"
117 unless="junit.skipped"
118 description="Run the test cases">
119 <mkdir dir="${maven.test.reports}"/>
120 <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
121 <sysproperty key="basedir" value="."/>
122 <formatter type="xml"/>
123 <formatter type="plain" usefile="false"/>
125 <path refid="build.test.classpath"/>
126 <pathelement location="${maven.build.outputDir}"/>
127 <pathelement location="${maven.build.testOutputDir}"/>
129 <batchtest todir="${maven.test.reports}" unless="test">
130 <fileset dir="${maven.build.testDir.0}">
131 <include name="**/*Test*.java"/>
132 <include name="**/*Benchmark*.java"/>
133 <exclude name="**/Abstract*"/>
134 <exclude name="**/TestUtil*"/>
137 <batchtest todir="${maven.test.reports}" if="test">
138 <fileset dir="${maven.build.testDir.0}">
139 <include name="**/${test}.java"/>
140 <exclude name="**/Abstract*"/>
141 <exclude name="**/TestUtil*"/>
147 <target name="test-junit-present">
148 <available classname="junit.framework.Test" property="junit.present"/>
151 <target name="test-junit-status"
152 depends="test-junit-present">
153 <condition property="junit.missing">
155 <isfalse value="${junit.present}"/>
156 <isfalse value="${maven.test.skip}"/>
159 <condition property="junit.skipped">
161 <isfalse value="${junit.present}"/>
162 <istrue value="${maven.test.skip}"/>
167 <target name="junit-missing"
168 depends="test-junit-status"
170 <echo>=================================== WARNING ===================================</echo>
171 <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
172 <echo>===============================================================================</echo>
175 <!-- ====================================================================== -->
176 <!-- Javadoc target -->
177 <!-- ====================================================================== -->
179 <target name="javadoc" description="Generates the Javadoc of the application">
180 <javadoc sourcepath="${maven.build.srcDir.0}"
182 destdir="${maven.reporting.outputDirectory}/apidocs"
191 nodeprecatedlist="false"
199 breakiterator="true"/>
202 <!-- ====================================================================== -->
203 <!-- Package target -->
204 <!-- ====================================================================== -->
206 <target name="package" depends="compile,test" description="Package the application">
207 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
210 basedir="${maven.build.outputDir}"
211 excludes="**/package.html"/>
214 <!-- ====================================================================== -->
215 <!-- A dummy target for the package named after the type it creates -->
216 <!-- ====================================================================== -->
218 <target name="jar" depends="package" description="Builds the jar for the application"/>
220 <!-- ====================================================================== -->
221 <!-- Download dependencies target -->
222 <!-- ====================================================================== -->
224 <target name="test-offline">
225 <condition property="maven.mode.offline">
226 <equals arg1="${maven.settings.offline}" arg2="true"/>