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/headius-options/files: headius-options-1.1-build.xml
Date: Sat, 03 May 2014 19:22:37
Message-Id: 20140503192231.E25122004E@flycatcher.gentoo.org
1 tomwij 14/05/03 19:22:31
2
3 Added: headius-options-1.1-build.xml
4 Log:
5 New package for dev-java/headius-options, a small library for managing sets of JVM properties; dependency of newer dev-java/jruby version(s).
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/headius-options/files/headius-options-1.1-build.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/headius-options/files/headius-options-1.1-build.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/headius-options/files/headius-options-1.1-build.xml?rev=1.1&content-type=text/plain
14
15 Index: headius-options-1.1-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/3/14 9:10 PM -->
30 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
31 <!-- -->
32 <!-- ====================================================================== -->
33
34 <project name="options-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="options-1.1"/>
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.11/junit-4.11.jar"/>
65 <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.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 nowarn="false"
84 debug="true"
85 optimize="false"
86 deprecation="true"
87 target="1.1"
88 verbose="false"
89 fork="false"
90 source="1.3">
91 <src>
92 <pathelement location="${maven.build.srcDir.0}"/>
93 </src>
94 <classpath refid="build.classpath"/>
95 </javac>
96 </target>
97
98 <!-- ====================================================================== -->
99 <!-- Test-compilation target -->
100 <!-- ====================================================================== -->
101
102 <target name="compile-tests"
103 depends="compile"
104 description="Compile the test code"
105 unless="maven.test.skip">
106 <mkdir dir="${maven.build.testOutputDir}"/>
107 </target>
108
109 <!-- ====================================================================== -->
110 <!-- Run all tests -->
111 <!-- ====================================================================== -->
112
113 <target name="test"
114 depends="compile-tests, junit-missing"
115 unless="junit.skipped"
116 description="Run the test cases"/>
117
118 <target name="test-junit-present">
119 <available classname="junit.framework.Test" property="junit.present"/>
120 </target>
121
122 <target name="test-junit-status"
123 depends="test-junit-present">
124 <condition property="junit.missing">
125 <and>
126 <isfalse value="${junit.present}"/>
127 <isfalse value="${maven.test.skip}"/>
128 </and>
129 </condition>
130 <condition property="junit.skipped">
131 <or>
132 <isfalse value="${junit.present}"/>
133 <istrue value="${maven.test.skip}"/>
134 </or>
135 </condition>
136 </target>
137
138 <target name="junit-missing"
139 depends="test-junit-status"
140 if="junit.missing">
141 <echo>=================================== WARNING ===================================</echo>
142 <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
143 <echo>===============================================================================</echo>
144 </target>
145
146 <!-- ====================================================================== -->
147 <!-- Javadoc target -->
148 <!-- ====================================================================== -->
149
150 <target name="javadoc" description="Generates the Javadoc of the application">
151 <javadoc sourcepath="${maven.build.srcDir.0}"
152 packagenames="*"
153 destdir="${maven.reporting.outputDirectory}/apidocs"
154 access="protected"
155 old="false"
156 verbose="false"
157 version="true"
158 use="true"
159 author="true"
160 splitindex="false"
161 nodeprecated="false"
162 nodeprecatedlist="false"
163 notree="false"
164 noindex="false"
165 nohelp="false"
166 nonavbar="false"
167 serialwarn="false"
168 charset="ISO-8859-1"
169 linksource="false"
170 breakiterator="false"/>
171 </target>
172
173 <!-- ====================================================================== -->
174 <!-- Package target -->
175 <!-- ====================================================================== -->
176
177 <target name="package" depends="compile,test" description="Package the application">
178 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
179 compress="true"
180 index="false"
181 basedir="${maven.build.outputDir}"
182 excludes="**/package.html"/>
183 </target>
184
185 <!-- ====================================================================== -->
186 <!-- A dummy target for the package named after the type it creates -->
187 <!-- ====================================================================== -->
188
189 <target name="jar" depends="package" description="Builds the jar for the application"/>
190
191 <!-- ====================================================================== -->
192 <!-- Download dependencies target -->
193 <!-- ====================================================================== -->
194
195 <target name="test-offline">
196 <condition property="maven.mode.offline">
197 <equals arg1="${maven.settings.offline}" arg2="true"/>
198 </condition>
199 </target>
200
201 <target name="get-deps"
202 depends="test-offline"
203 description="Download all dependencies"
204 unless="maven.mode.offline">
205 <mkdir dir="${maven.repo.local}"/>
206 <mkdir dir="${maven.repo.local}/junit/junit/4.11"/>
207 <get src="https://oss.sonatype.org/content/repositories/snapshots/junit/junit/4.11/junit-4.11.jar"
208 dest="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"
209 usetimestamp="false"
210 ignoreerrors="true"/>
211 <get src="http://repo.maven.apache.org/maven2/junit/junit/4.11/junit-4.11.jar"
212 dest="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"
213 usetimestamp="false"
214 ignoreerrors="true"/>
215 <mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3"/>
216 <get src="https://oss.sonatype.org/content/repositories/snapshots/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"
217 dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"
218 usetimestamp="false"
219 ignoreerrors="true"/>
220 <get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"
221 dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"
222 usetimestamp="false"
223 ignoreerrors="true"/>
224 </target>
225
226 </project>