1 |
ercpe 13/11/30 09:41:28 |
2 |
|
3 |
Added: 1.7.5-build.xml |
4 |
Log: |
5 |
Updated slf4j-api to 1.7.5 |
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/slf4j-api/files/1.7.5-build.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/slf4j-api/files/1.7.5-build.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/slf4j-api/files/1.7.5-build.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 1.7.5-build.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
|
19 |
<project name="slf4j-api-from-maven" default="package" basedir="."> |
20 |
|
21 |
<property file="${user.home}/.m2/maven.properties" /> |
22 |
<property file="maven-build.properties" /> |
23 |
|
24 |
<property name="maven.build.finalName" value="slf4j-api" /> |
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.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/resources" /> |
32 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports" /> |
33 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site" /> |
34 |
|
35 |
<property name="maven.repo.local" value="${user.home}/.m2/repository" /> |
36 |
<property name="maven.settings.offline" value="false" /> |
37 |
<property name="maven.settings.interactiveMode" value="true" /> |
38 |
|
39 |
<path id="build.classpath" /> |
40 |
<path id="build.test.classpath"/> |
41 |
|
42 |
<target name="clean" description="Clean the output directory"> |
43 |
<delete dir="${maven.build.dir}" /> |
44 |
</target> |
45 |
|
46 |
<target name="compile" description="Compile the code"> |
47 |
<mkdir dir="${maven.build.outputDir}" /> |
48 |
<javac destdir="${maven.build.outputDir}" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.5" verbose="false" fork="false" source="1.5"> |
49 |
<src> |
50 |
<pathelement location="${maven.build.srcDir.0}" /> |
51 |
</src> |
52 |
<classpath refid="build.classpath" /> |
53 |
</javac> |
54 |
<copy todir="${maven.build.outputDir}"> |
55 |
<fileset dir="${maven.build.resourceDir.0}" /> |
56 |
</copy> |
57 |
</target> |
58 |
|
59 |
<target name="compile-tests" depends="compile" description="Compile the test code" unless="maven.test.skip"> |
60 |
<mkdir dir="${maven.build.testOutputDir}" /> |
61 |
<javac destdir="${maven.build.testOutputDir}" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.5" verbose="false" fork="false" source="1.5"> |
62 |
<src> |
63 |
<pathelement location="${maven.build.testDir.0}" /> |
64 |
</src> |
65 |
<classpath> |
66 |
<path refid="build.test.classpath" /> |
67 |
<pathelement location="${maven.build.outputDir}" /> |
68 |
</classpath> |
69 |
</javac> |
70 |
</target> |
71 |
|
72 |
<target name="test" depends="compile-tests, junit-missing" unless="junit.skipped" description="Run the test cases"> |
73 |
<mkdir dir="${maven.test.reports}" /> |
74 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
75 |
<sysproperty key="basedir" value="." /> |
76 |
<formatter type="xml" /> |
77 |
<formatter type="plain" usefile="false" /> |
78 |
<classpath> |
79 |
<path refid="build.test.classpath" /> |
80 |
<pathelement location="${maven.build.outputDir}" /> |
81 |
<pathelement location="${maven.build.testOutputDir}" /> |
82 |
</classpath> |
83 |
<batchtest todir="${maven.test.reports}" unless="test"> |
84 |
<fileset dir="${maven.build.testDir.0}"> |
85 |
<include name="**/Test*.java" /> |
86 |
<include name="**/*Test.java" /> |
87 |
<include name="**/*TestCase.java" /> |
88 |
<exclude name="**/AllTest.java" /> |
89 |
<exclude name="**/PackageTest.java" /> |
90 |
<exclude name="**/NoBindingTest.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="**/AllTest.java" /> |
97 |
<exclude name="**/PackageTest.java" /> |
98 |
</fileset> |
99 |
</batchtest> |
100 |
</junit> |
101 |
</target> |
102 |
|
103 |
<target name="test-junit-present"> |
104 |
<available classname="junit.framework.Test" property="junit.present" /> |
105 |
</target> |
106 |
|
107 |
<target name="test-junit-status" depends="test-junit-present"> |
108 |
<condition property="junit.missing"> |
109 |
<and> |
110 |
<isfalse value="${junit.present}" /> |
111 |
<isfalse value="${maven.test.skip}" /> |
112 |
</and> |
113 |
</condition> |
114 |
<condition property="junit.skipped"> |
115 |
<or> |
116 |
<isfalse value="${junit.present}" /> |
117 |
<istrue value="${maven.test.skip}" /> |
118 |
</or> |
119 |
</condition> |
120 |
</target> |
121 |
|
122 |
<target name="junit-missing" depends="test-junit-status" if="junit.missing"> |
123 |
<echo>=================================== WARNING ===================================</echo> |
124 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
125 |
<echo>===============================================================================</echo> |
126 |
</target> |
127 |
|
128 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
129 |
<javadoc sourcepath="${maven.build.srcDir.0}" packagenames="*" destdir="${basedir}/apidocs/" access="protected" old="false" verbose="false" 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" linksource="false" breakiterator="false" /> |
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" manifest="${basedir}/target/classes/META-INF/MANIFEST.MF" basedir="${maven.build.outputDir}" excludes="**/package.html" /> |
134 |
</target> |
135 |
|
136 |
<target name="jar" depends="package" description="Builds the jar for the application" /> |
137 |
|
138 |
<target name="test-offline"> |
139 |
<condition property="maven.mode.offline"> |
140 |
<equals arg1="${maven.settings.offline}" arg2="true" /> |
141 |
</condition> |
142 |
</target> |
143 |
</project> |