1 |
ercpe 13/11/24 14:41:38 |
2 |
|
3 |
Added: 2.0.1-build.xml |
4 |
Log: |
5 |
Added ebuild for xerial-core as a dependency for picard (#491816) |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 77C501ED) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-java/xerial-core/files/2.0.1-build.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/xerial-core/files/2.0.1-build.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/xerial-core/files/2.0.1-build.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 2.0.1-build.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
|
19 |
<project name="xerial-core-from-maven" default="package" basedir="."> |
20 |
<property file="${user.home}/.m2/maven.properties" /> |
21 |
<property file="maven-build.properties" /> |
22 |
|
23 |
<property name="maven.build.finalName" value="xerial-core-2.0.1" /> |
24 |
<property name="maven.build.dir" value="target" /> |
25 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes" /> |
26 |
<property name="maven.build.srcDir.0" value="src/main/java" /> |
27 |
<property name="maven.build.resourceDir.0" value="src/main/java" /> |
28 |
<property name="maven.build.resourceDir.1" value="src/main/resources" /> |
29 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes" /> |
30 |
<property name="maven.build.testDir.0" value="src/test/java" /> |
31 |
<property name="maven.build.testResourceDir.0" value="src/test/java" /> |
32 |
<property name="maven.build.testResourceDir.1" value="src/test/resources" /> |
33 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports" /> |
34 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site" /> |
35 |
|
36 |
<property name="maven.repo.local" value="${user.home}/.m2/repository" /> |
37 |
<property name="maven.settings.offline" value="false" /> |
38 |
<property name="maven.settings.interactiveMode" value="true" /> |
39 |
|
40 |
<path id="build.classpath" /> |
41 |
<path id="build.test.classpath" /> |
42 |
|
43 |
<target name="clean" description="Clean the output directory"> |
44 |
<delete dir="${maven.build.dir}" /> |
45 |
</target> |
46 |
|
47 |
|
48 |
<target name="compile" description="Compile the code"> |
49 |
<mkdir dir="${maven.build.outputDir}" /> |
50 |
<javac destdir="${maven.build.outputDir}" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.6" verbose="false" fork="false" source="1.6"> |
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 |
<exclude name="**/*.java" /> |
59 |
</fileset> |
60 |
</copy> |
61 |
</target> |
62 |
|
63 |
|
64 |
<target name="compile-tests" depends="compile" description="Compile the test code" unless="maven.test.skip"> |
65 |
<mkdir dir="${maven.build.testOutputDir}" /> |
66 |
<javac destdir="${maven.build.testOutputDir}" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.6" verbose="false" fork="false" source="1.6"> |
67 |
<src> |
68 |
<pathelement location="${maven.build.testDir.0}" /> |
69 |
</src> |
70 |
<classpath> |
71 |
<path refid="build.test.classpath" /> |
72 |
<pathelement location="${maven.build.outputDir}" /> |
73 |
</classpath> |
74 |
</javac> |
75 |
<copy todir="${maven.build.testOutputDir}"> |
76 |
<fileset dir="${maven.build.testResourceDir.0}"> |
77 |
<exclude name="**/*.java" /> |
78 |
</fileset> |
79 |
</copy> |
80 |
<copy todir="${maven.build.testOutputDir}"> |
81 |
<fileset dir="${maven.build.testResourceDir.1}" /> |
82 |
</copy> |
83 |
</target> |
84 |
|
85 |
<target name="test" depends="compile-tests, junit-missing" unless="junit.skipped" description="Run the test cases"> |
86 |
<mkdir dir="${maven.test.reports}" /> |
87 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
88 |
<sysproperty key="basedir" value="." /> |
89 |
<formatter type="xml" /> |
90 |
<formatter type="plain" usefile="false" /> |
91 |
<classpath> |
92 |
<path refid="build.test.classpath" /> |
93 |
<pathelement location="${maven.build.outputDir}" /> |
94 |
<pathelement location="${maven.build.testOutputDir}" /> |
95 |
</classpath> |
96 |
<batchtest todir="${maven.test.reports}" unless="test"> |
97 |
<fileset dir="${maven.build.testDir.0}"> |
98 |
<include name="**/Test*.java" /> |
99 |
<include name="**/*Test.java" /> |
100 |
<include name="**/*TestCase.java" /> |
101 |
<exclude name="**/*Abstract*Test.java" /> |
102 |
</fileset> |
103 |
</batchtest> |
104 |
<batchtest todir="${maven.test.reports}" if="test"> |
105 |
<fileset dir="${maven.build.testDir.0}"> |
106 |
<include name="**/${test}.java" /> |
107 |
<exclude name="**/*Abstract*Test.java" /> |
108 |
</fileset> |
109 |
</batchtest> |
110 |
</junit> |
111 |
</target> |
112 |
|
113 |
<target name="test-junit-present"> |
114 |
<available classname="junit.framework.Test" property="junit.present" /> |
115 |
</target> |
116 |
|
117 |
<target name="test-junit-status" depends="test-junit-present"> |
118 |
<condition property="junit.missing"> |
119 |
<and> |
120 |
<isfalse value="${junit.present}" /> |
121 |
<isfalse value="${maven.test.skip}" /> |
122 |
</and> |
123 |
</condition> |
124 |
<condition property="junit.skipped"> |
125 |
<or> |
126 |
<isfalse value="${junit.present}" /> |
127 |
<istrue value="${maven.test.skip}" /> |
128 |
</or> |
129 |
</condition> |
130 |
</target> |
131 |
|
132 |
<target name="junit-missing" depends="test-junit-status" if="junit.missing"> |
133 |
<echo>=================================== WARNING ===================================</echo> |
134 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
135 |
<echo>===============================================================================</echo> |
136 |
</target> |
137 |
|
138 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
139 |
<javadoc sourcepath="${maven.build.srcDir.0}" packagenames="*" destdir="${maven.reporting.outputDirectory}/apidocs" charset="ISO-8859-1" linksource="false" breakiterator="false"> |
140 |
<doctitle><![CDATA[xerial-core-2.0.1 API]]></doctitle> |
141 |
</javadoc> |
142 |
</target> |
143 |
|
144 |
<target name="package" depends="compile,test" description="Package the application"> |
145 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" compress="true" index="false" basedir="${maven.build.outputDir}" excludes="**/package.html" /> |
146 |
</target> |
147 |
|
148 |
<target name="jar" depends="package" description="Builds the jar for the application" /> |
149 |
|
150 |
<target name="test-offline"> |
151 |
<condition property="maven.mode.offline"> |
152 |
<equals arg1="${maven.settings.offline}" arg2="true" /> |
153 |
</condition> |
154 |
</target> |
155 |
|
156 |
</project> |