1 |
ercpe 13/11/24 14:46:46 |
2 |
|
3 |
Added: 2.1.1-build.xml |
4 |
Log: |
5 |
Version bump of commons-jexl to 2.1.1 (wrt #480432). |
6 |
Dependency of picard (#491816) et al. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 77C501ED) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-java/commons-jexl/files/2.1.1-build.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-jexl/files/2.1.1-build.xml?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-jexl/files/2.1.1-build.xml?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 2.1.1-build.xml |
17 |
=================================================================== |
18 |
<?xml version="1.0" encoding="UTF-8"?> |
19 |
|
20 |
<project name="commons-jexl-from-maven" default="package" basedir="."> |
21 |
<property file="${user.home}/.m2/maven.properties" /> |
22 |
<property file="maven-build.properties" /> |
23 |
|
24 |
<property name="maven.build.finalName" value="commons-jexl" /> |
25 |
<property name="maven.build.dir" value="target" /> |
26 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes" /> |
27 |
<property name="maven.build.srcDir.0" value="src/main/java" /> |
28 |
<property name="maven.build.resourceDir.0" value="src/main/resources" /> |
29 |
<property name="maven.build.resourceDir.1" value="." /> |
30 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes" /> |
31 |
<property name="maven.build.testDir.0" value="src/test/java" /> |
32 |
<property name="maven.build.testResourceDir.0" value="src/test/resources" /> |
33 |
<property name="maven.build.testResourceDir.1" value="." /> |
34 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports" /> |
35 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site" /> |
36 |
|
37 |
<property name="maven.repo.local" value="${user.home}/.m2/repository" /> |
38 |
<property name="maven.settings.offline" value="false" /> |
39 |
<property name="maven.settings.interactiveMode" value="true" /> |
40 |
|
41 |
<path id="build.classpath"/> |
42 |
<path id="build.test.classpath" /> |
43 |
|
44 |
<target name="clean" description="Clean the output directory"> |
45 |
<delete dir="${maven.build.dir}" /> |
46 |
</target> |
47 |
|
48 |
<target name="compile" description="Compile the code"> |
49 |
<mkdir dir="${maven.build.outputDir}" /> |
50 |
<javac destdir="${maven.build.outputDir}" encoding="iso-8859-1" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.5" verbose="false" fork="false" source="1.5"> |
51 |
<src> |
52 |
<pathelement location="${maven.build.srcDir.0}" /> |
53 |
</src> |
54 |
<classpath refid="build.classpath" /> |
55 |
</javac> |
56 |
<copy todir="${maven.build.outputDir}"> |
57 |
<fileset dir="${maven.build.resourceDir.0}" /> |
58 |
</copy> |
59 |
<mkdir dir="${maven.build.outputDir}/META-INF" /> |
60 |
</target> |
61 |
|
62 |
<target name="compile-tests" depends="compile" description="Compile the test code" unless="maven.test.skip"> |
63 |
<mkdir dir="${maven.build.testOutputDir}" /> |
64 |
<javac destdir="${maven.build.testOutputDir}" encoding="iso-8859-1" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.5" verbose="false" fork="false" source="1.5"> |
65 |
<src> |
66 |
<pathelement location="${maven.build.testDir.0}" /> |
67 |
</src> |
68 |
<classpath> |
69 |
<path refid="build.test.classpath" /> |
70 |
<pathelement location="${maven.build.outputDir}" /> |
71 |
</classpath> |
72 |
</javac> |
73 |
<mkdir dir="${maven.build.testOutputDir}/META-INF" /> |
74 |
</target> |
75 |
|
76 |
<target name="test" depends="compile-tests, junit-missing" unless="junit.skipped" description="Run the test cases"> |
77 |
<mkdir dir="${maven.test.reports}" /> |
78 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
79 |
<sysproperty key="basedir" value="." /> |
80 |
<formatter type="xml" /> |
81 |
<formatter type="plain" usefile="false" /> |
82 |
<classpath> |
83 |
<path refid="build.test.classpath" /> |
84 |
<pathelement location="${maven.build.outputDir}" /> |
85 |
<pathelement location="${maven.build.testOutputDir}" /> |
86 |
</classpath> |
87 |
<batchtest todir="${maven.test.reports}" unless="test"> |
88 |
<fileset dir="${maven.build.testDir.0}"> |
89 |
<include name="**/*Test.java" /> |
90 |
<exclude name="**/*Abstract*Test.java" /> |
91 |
</fileset> |
92 |
</batchtest> |
93 |
<batchtest todir="${maven.test.reports}" if="test"> |
94 |
<fileset dir="${maven.build.testDir.0}"> |
95 |
<include name="**/${test}.java" /> |
96 |
<exclude name="**/*Abstract*Test.java" /> |
97 |
</fileset> |
98 |
</batchtest> |
99 |
</junit> |
100 |
</target> |
101 |
|
102 |
<target name="test-junit-present"> |
103 |
<available classname="junit.framework.Test" property="junit.present" /> |
104 |
</target> |
105 |
|
106 |
<target name="test-junit-status" 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" depends="test-junit-status" if="junit.missing"> |
122 |
<echo>=================================== WARNING ===================================</echo> |
123 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
124 |
<echo>===============================================================================</echo> |
125 |
</target> |
126 |
|
127 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
128 |
<javadoc sourcepath="${maven.build.srcDir.0}" packagenames="*" destdir="${maven.reporting.outputDirectory}/apidocs" access="protected" old="false" verbose="false" encoding="iso-8859-1" version="true" use="true" author="true" splitindex="false" nodeprecated="false" nodeprecatedlist="false" notree="false" noindex="false" nohelp="false" nonavbar="false" serialwarn="false" charset="ISO-8859-1" source="1.5" linksource="true" breakiterator="false"> |
129 |
</javadoc> |
130 |
</target> |
131 |
|
132 |
<target name="package" depends="compile,test" description="Package the application"> |
133 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" compress="true" index="false" basedir="${maven.build.outputDir}" excludes="**/package.html"> |
134 |
</jar> |
135 |
</target> |
136 |
|
137 |
<target name="jar" depends="package" description="Builds the jar for the application" /> |
138 |
|
139 |
<target name="test-offline"> |
140 |
<condition property="maven.mode.offline"> |
141 |
<equals arg1="${maven.settings.offline}" arg2="true" /> |
142 |
</condition> |
143 |
</target> |
144 |
</project> |