Gentoo Archives: gentoo-commits

From: "Johann Schmitz (ercpe)" <ercpe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/plexus-classworlds/files: 2.2.3-build.xml
Date: Sun, 24 Nov 2013 15:04:15
Message-Id: 20131124150411.F092D2004E@flycatcher.gentoo.org
1 ercpe 13/11/24 15:04:11
2
3 Added: 2.2.3-build.xml
4 Log:
5 Added ebuild for plexus-classworlds, the class loader framework of the Plexus project
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/plexus-classworlds/files/2.2.3-build.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/plexus-classworlds/files/2.2.3-build.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/plexus-classworlds/files/2.2.3-build.xml?rev=1.1&content-type=text/plain
14
15 Index: 2.2.3-build.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18
19 <project name="plexus-classworlds-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="plexus-classworlds-2.2.3" />
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/resources" />
28 <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes" />
29 <property name="maven.build.testDir.0" value="src/test/java" />
30 <property name="maven.build.testResourceDir.0" value="src/test/resources" />
31 <property name="maven.test.reports" value="${maven.build.dir}/test-reports" />
32 <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site" />
33
34 <property name="maven.repo.local" value="${user.home}/.m2/repository" />
35 <property name="maven.settings.offline" value="false" />
36 <property name="maven.settings.interactiveMode" value="true" />
37
38 <path id="build.classpath" />
39 <path id="build.test.classpath" />
40
41 <target name="clean" description="Clean the output directory">
42 <delete dir="${maven.build.dir}" />
43 </target>
44
45 <target name="compile" description="Compile the code">
46 <mkdir dir="${maven.build.outputDir}" />
47 <javac destdir="${maven.build.outputDir}" excludes="org/codehaus/plexus/classworlds/event/*" encoding="UTF-8" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.4" verbose="false" fork="false" source="1.4">
48 <src>
49 <pathelement location="${maven.build.srcDir.0}" />
50 </src>
51 <classpath refid="build.classpath" />
52 </javac>
53 </target>
54
55 <target name="compile-tests" depends="compile" description="Compile the test code" unless="maven.test.skip">
56 <mkdir dir="${maven.build.testOutputDir}" />
57 <javac destdir="${maven.build.testOutputDir}" excludes="org/codehaus/plexus/classworlds/event/*" encoding="UTF-8" nowarn="false" debug="true" optimize="false" deprecation="true" target="1.4" verbose="false" fork="false" source="1.4">
58 <src>
59 <pathelement location="${maven.build.testDir.0}" />
60 </src>
61 <classpath>
62 <path refid="build.test.classpath" />
63 <pathelement location="${maven.build.outputDir}" />
64 </classpath>
65 </javac>
66 </target>
67
68 <target name="test" depends="compile-tests, junit-missing" unless="junit.skipped" description="Run the test cases">
69 <mkdir dir="${maven.test.reports}" />
70 <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
71 <sysproperty key="basedir" value="." />
72 <formatter type="xml" />
73 <formatter type="plain" usefile="false" />
74 <classpath>
75 <path refid="build.test.classpath" />
76 <pathelement location="${maven.build.outputDir}" />
77 <pathelement location="${maven.build.testOutputDir}" />
78 </classpath>
79 <batchtest todir="${maven.test.reports}" unless="test">
80 <fileset dir="${maven.build.testDir.0}">
81 <include name="**/Test*.java" />
82 <include name="**/*Test.java" />
83 <include name="**/*TestCase.java" />
84 <exclude name="**/*Abstract*Test.java" />
85 <exclude name="**/*Abstract*TestCase.java" />
86 <exclude name="**/*TestUtil.java" />
87 <exclude name="**/*ConfiguratorTest.java" />
88 </fileset>
89 </batchtest>
90 <batchtest todir="${maven.test.reports}" if="test">
91 <fileset dir="${maven.build.testDir.0}">
92 <include name="**/${test}.java" />
93 <exclude name="**/*Abstract*Test.java" />
94 <exclude name="**/*Abstract*TestCase.java" />
95 <exclude name="**/*TestUtil.java" />
96 <exclude name="**/*ConfiguratorTest.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" 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" />
129 </target>
130
131 <target name="package" depends="compile,test" description="Package the application">
132 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" compress="true" index="false" basedir="${maven.build.outputDir}" excludes="**/package.html" />
133 </target>
134
135 <target name="jar" depends="package" description="Builds the jar for the application" />
136
137 <target name="test-offline">
138 <condition property="maven.mode.offline">
139 <equals arg1="${maven.settings.offline}" arg2="true" />
140 </condition>
141 </target>
142 </project>