1 |
tomwij 13/06/04 16:32:07 |
2 |
|
3 |
Added: invokebinder-1.2-build.xml |
4 |
Log: |
5 |
New ebuild for invokebinder, a friendly DSL for binding method handles; new dependency of jruby. Fixes bug #472222. |
6 |
|
7 |
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-java/invokebinder/files/invokebinder-1.2-build.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/invokebinder/files/invokebinder-1.2-build.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/invokebinder/files/invokebinder-1.2-build.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: invokebinder-1.2-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 6/4/13 6:11 PM --> |
30 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
31 |
<!-- --> |
32 |
<!-- ====================================================================== --> |
33 |
|
34 |
<project name="invokebinder-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="invokebinder-1.2"/> |
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 id="build.test.classpath"> |
64 |
<pathelement location="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar"/> |
65 |
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"/> |
66 |
</path> |
67 |
|
68 |
<!-- ====================================================================== --> |
69 |
<!-- Cleaning up target --> |
70 |
<!-- ====================================================================== --> |
71 |
|
72 |
<target name="clean" description="Clean the output directory"> |
73 |
<delete dir="${maven.build.dir}"/> |
74 |
</target> |
75 |
|
76 |
<!-- ====================================================================== --> |
77 |
<!-- Compilation target --> |
78 |
<!-- ====================================================================== --> |
79 |
|
80 |
<target name="compile" depends="get-deps" description="Compile the code"> |
81 |
<mkdir dir="${maven.build.outputDir}"/> |
82 |
<javac destdir="${maven.build.outputDir}" |
83 |
encoding="UTF-8" |
84 |
nowarn="false" |
85 |
debug="true" |
86 |
optimize="false" |
87 |
deprecation="true" |
88 |
target="1.7" |
89 |
verbose="false" |
90 |
fork="false" |
91 |
source="1.7"> |
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 |
encoding="UTF-8" |
110 |
nowarn="false" |
111 |
debug="true" |
112 |
optimize="false" |
113 |
deprecation="true" |
114 |
target="1.7" |
115 |
verbose="false" |
116 |
fork="false" |
117 |
source="1.7"> |
118 |
<src> |
119 |
<pathelement location="${maven.build.testDir.0}"/> |
120 |
</src> |
121 |
<classpath> |
122 |
<path refid="build.test.classpath"/> |
123 |
<pathelement location="${maven.build.outputDir}"/> |
124 |
</classpath> |
125 |
</javac> |
126 |
</target> |
127 |
|
128 |
<!-- ====================================================================== --> |
129 |
<!-- Run all tests --> |
130 |
<!-- ====================================================================== --> |
131 |
|
132 |
<target name="test" |
133 |
depends="compile-tests, junit-missing" |
134 |
unless="junit.skipped" |
135 |
description="Run the test cases"> |
136 |
<mkdir dir="${maven.test.reports}"/> |
137 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
138 |
<sysproperty key="basedir" value="."/> |
139 |
<formatter type="xml"/> |
140 |
<formatter type="plain" usefile="false"/> |
141 |
<classpath> |
142 |
<path refid="build.test.classpath"/> |
143 |
<pathelement location="${maven.build.outputDir}"/> |
144 |
<pathelement location="${maven.build.testOutputDir}"/> |
145 |
</classpath> |
146 |
<batchtest todir="${maven.test.reports}" unless="test"> |
147 |
<fileset dir="${maven.build.testDir.0}"> |
148 |
<include name="**/Test*.java"/> |
149 |
<include name="**/*Test.java"/> |
150 |
<include name="**/*TestCase.java"/> |
151 |
<exclude name="**/*Abstract*Test.java"/> |
152 |
</fileset> |
153 |
</batchtest> |
154 |
<batchtest todir="${maven.test.reports}" if="test"> |
155 |
<fileset dir="${maven.build.testDir.0}"> |
156 |
<include name="**/${test}.java"/> |
157 |
<exclude name="**/*Abstract*Test.java"/> |
158 |
</fileset> |
159 |
</batchtest> |
160 |
</junit> |
161 |
</target> |
162 |
|
163 |
<target name="test-junit-present"> |
164 |
<available classname="junit.framework.Test" property="junit.present"/> |
165 |
</target> |
166 |
|
167 |
<target name="test-junit-status" |
168 |
depends="test-junit-present"> |
169 |
<condition property="junit.missing"> |
170 |
<and> |
171 |
<isfalse value="${junit.present}"/> |
172 |
<isfalse value="${maven.test.skip}"/> |
173 |
</and> |
174 |
</condition> |
175 |
<condition property="junit.skipped"> |
176 |
<or> |
177 |
<isfalse value="${junit.present}"/> |
178 |
<istrue value="${maven.test.skip}"/> |
179 |
</or> |
180 |
</condition> |
181 |
</target> |
182 |
|
183 |
<target name="junit-missing" |
184 |
depends="test-junit-status" |
185 |
if="junit.missing"> |
186 |
<echo>=================================== WARNING ===================================</echo> |
187 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
188 |
<echo>===============================================================================</echo> |
189 |
</target> |
190 |
|
191 |
<!-- ====================================================================== --> |
192 |
<!-- Javadoc target --> |
193 |
<!-- ====================================================================== --> |
194 |
|
195 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
196 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
197 |
packagenames="*" |
198 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
199 |
access="protected" |
200 |
old="false" |
201 |
verbose="false" |
202 |
version="true" |
203 |
use="true" |
204 |
author="true" |
205 |
splitindex="false" |
206 |
nodeprecated="false" |
207 |
nodeprecatedlist="false" |
208 |
notree="false" |
209 |
noindex="false" |
210 |
nohelp="false" |
211 |
nonavbar="false" |
212 |
serialwarn="false" |
213 |
charset="ISO-8859-1" |
214 |
linksource="false" |
215 |
breakiterator="false"/> |
216 |
</target> |
217 |
|
218 |
<!-- ====================================================================== --> |
219 |
<!-- Package target --> |
220 |
<!-- ====================================================================== --> |
221 |
|
222 |
<target name="package" depends="compile,test" description="Package the application"> |
223 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
224 |
compress="true" |
225 |
index="false" |
226 |
basedir="${maven.build.outputDir}" |
227 |
excludes="**/package.html"/> |
228 |
</target> |
229 |
|
230 |
<!-- ====================================================================== --> |
231 |
<!-- A dummy target for the package named after the type it creates --> |
232 |
<!-- ====================================================================== --> |
233 |
|
234 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
235 |
|
236 |
<!-- ====================================================================== --> |
237 |
<!-- Download dependencies target --> |
238 |
<!-- ====================================================================== --> |
239 |
|
240 |
<target name="test-offline"> |
241 |
<condition property="maven.mode.offline"> |
242 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
243 |
</condition> |
244 |
</target> |
245 |
|
246 |
<target name="get-deps" |
247 |
depends="test-offline" |
248 |
description="Download all dependencies" |
249 |
unless="maven.mode.offline"> |
250 |
<mkdir dir="${maven.repo.local}"/> |
251 |
<mkdir dir="${maven.repo.local}/junit/junit/4.9"/> |
252 |
<get src="https://oss.sonatype.org/content/repositories/snapshots/junit/junit/4.9/junit-4.9.jar" |
253 |
dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" |
254 |
usetimestamp="false" |
255 |
ignoreerrors="true"/> |
256 |
<get src="http://repo.maven.apache.org/maven2/junit/junit/4.9/junit-4.9.jar" |
257 |
dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" |
258 |
usetimestamp="false" |
259 |
ignoreerrors="true"/> |
260 |
<mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/> |
261 |
<get src="https://oss.sonatype.org/content/repositories/snapshots/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
262 |
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
263 |
usetimestamp="false" |
264 |
ignoreerrors="true"/> |
265 |
<get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
266 |
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
267 |
usetimestamp="false" |
268 |
ignoreerrors="true"/> |
269 |
</target> |
270 |
|
271 |
</project> |