1 |
sera 12/01/12 11:18:36 |
2 |
|
3 |
Added: jnr-x86asm_maven-build.xml |
4 |
Log: |
5 |
Version bump. |
6 |
Switch to https://github.com/jnr as project home. |
7 |
No longer use netbeans build system. |
8 |
|
9 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 dev-java/jnr-x86asm/files/jnr-x86asm_maven-build.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-x86asm/files/jnr-x86asm_maven-build.xml?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jnr-x86asm/files/jnr-x86asm_maven-build.xml?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: jnr-x86asm_maven-build.xml |
18 |
=================================================================== |
19 |
<?xml version="1.0" encoding="UTF-8"?> |
20 |
|
21 |
<!-- ====================================================================== --> |
22 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
23 |
<!-- ====================================================================== --> |
24 |
|
25 |
<!-- ====================================================================== --> |
26 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
27 |
<!-- ====================================================================== --> |
28 |
<!-- --> |
29 |
<!-- Any modifications will be overwritten. --> |
30 |
<!-- --> |
31 |
<!-- Generated by Maven Ant Plugin on 1/9/12 11:35 AM --> |
32 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
33 |
<!-- --> |
34 |
<!-- ====================================================================== --> |
35 |
|
36 |
<project name="jnr-x86asm-from-maven" default="package" basedir="."> |
37 |
|
38 |
<!-- ====================================================================== --> |
39 |
<!-- Build environment properties --> |
40 |
<!-- ====================================================================== --> |
41 |
|
42 |
<property file="${user.home}/.m2/maven.properties"/> |
43 |
<property file="maven-build.properties"/> |
44 |
|
45 |
<property name="maven.build.finalName" value="jnr-x86asm-1.0.1"/> |
46 |
<property name="maven.build.dir" value="target"/> |
47 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
48 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
49 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
50 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
51 |
<property name="maven.build.testDir.0" value="src/test/java"/> |
52 |
<property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
53 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
54 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
55 |
|
56 |
<property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
57 |
<property name="maven.settings.offline" value="false"/> |
58 |
<property name="maven.settings.interactiveMode" value="true"/> |
59 |
|
60 |
<!-- ====================================================================== --> |
61 |
<!-- Defining classpaths --> |
62 |
<!-- ====================================================================== --> |
63 |
|
64 |
<path id="build.classpath"/> |
65 |
<path id="build.test.classpath"> |
66 |
<pathelement location="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar"/> |
67 |
</path> |
68 |
|
69 |
<!-- ====================================================================== --> |
70 |
<!-- Cleaning up target --> |
71 |
<!-- ====================================================================== --> |
72 |
|
73 |
<target name="clean" description="Clean the output directory"> |
74 |
<delete dir="${maven.build.dir}"/> |
75 |
</target> |
76 |
|
77 |
<!-- ====================================================================== --> |
78 |
<!-- Compilation target --> |
79 |
<!-- ====================================================================== --> |
80 |
|
81 |
<target name="compile" depends="get-deps" description="Compile the code"> |
82 |
<mkdir dir="${maven.build.outputDir}"/> |
83 |
<javac destdir="${maven.build.outputDir}" |
84 |
nowarn="false" |
85 |
debug="true" |
86 |
optimize="false" |
87 |
deprecation="true" |
88 |
target="1.1" |
89 |
verbose="false" |
90 |
fork="false" |
91 |
source="1.3"> |
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 |
</target> |
109 |
|
110 |
<!-- ====================================================================== --> |
111 |
<!-- Run all tests --> |
112 |
<!-- ====================================================================== --> |
113 |
|
114 |
<target name="test" |
115 |
depends="compile-tests, junit-missing" |
116 |
unless="junit.skipped" |
117 |
description="Run the test cases"/> |
118 |
|
119 |
<target name="test-junit-present"> |
120 |
<available classname="junit.framework.Test" property="junit.present"/> |
121 |
</target> |
122 |
|
123 |
<target name="test-junit-status" |
124 |
depends="test-junit-present"> |
125 |
<condition property="junit.missing"> |
126 |
<and> |
127 |
<isfalse value="${junit.present}"/> |
128 |
<isfalse value="${maven.test.skip}"/> |
129 |
</and> |
130 |
</condition> |
131 |
<condition property="junit.skipped"> |
132 |
<or> |
133 |
<isfalse value="${junit.present}"/> |
134 |
<istrue value="${maven.test.skip}"/> |
135 |
</or> |
136 |
</condition> |
137 |
</target> |
138 |
|
139 |
<target name="junit-missing" |
140 |
depends="test-junit-status" |
141 |
if="junit.missing"> |
142 |
<echo>=================================== WARNING ===================================</echo> |
143 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
144 |
<echo>===============================================================================</echo> |
145 |
</target> |
146 |
|
147 |
<!-- ====================================================================== --> |
148 |
<!-- Javadoc target --> |
149 |
<!-- ====================================================================== --> |
150 |
|
151 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
152 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
153 |
packagenames="*" |
154 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
155 |
access="protected" |
156 |
old="false" |
157 |
verbose="false" |
158 |
version="true" |
159 |
use="true" |
160 |
author="true" |
161 |
splitindex="false" |
162 |
nodeprecated="false" |
163 |
nodeprecatedlist="false" |
164 |
notree="false" |
165 |
noindex="false" |
166 |
nohelp="false" |
167 |
nonavbar="false" |
168 |
serialwarn="false" |
169 |
charset="ISO-8859-1" |
170 |
linksource="false" |
171 |
breakiterator="false"/> |
172 |
</target> |
173 |
|
174 |
<!-- ====================================================================== --> |
175 |
<!-- Package target --> |
176 |
<!-- ====================================================================== --> |
177 |
|
178 |
<target name="package" depends="compile,test" description="Package the application"> |
179 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
180 |
compress="true" |
181 |
index="false" |
182 |
basedir="${maven.build.outputDir}" |
183 |
excludes="**/package.html"/> |
184 |
</target> |
185 |
|
186 |
<!-- ====================================================================== --> |
187 |
<!-- A dummy target for the package named after the type it creates --> |
188 |
<!-- ====================================================================== --> |
189 |
|
190 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
191 |
|
192 |
<!-- ====================================================================== --> |
193 |
<!-- Download dependencies target --> |
194 |
<!-- ====================================================================== --> |
195 |
|
196 |
<target name="test-offline"> |
197 |
<condition property="maven.mode.offline"> |
198 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
199 |
</condition> |
200 |
</target> |
201 |
|
202 |
<target name="get-deps" |
203 |
depends="test-offline" |
204 |
description="Download all dependencies" |
205 |
unless="maven.mode.offline"> |
206 |
<mkdir dir="${maven.repo.local}"/> |
207 |
<mkdir dir="${maven.repo.local}/junit/junit/4.8.2"/> |
208 |
<get src="http://repository.jboss.com/maven2/junit/junit/4.8.2/junit-4.8.2.jar" |
209 |
dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" |
210 |
usetimestamp="false" |
211 |
ignoreerrors="true"/> |
212 |
<get src="http://snapshots.jboss.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar" |
213 |
dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" |
214 |
usetimestamp="false" |
215 |
ignoreerrors="true"/> |
216 |
<get src="http://repository.jboss.org/maven2//junit/junit/4.8.2/junit-4.8.2.jar" |
217 |
dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" |
218 |
usetimestamp="false" |
219 |
ignoreerrors="true"/> |
220 |
<get src="https://repository.jboss.org/nexus/content/groups/public-jboss//junit/junit/4.8.2/junit-4.8.2.jar" |
221 |
dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" |
222 |
usetimestamp="false" |
223 |
ignoreerrors="true"/> |
224 |
<get src="https://oss.sonatype.org/content/repositories/snapshots/junit/junit/4.8.2/junit-4.8.2.jar" |
225 |
dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" |
226 |
usetimestamp="false" |
227 |
ignoreerrors="true"/> |
228 |
<get src="http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar" |
229 |
dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" |
230 |
usetimestamp="false" |
231 |
ignoreerrors="true"/> |
232 |
</target> |
233 |
|
234 |
</project> |