Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/netty-codec/files: netty-codec-4.0.19-build.xml
Date: Wed, 28 May 2014 17:28:42
Message-Id: 20140528172839.125112004E@flycatcher.gentoo.org
1 tomwij 14/05/28 17:28:38
2
3 Added: netty-codec-4.0.19-build.xml
4 Log:
5 New ebuild for dev-java/netty-codec, async event-driven framework for rapid development of high performance network applications; requested by Arfrever, needed for new Jython versions.
6
7 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
8
9 Revision Changes Path
10 1.1 dev-java/netty-codec/files/netty-codec-4.0.19-build.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netty-codec/files/netty-codec-4.0.19-build.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netty-codec/files/netty-codec-4.0.19-build.xml?rev=1.1&content-type=text/plain
14
15 Index: netty-codec-4.0.19-build.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18
19 <!-- ====================================================================== -->
20 <!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
21 <!-- ====================================================================== -->
22
23 <!-- ====================================================================== -->
24 <!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
25 <!-- ====================================================================== -->
26 <!-- -->
27 <!-- Any modifications will be overwritten. -->
28 <!-- -->
29 <!-- Generated by Maven Ant Plugin on 5/15/14 7:12 PM -->
30 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
31 <!-- -->
32 <!-- ====================================================================== -->
33
34 <project name="netty-codec-from-maven" default="package" basedir=".">
35
36 <!-- ====================================================================== -->
37 <!-- Build environment properties -->
38 <!-- ====================================================================== -->
39
40 <property file="${user.home}/.m2/maven.properties"/>
41 <property file="maven-build.properties"/>
42
43 <property name="maven.build.finalName" value="netty-codec-4.0.19.Final"/>
44 <property name="maven.build.dir" value="target"/>
45 <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
46 <property name="maven.build.srcDir.0" value="src/main/java"/>
47 <property name="maven.build.resourceDir.0" value="src/main/resources"/>
48 <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
49 <property name="maven.build.testDir.0" value="src/test/java"/>
50 <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
51 <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
52 <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
53
54 <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
55 <property name="maven.settings.offline" value="false"/>
56 <property name="maven.settings.interactiveMode" value="true"/>
57
58 <!-- ====================================================================== -->
59 <!-- Defining classpaths -->
60 <!-- ====================================================================== -->
61
62 <path id="build.classpath">
63 <pathelement location="${maven.repo.local}/io/netty/netty-transport/4.0.19.Final/netty-transport-4.0.19.Final.jar"/>
64 <pathelement location="${maven.repo.local}/io/netty/netty-buffer/4.0.19.Final/netty-buffer-4.0.19.Final.jar"/>
65 <pathelement location="${maven.repo.local}/io/netty/netty-common/4.0.19.Final/netty-common-4.0.19.Final.jar"/>
66 <pathelement location="${maven.repo.local}/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar"/>
67 <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling/1.3.18.GA/jboss-marshalling-1.3.18.GA.jar"/>
68 <pathelement location="${maven.repo.local}/com/jcraft/jzlib/1.1.2/jzlib-1.1.2.jar"/>
69 </path>
70 <path id="build.test.classpath">
71 <pathelement location="${maven.repo.local}/io/netty/netty-transport/4.0.19.Final/netty-transport-4.0.19.Final.jar"/>
72 <pathelement location="${maven.repo.local}/io/netty/netty-buffer/4.0.19.Final/netty-buffer-4.0.19.Final.jar"/>
73 <pathelement location="${maven.repo.local}/io/netty/netty-common/4.0.19.Final/netty-common-4.0.19.Final.jar"/>
74 <pathelement location="${maven.repo.local}/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar"/>
75 <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling/1.3.18.GA/jboss-marshalling-1.3.18.GA.jar"/>
76 <pathelement location="${maven.repo.local}/com/jcraft/jzlib/1.1.2/jzlib-1.1.2.jar"/>
77 <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling-serial/1.3.18.GA/jboss-marshalling-serial-1.3.18.GA.jar"/>
78 <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling-river/1.3.18.GA/jboss-marshalling-river-1.3.18.GA.jar"/>
79 <pathelement location="${maven.repo.local}/org/javassist/javassist/3.18.0-GA/javassist-3.18.0-GA.jar"/>
80 <pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/>
81 <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/>
82 <pathelement location="${maven.repo.local}/org/easymock/easymock/3.2/easymock-3.2.jar"/>
83 <pathelement location="${maven.repo.local}/cglib/cglib-nodep/2.2.2/cglib-nodep-2.2.2.jar"/>
84 <pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.3/objenesis-1.3.jar"/>
85 <pathelement location="${maven.repo.local}/org/easymock/easymockclassextension/3.2/easymockclassextension-3.2.jar"/>
86 <pathelement location="${maven.repo.local}/org/jmock/jmock-junit4/2.6.0/jmock-junit4-2.6.0.jar"/>
87 <pathelement location="${maven.repo.local}/org/jmock/jmock/2.6.0/jmock-2.6.0.jar"/>
88 <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.jar"/>
89 <pathelement location="${maven.repo.local}/junit/junit-dep/4.4/junit-dep-4.4.jar"/>
90 <pathelement location="${maven.repo.local}/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar"/>
91 <pathelement location="${maven.repo.local}/ch/qos/logback/logback-core/1.0.13/logback-core-1.0.13.jar"/>
92 <pathelement location="${maven.repo.local}/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar"/>
93 </path>
94
95 <!-- ====================================================================== -->
96 <!-- Cleaning up target -->
97 <!-- ====================================================================== -->
98
99 <target name="clean" description="Clean the output directory">
100 <delete dir="${maven.build.dir}"/>
101 </target>
102
103 <!-- ====================================================================== -->
104 <!-- Compilation target -->
105 <!-- ====================================================================== -->
106
107 <target name="compile" description="Compile the code">
108 <mkdir dir="${maven.build.outputDir}"/>
109 <javac destdir="${maven.build.outputDir}"
110 nowarn="true"
111 debug="true"
112 optimize="true"
113 deprecation="true"
114 target="1.6"
115 verbose="false"
116 fork="true"
117 memoryMaximumSize="256m"
118 memoryInitialSize="1024m"
119 source="1.6">
120 <src>
121 <pathelement location="${maven.build.srcDir.0}"/>
122 </src>
123 <classpath refid="build.classpath"/>
124 </javac>
125 </target>
126
127 <!-- ====================================================================== -->
128 <!-- Test-compilation target -->
129 <!-- ====================================================================== -->
130
131 <target name="compile-tests"
132 depends="compile"
133 description="Compile the test code"
134 unless="maven.test.skip">
135 <mkdir dir="${maven.build.testOutputDir}"/>
136 <javac destdir="${maven.build.testOutputDir}"
137 nowarn="true"
138 debug="true"
139 optimize="true"
140 deprecation="true"
141 target="1.6"
142 verbose="false"
143 fork="true"
144 memoryMaximumSize="256m"
145 memoryInitialSize="1024m"
146 source="1.6">
147 <src>
148 <pathelement location="${maven.build.testDir.0}"/>
149 </src>
150 <classpath>
151 <path refid="build.test.classpath"/>
152 <pathelement location="${maven.build.outputDir}"/>
153 </classpath>
154 </javac>
155 </target>
156
157 <!-- ====================================================================== -->
158 <!-- Run all tests -->
159 <!-- ====================================================================== -->
160
161 <target name="test"
162 depends="compile-tests, junit-missing"
163 unless="junit.skipped"
164 description="Run the test cases">
165 <mkdir dir="${maven.test.reports}"/>
166 <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
167 <sysproperty key="basedir" value="."/>
168 <formatter type="xml"/>
169 <formatter type="plain" usefile="false"/>
170 <classpath>
171 <path refid="build.test.classpath"/>
172 <pathelement location="${maven.build.outputDir}"/>
173 <pathelement location="${maven.build.testOutputDir}"/>
174 </classpath>
175 <batchtest todir="${maven.test.reports}" unless="test">
176 <fileset dir="${maven.build.testDir.0}">
177 <include name="**/*Test*.java"/>
178 <include name="**/*Benchmark*.java"/>
179 <exclude name="**/Abstract*"/>
180 <exclude name="**/TestUtil*"/>
181 </fileset>
182 </batchtest>
183 <batchtest todir="${maven.test.reports}" if="test">
184 <fileset dir="${maven.build.testDir.0}">
185 <include name="**/${test}.java"/>
186 <exclude name="**/Abstract*"/>
187 <exclude name="**/TestUtil*"/>
188 </fileset>
189 </batchtest>
190 </junit>
191 </target>
192
193 <target name="test-junit-present">
194 <available classname="junit.framework.Test" property="junit.present"/>
195 </target>
196
197 <target name="test-junit-status"
198 depends="test-junit-present">
199 <condition property="junit.missing">
200 <and>
201 <isfalse value="${junit.present}"/>
202 <isfalse value="${maven.test.skip}"/>
203 </and>
204 </condition>
205 <condition property="junit.skipped">
206 <or>
207 <isfalse value="${junit.present}"/>
208 <istrue value="${maven.test.skip}"/>
209 </or>
210 </condition>
211 </target>
212
213 <target name="junit-missing"
214 depends="test-junit-status"
215 if="junit.missing">
216 <echo>=================================== WARNING ===================================</echo>
217 <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
218 <echo>===============================================================================</echo>
219 </target>
220
221 <!-- ====================================================================== -->
222 <!-- Javadoc target -->
223 <!-- ====================================================================== -->
224
225 <target name="javadoc" description="Generates the Javadoc of the application">
226 <javadoc sourcepath="${maven.build.srcDir.0}"
227 packagenames="*"
228 destdir="${maven.reporting.outputDirectory}/apidocs"
229 access="protected"
230 old="false"
231 verbose="false"
232 version="false"
233 use="true"
234 author="false"
235 splitindex="false"
236 nodeprecated="false"
237 nodeprecatedlist="false"
238 notree="false"
239 noindex="false"
240 nohelp="false"
241 nonavbar="false"
242 serialwarn="false"
243 charset="ISO-8859-1"
244 linksource="false"
245 breakiterator="true"/>
246 </target>
247
248 <!-- ====================================================================== -->
249 <!-- Package target -->
250 <!-- ====================================================================== -->
251
252 <target name="package" depends="compile,test" description="Package the application">
253 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
254 compress="true"
255 index="false"
256 basedir="${maven.build.outputDir}"
257 excludes="**/package.html"/>
258 </target>
259
260 <!-- ====================================================================== -->
261 <!-- A dummy target for the package named after the type it creates -->
262 <!-- ====================================================================== -->
263
264 <target name="jar" depends="package" description="Builds the jar for the application"/>
265
266 <!-- ====================================================================== -->
267 <!-- Download dependencies target -->
268 <!-- ====================================================================== -->
269
270 <target name="test-offline">
271 <condition property="maven.mode.offline">
272 <equals arg1="${maven.settings.offline}" arg2="true"/>
273 </condition>
274 </target>
275
276 </project>