dev-java/netty-common: Version bump to latest release.
[gentoo.git] / dev-java / netty-buffer / files / netty-buffer-4.0.22-build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- ====================================================================== -->
4 <!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
5 <!-- ====================================================================== -->
6
7 <!-- ====================================================================== -->
8 <!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
9 <!-- ====================================================================== -->
10 <!--                                                                        -->
11 <!-- Any modifications will be overwritten.                                 -->
12 <!--                                                                        -->
13 <!-- Generated by Maven Ant Plugin on 5/15/14 7:12 PM                       -->
14 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/                 -->
15 <!--                                                                        -->
16 <!-- ====================================================================== -->
17
18 <project name="netty-buffer-from-maven" default="package" basedir=".">
19
20   <!-- ====================================================================== -->
21   <!-- Build environment properties                                           -->
22   <!-- ====================================================================== -->
23
24   <property file="${user.home}/.m2/maven.properties"/>
25   <property file="maven-build.properties"/>
26
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"/>
37
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"/>
41
42   <!-- ====================================================================== -->
43   <!-- Defining classpaths                                                    -->
44   <!-- ====================================================================== -->
45
46   <path id="build.classpath">
47   </path>
48   <path id="build.test.classpath">
49   </path>
50
51   <!-- ====================================================================== -->
52   <!-- Cleaning up target                                                     -->
53   <!-- ====================================================================== -->
54
55   <target name="clean" description="Clean the output directory">
56     <delete dir="${maven.build.dir}"/>
57   </target>
58
59   <!-- ====================================================================== -->
60   <!-- Compilation target                                                     -->
61   <!-- ====================================================================== -->
62
63   <target name="compile" description="Compile the code">
64     <mkdir dir="${maven.build.outputDir}"/>
65     <javac destdir="${maven.build.outputDir}" 
66            nowarn="true" 
67            debug="true" 
68            optimize="true" 
69            deprecation="true" 
70            target="1.6" 
71            verbose="false" 
72            fork="true" 
73            memoryInitialSize="1024m"
74            source="1.6">
75       <src>
76         <pathelement location="${maven.build.srcDir.0}"/>
77       </src>
78       <classpath refid="build.classpath"/>
79     </javac>
80   </target>
81
82   <!-- ====================================================================== -->
83   <!-- Test-compilation target                                                -->
84   <!-- ====================================================================== -->
85
86   <target name="compile-tests" 
87           depends="compile" 
88           description="Compile the test code" 
89           unless="maven.test.skip">
90     <mkdir dir="${maven.build.testOutputDir}"/>
91     <javac destdir="${maven.build.testOutputDir}" 
92            nowarn="true" 
93            debug="true" 
94            optimize="true" 
95            deprecation="true" 
96            target="1.6" 
97            verbose="false" 
98            fork="true" 
99            memoryInitialSize="1024m"
100            source="1.6">
101       <src>
102         <pathelement location="${maven.build.testDir.0}"/>
103       </src>
104       <classpath>
105         <path refid="build.test.classpath"/>
106         <pathelement location="${maven.build.outputDir}"/>
107       </classpath>
108     </javac>
109   </target>
110
111   <!-- ====================================================================== -->
112   <!-- Run all tests                                                          -->
113   <!-- ====================================================================== -->
114
115   <target name="test" 
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"/>
124       <classpath>
125         <path refid="build.test.classpath"/>
126         <pathelement location="${maven.build.outputDir}"/>
127         <pathelement location="${maven.build.testOutputDir}"/>
128       </classpath>
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*"/>
135         </fileset>
136       </batchtest>
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*"/>
142         </fileset>
143       </batchtest>
144     </junit>
145   </target>
146
147   <target name="test-junit-present">
148     <available classname="junit.framework.Test" property="junit.present"/>
149   </target>
150
151   <target name="test-junit-status" 
152           depends="test-junit-present">
153     <condition property="junit.missing">
154       <and>
155         <isfalse value="${junit.present}"/>
156         <isfalse value="${maven.test.skip}"/>
157       </and>
158     </condition>
159     <condition property="junit.skipped">
160       <or>
161         <isfalse value="${junit.present}"/>
162         <istrue value="${maven.test.skip}"/>
163       </or>
164     </condition>
165   </target>
166
167   <target name="junit-missing" 
168           depends="test-junit-status" 
169           if="junit.missing">
170     <echo>=================================== WARNING ===================================</echo>
171     <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
172     <echo>===============================================================================</echo>
173   </target>
174
175   <!-- ====================================================================== -->
176   <!-- Javadoc target                                                         -->
177   <!-- ====================================================================== -->
178
179   <target name="javadoc" description="Generates the Javadoc of the application">
180     <javadoc sourcepath="${maven.build.srcDir.0}" 
181              packagenames="*" 
182              destdir="${maven.reporting.outputDirectory}/apidocs" 
183              access="protected" 
184              old="false" 
185              verbose="false" 
186              version="false" 
187              use="true" 
188              author="false" 
189              splitindex="false" 
190              nodeprecated="false" 
191              nodeprecatedlist="false" 
192              notree="false" 
193              noindex="false" 
194              nohelp="false" 
195              nonavbar="false" 
196              serialwarn="false" 
197              charset="ISO-8859-1" 
198              linksource="false" 
199              breakiterator="true"/>
200   </target>
201
202   <!-- ====================================================================== -->
203   <!-- Package target                                                         -->
204   <!-- ====================================================================== -->
205
206   <target name="package" depends="compile,test" description="Package the application">
207     <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" 
208          compress="true" 
209          index="false" 
210          basedir="${maven.build.outputDir}" 
211          excludes="**/package.html"/>
212   </target>
213
214   <!-- ====================================================================== -->
215   <!-- A dummy target for the package named after the type it creates         -->
216   <!-- ====================================================================== -->
217
218   <target name="jar" depends="package" description="Builds the jar for the application"/>
219
220   <!-- ====================================================================== -->
221   <!-- Download dependencies target                                           -->
222   <!-- ====================================================================== -->
223
224   <target name="test-offline">
225     <condition property="maven.mode.offline">
226       <equals arg1="${maven.settings.offline}" arg2="true"/>
227     </condition>
228   </target>
229 </project>