Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package jakarta-commons-discovery for 
openSUSE:Factory checked in at 2023-05-04 17:11:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/jakarta-commons-discovery (Old)
 and      /work/SRC/openSUSE:Factory/.jakarta-commons-discovery.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "jakarta-commons-discovery"

Thu May  4 17:11:09 2023 rev:26 rq:1084616 version:0.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/jakarta-commons-discovery/jakarta-commons-discovery.changes
      2022-03-20 20:56:46.670632582 +0100
+++ 
/work/SRC/openSUSE:Factory/.jakarta-commons-discovery.new.1533/jakarta-commons-discovery.changes
    2023-05-04 17:11:29.468686961 +0200
@@ -1,0 +2,22 @@
+Wed May  3 14:03:34 UTC 2023 - Pedro Monreal <pmonr...@suse.com>
+
+- Update to 0.5:
+  * Breaking changes: The minimum JDK requirement is now JDK 1.5.
+    The provided binaries will not work on lower JDKs. The source
+    has been updated to leverage Generics and other JDK 1.5 features
+    where possible, and requires JDK 1.5 to compile.
+  * Dependencies: Commons Discovery depends on Commons Logging.
+    It is built against version 1.1.1.
+  * New features: Discovery APIs use Java5 Generics.
+  * Known bugs/limitations: resource.classes.DiscoverClasses doesn't
+    work with Oracle embedded JVM in DBMS, see DISCOVERY-13:
+    - https://issues.apache.org/jira/browse/DISCOVERY-13
+  * Deprecations:
+    - Classes in org.apache.commons.discovery.log package
+      have been deprecated, depending on Apache Commons Logging 1.1.1
+      there is no more circular dependency between Apache Commons
+      Discovery and Apache Commons Logging.
+    - setLog(org.apache.commons.logging.Log) methods have been
+      deprecated too, they are not thread-safe.
+
+-------------------------------------------------------------------

Old:
----
  commons-discovery-0.4-src.tar.gz
  commons-discovery-0.4.pom

New:
----
  commons-discovery-0.5-src.tar.gz
  commons-discovery-0.5.pom
  commons-discovery-build.xml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ jakarta-commons-discovery.spec ++++++
--- /var/tmp/diff_new_pack.RuAQRR/_old  2023-05-04 17:11:29.912689561 +0200
+++ /var/tmp/diff_new_pack.RuAQRR/_new  2023-05-04 17:11:29.920689608 +0200
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,9 @@
 
 
 %define short_name commons-discovery
+%bcond_with tests
 Name:           jakarta-%{short_name}
-Version:        0.4
+Version:        0.5
 Release:        0
 Summary:        Jakarta Commons Discovery
 License:        Apache-2.0
@@ -26,17 +27,19 @@
 URL:            http://jakarta.apache.org/commons/discovery.html
 Source0:        
https://archive.apache.org/dist/commons/discovery/source/%{short_name}-%{version}-src.tar.gz
 Source1:        
https://repo1.maven.org/maven2/%{short_name}/%{short_name}/%{version}/%{short_name}-%{version}.pom
+Source100:      commons-discovery-build.xml
 BuildRequires:  ant
-BuildRequires:  commons-logging >= 1.0.4
+BuildRequires:  commons-logging >= 1.1.1
+BuildRequires:  fdupes
 BuildRequires:  java-devel
 BuildRequires:  javapackages-local
-BuildRequires:  junit >= 3.7
-Requires:       commons-logging >= 1.0.4
+Requires:       commons-logging >= 1.1.1
 Provides:       %{short_name} = %{version}
 Obsoletes:      %{short_name} < %{version}
-#XXX: temporary fix to make axis auto dependencies work, need to revork package
-Provides:       osgi(org.apache.commons.discovery)
 BuildArch:      noarch
+%if %{with tests}
+BuildRequires:  ant-junit
+%endif
 
 %description
 The Discovery component is about discovering, or finding,
@@ -55,19 +58,21 @@
 
 %prep
 %setup -q -n %{short_name}-%{version}-src
-chmod u+w .
+cp %{SOURCE100} build.xml
+mkdir -p lib
 
 %build
+build-jar-repository -s lib commons-logging
 ant \
-  -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
-  -Djunit.jar=%(find-jar junit) \
-  -Dlogger.jar=%(find-jar commons-logging) \
-  test.discovery dist
+%if %{without tests}
+    -Dtest.skip=true \
+%endif
+    package javadoc
 
 %install
 # jar
 install -d -m 0755 %{buildroot}%{_javadir}
-install -m 644 dist/%{short_name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
+install -m 644 target/%{short_name}-*.jar 
%{buildroot}%{_javadir}/%{short_name}.jar
 (cd %{buildroot}%{_javadir} && ln -s %{short_name}.jar %{name}.jar)
 
 install -d -m 0755 %{buildroot}%{_mavenpomdir}
@@ -76,7 +81,8 @@
 
 # javadoc
 install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
-cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+%fdupes -s %{buildroot}%{_javadocdir}/%{name}
 
 %files -f .mfiles
 %license LICENSE.txt

++++++ commons-discovery-0.4-src.tar.gz -> commons-discovery-0.5-src.tar.gz 
++++++
++++ 10712 lines of diff (skipped)

++++++ commons-discovery-0.4.pom -> commons-discovery-0.5.pom ++++++
--- 
/work/SRC/openSUSE:Factory/jakarta-commons-discovery/commons-discovery-0.4.pom  
    2022-03-04 00:18:06.552291148 +0100
+++ 
/work/SRC/openSUSE:Factory/.jakarta-commons-discovery.new.1533/commons-discovery-0.5.pom
    2023-05-04 17:11:29.452686868 +0200
@@ -1,168 +1,238 @@
-<?xml version="1.0" encoding="UTF-8"?><project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <parent>
+    <groupId>org.apache.commons</groupId>
+    <artifactId>commons-parent</artifactId>
+    <version>20</version>
+  </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>commons-discovery</groupId>
   <artifactId>commons-discovery</artifactId>
-  <name>Discovery</name>
-  <version>0.4</version>
-  <description>Commons Discovery</description>
-  <url>http://jakarta.apache.org/commons/${pom.artifactId.substring(8)}/</url>
+  <version>0.5</version>
+  <name>Commons Discovery</name>
+
+  <inceptionYear>2002</inceptionYear>
+  <description>The Apache Commons Discovery component is about discovering, or 
finding,
+  implementations for pluggable interfaces.</description>
+
+  <url>http://commons.apache.org/discovery/</url>
+
   <issueManagement>
-    <url>http://issues.apache.org/jira/</url>
+    <system>jira</system>
+    <url>http://issues.apache.org/jira/browse/DISCOVERY</url>
   </issueManagement>
-  <ciManagement>
-    <notifiers>
-      <notifier>
-        <configuration>
-          <address>commons-...@jakarta.apache.org</address>
-        </configuration>
-      </notifier>
-    </notifiers>
-  </ciManagement>
-  <inceptionYear>2002</inceptionYear>
-  <mailingLists>
-    <mailingList>
-      <name>Commons Dev List</name>
-      <subscribe>commons-dev-subscr...@jakarta.apache.org</subscribe>
-      <unsubscribe>commons-dev-unsubscr...@jakarta.apache.org</unsubscribe>
-      
<archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/</archive>
-    </mailingList>
-    <mailingList>
-      <name>Commons User List</name>
-      <subscribe>commons-user-subscr...@jakarta.apache.org</subscribe>
-      <unsubscribe>commons-user-unsubscr...@jakarta.apache.org</unsubscribe>
-      
<archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/</archive>
-    </mailingList>
-  </mailingLists>
+
+  <scm>
+    
<connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/discovery/tags/DISCOVERY_0_5_RC2</connection>
+    
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/discovery/tags/DISCOVERY_0_5_RC2</developerConnection>
+    
<url>http://svn.apache.org/viewvc/commons/proper/discovery/tags/DISCOVERY_0_5_RC2</url>
+  </scm>
+
   <developers>
     <developer>
-      <id>rsitze</id>
       <name>Richard Sitze</name>
-      <email></email>
-      <organization></organization>
+      <id>rsitze</id>
+      <email />
+      <organization />
     </developer>
     <developer>
-      <id>craigmcc</id>
       <name>Craig R. McClanahan</name>
-      <email></email>
-      <organization></organization>
+      <id>craigmcc</id>
+      <email />
+      <organization />
     </developer>
     <developer>
-      <id>costin</id>
       <name>Costin Manolache</name>
-      <email></email>
-      <organization></organization>
+      <id>costin</id>
+      <email />
+      <organization />
     </developer>
     <developer>
-      <id>jstrachan</id>
       <name>James Strachan</name>
+      <id>jstrachan</id>
       <email>jstrac...@apache.org</email>
       <organization>SpiritSoft, Inc.</organization>
     </developer>
     <developer>
-      <id>matth</id>
       <name>Matthew Hawthorne</name>
+      <id>matth</id>
       <email>ma...@apache.org</email>
     </developer>
     <developer>
-      <id>dims</id>
       <name>Davanum Srinivas</name>
+      <id>dims</id>
       <email>d...@apache.org</email>
     </developer>
     <developer>
-      <id>rwinston</id>
       <name>Rory Winston</name>
+      <id>rwinston</id>
       <email>rwins...@eircom.net</email>
     </developer>
     <developer>
-      <id>rdonkin</id>
       <name>Robert Burrell Donkin</name>
+      <id>rdonkin</id>
       <email>rdon...@apache.org</email>
     </developer>
+    <developer>
+      <name>Simone Tripodi</name>
+      <id>simonetripodi</id>
+      <email>simonetrip...@apache.org</email>
+    </developer>
   </developers>
-  <licenses>
-    <license>
-      <name>The Apache Software License, Version 2.0</name>
-      <url>/LICENSE.txt</url>
-    </license>
-  </licenses>
-  <scm>
-    
<connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk</connection>
-    
<url>http://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk</url>
-  </scm>
-  <organization>
-    <name>The Apache Software Foundation</name>
-    <url>http://jakarta.apache.org</url>
-  </organization>
-  <build>
-    <sourceDirectory>src/java</sourceDirectory>
-    <testSourceDirectory>src/test</testSourceDirectory>
-    <resources>
-      <resource>
-        <targetPath>META-INF</targetPath>
-        <directory>${basedir}</directory>
-        <includes>
-          <include>NOTICE.txt</include>
-        </includes>
-      </resource>
-    </resources>
-    <testResources>
-      <testResource>
-        <directory>${basedir}/src</directory>
-        <includes>
-          <include>**/testResource</include>
-        </includes>
-      </testResource>
-      <testResource>
-        <directory>${basedir}/src/test</directory>
-        <includes>
-          <include>**/*.properties</include>
-          <include>META-INF/**</include>
-        </includes>
-      </testResource>
-    </testResources>
-    <plugins>
-      <plugin>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <includes>
-            <include>**/TestAll.java</include>
-          </includes>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-xdoc-plugin</artifactId>
-        <version>1.9.2</version>
-        <configuration>
-          <comment>&lt;strong>Site Only&lt;/strong> - v1.9.2 (minimum)
-              required for building the Site documentation.</comment>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
+
   <dependencies>
     <dependency>
       <groupId>commons-logging</groupId>
       <artifactId>commons-logging</artifactId>
-      <version>1.0.4</version>
+      <version>1.1.1</version>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>3.7</version>
+      <version>4.8.2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <properties>
+    <commons.componentid>discovery</commons.componentid>
+    <commons.release.version>0.5</commons.release.version>
+    <commons.release.desc>(minium JDK 1.5)</commons.release.desc>
+    <commons.rc.version>RC2</commons.rc.version>
+    <commons.binary.suffix />
+    <commons.jira.id>DISCOVERY</commons.jira.id>
+    <commons.jira.pid>12310472</commons.jira.pid>
+    <maven.compile.source>1.5</maven.compile.source>
+    <maven.compile.target>1.5</maven.compile.target>
+  </properties>
+
   <distributionManagement>
-    <repository>
-      <id>default</id>
-      <name>Default Repository</name>
-      
<url>file:///www/jakarta.apache.org/builds/jakarta-commons/${pom.artifactId.substring(8)}/</url>
-    </repository>
+    <!-- Cannot define in parent ATM, see COMMONSSITE-26 -->
     <site>
-      <id>default</id>
-      <name>Default Site</name>
-      
<url>scp://people.apache.org//www/jakarta.apache.org/commons/${pom.artifactId.substring(8)}/</url>
+      <id>apache.website</id>
+      <name>Apache Commons Site</name>
+      
<url>${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/discovery</url>
     </site>
-    <status>converted</status>
   </distributionManagement>
-</project>
\ No newline at end of file
+
+  <build>
+    <sourceDirectory>src/java</sourceDirectory>
+    <testSourceDirectory>src/test</testSourceDirectory>
+      <testResources>
+        <testResource>
+          <directory>${basedir}/src/test</directory>
+          <includes>
+            <include>**/*.properties</include>
+            <include>**/testResource</include>
+            <include>META-INF/**</include>
+          </includes>
+        </testResource>
+      </testResources>
+
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <configuration>
+            <includes>
+              <include>**/TestAll.java</include>
+            </includes>
+            <additionalClasspathElements>
+              
<additionalClasspathElement>${basedir}/src/testAlt1</additionalClasspathElement>
+              
<additionalClasspathElement>${basedir}/src/testAlt2</additionalClasspathElement>
+            </additionalClasspathElements>
+          </configuration>
+        </plugin>
+        <plugin>
+          <artifactId>maven-assembly-plugin</artifactId>
+          <executions>
+            <execution>
+              <phase>package</phase>
+              <goals>
+                <goal>single</goal>
+              </goals>
+            </execution>
+          </executions>
+          <configuration>
+            <descriptors>
+              <descriptor>src/assembly/bin.xml</descriptor>
+              <descriptor>src/assembly/src.xml</descriptor>
+            </descriptors>
+            <tarLongFileMode>gnu</tarLongFileMode>
+          </configuration>
+        </plugin>
+      </plugins>
+    </build>
+
+    <reporting>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-changes-plugin</artifactId>
+          <version>2.3</version>
+          <configuration>
+            <xmlPath>${basedir}/src/changes/changes.xml</xmlPath>
+            <issueLinkTemplate>%URL%/%ISSUE%</issueLinkTemplate>
+          </configuration>
+          <reportSets>
+            <reportSet>
+              <reports>
+                 <report>changes-report</report>
+              </reports>
+            </reportSet>
+          </reportSets>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>2.1</version>
+          <configuration>
+            <configLocation>${basedir}/checkstyle.xml</configLocation>
+            <enableRulesSummary>false</enableRulesSummary>
+          </configuration>
+        </plugin>
+        <!-- Requires setting 'export MAVEN_OPTS="-Xmx512m" ' -->
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>findbugs-maven-plugin</artifactId>
+          <version>2.3.1</version>
+          <configuration>
+            <threshold>Normal</threshold>
+            <effort>Default</effort>
+            
<excludeFilterFile>${basedir}/findbugs-exclude-filter.xml</excludeFilterFile>
+           </configuration>
+        </plugin>
+      </plugins>
+    </reporting>
+
+  <profiles>
+    <profile>
+      <id>rc</id>
+      <distributionManagement>
+        <!-- Cannot define in parent ATM, see COMMONSSITE-26 -->
+        <site>
+          <id>apache.website</id>
+          <name>Apache Commons Release Candidate Staging Site</name>
+          
<url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/builds/commons/${commons.componentid}/${commons.release.version}/${commons.rc.version}/site</url>
+        </site>
+      </distributionManagement>
+    </profile>
+  </profiles>
+
+</project>

++++++ commons-discovery-build.xml ++++++
<?xml version="1.0" encoding="UTF-8"?>

<project name="commons-discovery" default="package" basedir=".">

  <!-- ====================================================================== 
-->
  <!-- Build environment properties                                           
-->
  <!-- ====================================================================== 
-->

  <property file="build.properties"/>
  <property name="project.version" value="0.5"/>
  <property name="project.groupId" value="commons-discovery"/>
  <property name="project.artifactId" value="commons-discovery"/>

  <property name="bundle.version" value="${project.version}.0"/>

  <property name="compiler.source" value="1.8"/>
  <property name="compiler.target" value="${compiler.source}"/>

  <property name="build.finalName" 
value="${project.artifactId}-${project.version}"/>
  <property name="build.dir" value="target"/>
  <property name="build.outputDir" value="${build.dir}/classes"/>
  <property name="build.srcDir" value="src/java"/>
  <property name="build.resourceDir" value="."/>
  <property name="build.testOutputDir" value="${build.dir}/test-classes"/>
  <property name="build.testDir" value="src/test"/>
  <property name="build.testResourceDir" value="src/test"/>
  <property name="test.reports" value="${build.dir}/test-reports"/>
  <property name="reporting.outputDirectory" value="${build.dir}/site"/>

  <!-- ====================================================================== 
-->
  <!-- Defining classpaths                                                    
-->
  <!-- ====================================================================== 
-->

  <path id="build.classpath">
    <fileset dir="lib">
      <include name="**/*.jar"/>
    </fileset>
  </path>
  <path id="build.test.classpath">
    <fileset dir="lib">
      <include name="**/*.jar"/>
    </fileset>
  </path>

  <!-- ====================================================================== 
-->
  <!-- Cleaning up target                                                     
-->
  <!-- ====================================================================== 
-->

  <target name="clean" description="Clean the output directory">
    <delete dir="${build.dir}"/>
  </target>

  <!-- ====================================================================== 
-->
  <!-- Compilation target                                                     
-->
  <!-- ====================================================================== 
-->

  <target name="compile" description="Compile the code">
    <mkdir dir="${build.outputDir}"/>
    <javac destdir="${build.outputDir}" 
           encoding="iso-8859-1" 
           nowarn="false" 
           debug="true" 
           optimize="false" 
           deprecation="true" 
           target="${compiler.target}" 
           verbose="false" 
           fork="false" 
           source="${compiler.source}">
      <src>
        <pathelement location="${build.srcDir}"/>
      </src>
      <classpath refid="build.classpath"/>
    </javac>
    <mkdir dir="${build.outputDir}/META-INF"/>
    <copy todir="${build.outputDir}/META-INF">
      <fileset dir="${build.resourceDir}">
        <include name="NOTICE.txt"/>
        <include name="LICENSE.txt"/>
      </fileset>
    </copy>
  </target>

  <!-- ====================================================================== 
-->
  <!-- Test-compilation target                                                
-->
  <!-- ====================================================================== 
-->

  <target name="compile-tests" 
          depends="compile" 
          description="Compile the test code" 
          unless="test.skip">
    <mkdir dir="${build.testOutputDir}"/>
    <javac destdir="${build.testOutputDir}" 
           encoding="iso-8859-1" 
           nowarn="false" 
           debug="true" 
           optimize="false" 
           deprecation="true" 
           target="${compiler.target}" 
           verbose="false" 
           fork="false" 
           source="${compiler.source}">
      <src>
        <pathelement location="${build.testDir}"/>
      </src>
      <classpath>
        <path refid="build.test.classpath"/>
        <pathelement location="${build.outputDir}"/>
      </classpath>
    </javac>
    <copy todir="${build.testOutputDir}">
      <fileset dir="${build.testResourceDir}">
        <include name="**/*.properties"/>
        <include name="**/testResource"/>
        <include name="META-INF/**"/>
      </fileset>
    </copy>
  </target>

  <!-- ====================================================================== 
-->
  <!-- Run all tests                                                          
-->
  <!-- ====================================================================== 
-->

  <target name="test" 
          depends="compile-tests, junit-missing" 
          unless="junit.skipped" 
          description="Run the test cases">
    <mkdir dir="${test.reports}"/>
    <junit printSummary="yes" haltonerror="true" haltonfailure="true" 
fork="true" dir=".">
      <sysproperty key="basedir" value="."/>
      <formatter type="xml"/>
      <formatter type="plain" usefile="false"/>
      <classpath>
        <path refid="build.test.classpath"/>
        <pathelement location="${build.outputDir}"/>
        <pathelement location="${build.testOutputDir}"/>
        <pathelement location="${build.resourceDir}/src/testAlt1"/>
        <pathelement location="${build.resourceDir}/src/testAlt2"/>
      </classpath>
      <batchtest todir="${test.reports}" unless="test">
        <fileset dir="${build.testDir}">
          <include name="**/TestAll.java"/>
          <exclude name="**/*Abstract*Test.java"/>
        </fileset>
      </batchtest>
      <batchtest todir="${test.reports}" if="test">
        <fileset dir="${build.testDir}">
          <include name="**/${test}.java"/>
          <exclude name="**/*Abstract*Test.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>

  <target name="test-junit-present">
    <available classname="junit.framework.Test" property="junit.present" 
classpathref="build.test.classpath"/>
  </target>

  <target name="test-junit-status" 
          depends="test-junit-present">
    <condition property="junit.missing">
      <and>
        <isfalse value="${junit.present}"/>
        <isfalse value="${test.skip}"/>
      </and>
    </condition>
    <condition property="junit.skipped">
      <or>
        <isfalse value="${junit.present}"/>
        <istrue value="${test.skip}"/>
      </or>
    </condition>
  </target>

  <target name="junit-missing" 
          depends="test-junit-status" 
          if="junit.missing">
    <echo>=================================== WARNING 
===================================</echo>
    <echo> JUnit is not present in the test classpath or your $ANT_HOME/lib 
directory. Tests not executed.</echo>
    
<echo>===============================================================================</echo>
  </target>

  <!-- ====================================================================== 
-->
  <!-- Javadoc target                                                         
-->
  <!-- ====================================================================== 
-->

  <target name="javadoc" description="Generates the Javadoc of the application">
    <javadoc sourcepath="${build.srcDir}" 
             packagenames="*" 
             destdir="${reporting.outputDirectory}/apidocs" 
             access="protected" 
             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="${compiler.source}" 
             linksource="true" 
             breakiterator="false" 
             additionalparam="-Xdoclint:none">
      <classpath refid="build.classpath"/>
    </javadoc>
  </target>

  <!-- ====================================================================== 
-->
  <!-- Package target                                                         
-->
  <!-- ====================================================================== 
-->

  <target name="package" depends="compile,test" description="Package the 
application">
    <jar jarfile="${build.dir}/${build.finalName}.jar" 
         compress="true" 
         index="false" 
         basedir="${build.outputDir}" 
         excludes="**/package.html">
      <manifest>
        <attribute name="Bundle-Description" value="The Apache Commons 
Discovery component is about discovering, or finding, implementations for 
pluggable interfaces."/>
        <attribute name="Bundle-DocURL" 
value="http://commons.apache.org/discovery/"/>
        <attribute name="Bundle-License" 
value="https://www.apache.org/licenses/LICENSE-2.0.txt"/>
        <attribute name="Bundle-ManifestVersion" value="2"/>
        <attribute name="Bundle-Name" value="Commons Discovery"/>
        <attribute name="Bundle-SymbolicName" 
value="org.apache.commons.discovery"/>
        <attribute name="Bundle-Vendor" value="The Apache Software Foundation"/>
        <attribute name="Bundle-Version" value="${bundle.version}"/>
        <attribute name="Export-Package" 
value="org.apache.commons.discovery.ant;version=&quot;${project.version}&quot;,org.apache.commons.discovery.jdk;version=&quot;${project.version}&quot;,org.apache.commons.discovery.log;version=&quot;${project.version}&quot;,org.apache.commons.discovery.resource.classes;version=&quot;${project.version}&quot;,org.apache.commons.discovery.resource.names;version=&quot;${project.version}&quot;,org.apache.commons.discovery.resource;version=&quot;${project.version}&quot;,org.apache.commons.discovery.tools;version=&quot;${project.version}&quot;,org.apache.commons.discovery;version=&quot;${project.version}&quot;"/>
        <attribute name="Implementation-Title" value="Commons Discovery"/>
        <attribute name="Implementation-Vendor-Id" value="org.apache"/>
        <attribute name="Implementation-Vendor" value="The Apache Software 
Foundation"/>
        <attribute name="Implementation-Version" value="${project.version}"/>
        <attribute name="Import-Package" value="org.apache.commons.logging"/>
        <attribute name="Include-Resource" 
value="META-INF/NOTICE.txt=NOTICE.txt,META-INF/LICENSE.txt=LICENSE.txt"/>
        <attribute name="Require-Capability" 
value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
        <attribute name="Specification-Title" value="Commons Discovery"/>
        <attribute name="Specification-Vendor" value="The Apache Software 
Foundation"/>
        <attribute name="Specification-Version" value="${project.version}"/>
        <attribute name="X-Compile-Source-JDK" value="${compiler.source}"/>
        <attribute name="X-Compile-Target-JDK" value="${compiler.target}"/>
      </manifest>
    </jar>
  </target>

  <!-- ====================================================================== 
-->
  <!-- A dummy target for the package named after the type it creates         
-->
  <!-- ====================================================================== 
-->

  <target name="jar" depends="package" description="Builds the jar for the 
application"/>

</project>

Reply via email to