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-handler/files: netty-handler-4.0.19-build.xml
Date: Fri, 30 May 2014 12:11:03
Message-Id: 20140530121100.0799A2004F@flycatcher.gentoo.org
1 tomwij 14/05/30 12:10:59
2
3 Added: netty-handler-4.0.19-build.xml
4 Log:
5 New ebuild for dev-java/netty-handler, 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-handler/files/netty-handler-4.0.19-build.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netty-handler/files/netty-handler-4.0.19-build.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/netty-handler/files/netty-handler-4.0.19-build.xml?rev=1.1&content-type=text/plain
14
15 Index: netty-handler-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-handler-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-handler-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 </path>
64 <path id="build.test.classpath">
65 </path>
66
67 <!-- ====================================================================== -->
68 <!-- Cleaning up target -->
69 <!-- ====================================================================== -->
70
71 <target name="clean" description="Clean the output directory">
72 <delete dir="${maven.build.dir}"/>
73 </target>
74
75 <!-- ====================================================================== -->
76 <!-- Compilation target -->
77 <!-- ====================================================================== -->
78
79 <target name="compile" description="Compile the code">
80 <mkdir dir="${maven.build.outputDir}"/>
81 <javac destdir="${maven.build.outputDir}"
82 nowarn="true"
83 debug="true"
84 optimize="true"
85 deprecation="true"
86 target="1.6"
87 verbose="false"
88 fork="true"
89 memoryMaximumSize="256m"
90 memoryInitialSize="1024m"
91 source="1.6">
92 <src>
93 <pathelement location="${maven.build.srcDir.0}"/>
94 </src>
95 <classpath refid="build.classpath"/>
96 </javac>
97 </target>
98
99 <!-- ====================================================================== -->
100 <!-- Test-compilation target -->
101 <!-- ====================================================================== -->
102
103 <target name="compile-tests"
104 depends="compile"
105 description="Compile the test code"
106 unless="maven.test.skip">
107 <mkdir dir="${maven.build.testOutputDir}"/>
108 <javac destdir="${maven.build.testOutputDir}"
109 nowarn="true"
110 debug="true"
111 optimize="true"
112 deprecation="true"
113 target="1.6"
114 verbose="false"
115 fork="true"
116 memoryMaximumSize="256m"
117 memoryInitialSize="1024m"
118 source="1.6">
119 <src>
120 <pathelement location="${maven.build.testDir.0}"/>
121 </src>
122 <classpath>
123 <path refid="build.test.classpath"/>
124 <pathelement location="${maven.build.outputDir}"/>
125 </classpath>
126 </javac>
127 </target>
128
129 <!-- ====================================================================== -->
130 <!-- Run all tests -->
131 <!-- ====================================================================== -->
132
133 <target name="test"
134 depends="compile-tests, junit-missing"
135 unless="junit.skipped"
136 description="Run the test cases">
137 <mkdir dir="${maven.test.reports}"/>
138 <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
139 <sysproperty key="basedir" value="."/>
140 <formatter type="xml"/>
141 <formatter type="plain" usefile="false"/>
142 <classpath>
143 <path refid="build.test.classpath"/>
144 <pathelement location="${maven.build.outputDir}"/>
145 <pathelement location="${maven.build.testOutputDir}"/>
146 </classpath>
147 <batchtest todir="${maven.test.reports}" unless="test">
148 <fileset dir="${maven.build.testDir.0}">
149 <include name="**/*Test*.java"/>
150 <include name="**/*Benchmark*.java"/>
151 <exclude name="**/Abstract*"/>
152 <exclude name="**/TestUtil*"/>
153 </fileset>
154 </batchtest>
155 <batchtest todir="${maven.test.reports}" if="test">
156 <fileset dir="${maven.build.testDir.0}">
157 <include name="**/${test}.java"/>
158 <exclude name="**/Abstract*"/>
159 <exclude name="**/TestUtil*"/>
160 </fileset>
161 </batchtest>
162 </junit>
163 </target>
164
165 <target name="test-junit-present">
166 <available classname="junit.framework.Test" property="junit.present"/>
167 </target>
168
169 <target name="test-junit-status"
170 depends="test-junit-present">
171 <condition property="junit.missing">
172 <and>
173 <isfalse value="${junit.present}"/>
174 <isfalse value="${maven.test.skip}"/>
175 </and>
176 </condition>
177 <condition property="junit.skipped">
178 <or>
179 <isfalse value="${junit.present}"/>
180 <istrue value="${maven.test.skip}"/>
181 </or>
182 </condition>
183 </target>
184
185 <target name="junit-missing"
186 depends="test-junit-status"
187 if="junit.missing">
188 <echo>=================================== WARNING ===================================</echo>
189 <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
190 <echo>===============================================================================</echo>
191 </target>
192
193 <!-- ====================================================================== -->
194 <!-- Javadoc target -->
195 <!-- ====================================================================== -->
196
197 <target name="javadoc" description="Generates the Javadoc of the application">
198 <javadoc sourcepath="${maven.build.srcDir.0}"
199 packagenames="*"
200 destdir="${maven.reporting.outputDirectory}/apidocs"
201 access="protected"
202 old="false"
203 verbose="false"
204 version="false"
205 use="true"
206 author="false"
207 splitindex="false"
208 nodeprecated="false"
209 nodeprecatedlist="false"
210 notree="false"
211 noindex="false"
212 nohelp="false"
213 nonavbar="false"
214 serialwarn="false"
215 charset="ISO-8859-1"
216 linksource="false"
217 breakiterator="true"/>
218 </target>
219
220 <!-- ====================================================================== -->
221 <!-- Package target -->
222 <!-- ====================================================================== -->
223
224 <target name="package" depends="compile,test" description="Package the application">
225 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
226 compress="true"
227 index="false"
228 basedir="${maven.build.outputDir}"
229 excludes="**/package.html"/>
230 </target>
231
232 <!-- ====================================================================== -->
233 <!-- A dummy target for the package named after the type it creates -->
234 <!-- ====================================================================== -->
235
236 <target name="jar" depends="package" description="Builds the jar for the application"/>
237
238 <!-- ====================================================================== -->
239 <!-- Download dependencies target -->
240 <!-- ====================================================================== -->
241
242 <target name="test-offline">
243 <condition property="maven.mode.offline">
244 <equals arg1="${maven.settings.offline}" arg2="true"/>
245 </condition>
246 </target>
247
248 </project>