1 |
tomwij 13/05/29 11:34:30 |
2 |
|
3 |
Added: javax-inject-1-build.xml |
4 |
Log: |
5 |
Revision bump to use generated build.xml instead of bailing out due to QA violation. |
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/javax-inject/files/javax-inject-1-build.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/javax-inject/files/javax-inject-1-build.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/javax-inject/files/javax-inject-1-build.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: javax-inject-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/29/13 1:21 PM --> |
30 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
31 |
<!-- --> |
32 |
<!-- ====================================================================== --> |
33 |
|
34 |
<project name="javax.inject-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="javax.inject-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 |
|
65 |
<!-- ====================================================================== --> |
66 |
<!-- Cleaning up target --> |
67 |
<!-- ====================================================================== --> |
68 |
|
69 |
<target name="clean" description="Clean the output directory"> |
70 |
<delete dir="${maven.build.dir}"/> |
71 |
</target> |
72 |
|
73 |
<!-- ====================================================================== --> |
74 |
<!-- Compilation target --> |
75 |
<!-- ====================================================================== --> |
76 |
|
77 |
<target name="compile" depends="get-deps" description="Compile the code"> |
78 |
<mkdir dir="${maven.build.outputDir}"/> |
79 |
</target> |
80 |
|
81 |
<!-- ====================================================================== --> |
82 |
<!-- Test-compilation target --> |
83 |
<!-- ====================================================================== --> |
84 |
|
85 |
<target name="compile-tests" |
86 |
depends="compile" |
87 |
description="Compile the test code" |
88 |
unless="maven.test.skip"> |
89 |
<mkdir dir="${maven.build.testOutputDir}"/> |
90 |
</target> |
91 |
|
92 |
<!-- ====================================================================== --> |
93 |
<!-- Run all tests --> |
94 |
<!-- ====================================================================== --> |
95 |
|
96 |
<target name="test" |
97 |
depends="compile-tests, junit-missing" |
98 |
unless="junit.skipped" |
99 |
description="Run the test cases"/> |
100 |
|
101 |
<target name="test-junit-present"> |
102 |
<available classname="junit.framework.Test" property="junit.present"/> |
103 |
</target> |
104 |
|
105 |
<target name="test-junit-status" |
106 |
depends="test-junit-present"> |
107 |
<condition property="junit.missing"> |
108 |
<and> |
109 |
<isfalse value="${junit.present}"/> |
110 |
<isfalse value="${maven.test.skip}"/> |
111 |
</and> |
112 |
</condition> |
113 |
<condition property="junit.skipped"> |
114 |
<or> |
115 |
<isfalse value="${junit.present}"/> |
116 |
<istrue value="${maven.test.skip}"/> |
117 |
</or> |
118 |
</condition> |
119 |
</target> |
120 |
|
121 |
<target name="junit-missing" |
122 |
depends="test-junit-status" |
123 |
if="junit.missing"> |
124 |
<echo>=================================== WARNING ===================================</echo> |
125 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
126 |
<echo>===============================================================================</echo> |
127 |
</target> |
128 |
|
129 |
<!-- ====================================================================== --> |
130 |
<!-- Javadoc target --> |
131 |
<!-- ====================================================================== --> |
132 |
|
133 |
<target name="javadoc" description="Generates the Javadoc of the application"/> |
134 |
|
135 |
<!-- ====================================================================== --> |
136 |
<!-- Package target --> |
137 |
<!-- ====================================================================== --> |
138 |
|
139 |
<target name="package" depends="compile,test" description="Package the application"> |
140 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
141 |
compress="true" |
142 |
index="false" |
143 |
basedir="${maven.build.outputDir}" |
144 |
excludes="**/package.html"/> |
145 |
</target> |
146 |
|
147 |
<!-- ====================================================================== --> |
148 |
<!-- A dummy target for the package named after the type it creates --> |
149 |
<!-- ====================================================================== --> |
150 |
|
151 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
152 |
|
153 |
<!-- ====================================================================== --> |
154 |
<!-- Download dependencies target --> |
155 |
<!-- ====================================================================== --> |
156 |
|
157 |
<target name="test-offline"> |
158 |
<condition property="maven.mode.offline"> |
159 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
160 |
</condition> |
161 |
</target> |
162 |
|
163 |
<target name="get-deps" |
164 |
depends="test-offline" |
165 |
description="Download all dependencies" |
166 |
unless="maven.mode.offline"> |
167 |
<mkdir dir="${maven.repo.local}"/> |
168 |
</target> |
169 |
|
170 |
</project> |