Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 545004 | Differences between
and this patch

Collapse All | Expand All

(-)a/build.xml (-28 lines)
Lines 403-436 Link Here
403
        <attribute name="Implementation-Vendor" value="PostgreSQL Global Development Group" />
403
        <attribute name="Implementation-Vendor" value="PostgreSQL Global Development Group" />
404
      </manifest>
404
      </manifest>
405
    </jar>
405
    </jar>
406
407
    <!-- add OSGi meta information -->
408
    <property name="osgidir" value="${builddir}/osgi"/>
409
    <mkdir dir="${osgidir}"/>
410
411
    <!--   create a bnd file named after the JAR file so that bnd wrap tool find it -->
412
    <echo file="${osgidir}/${artifact.version.string}.bnd">
413
Bundle-ManifestVersion: 2
414
415
Bundle-Name: PostgreSQL JDBC Driver ${jdbc.version.upper}
416
Bundle-SymbolicName: org.postgresql.${jdbc.version}
417
Bundle-Version: ${osgi.version}
418
419
Bundle-Vendor: PostgreSQL Global Development Group
420
Bundle-Copyright: Copyright (c) 2003-2015, PostgreSQL Global Development Group
421
Bundle-License: http://www.postgresql.org/about/licence/
422
Bundle-DocURL: http://jdbc.postgresql.org/
423
424
Bundle-Classpath: .
425
Bundle-Activator: org.postgresql.osgi.PGBundleActivator
426
Require-Capability: osgi.ee;filter:="(&amp;(|(osgi.ee=J2SE)(osgi.ee=JavaSE))(version>=${java.specification.version}))"
427
Export-Package: org.postgresql*; version=${fullversion}
428
Import-Package: javax.sql, javax.transaction.xa, javax.naming, *;resolution:=optional
429
    </echo>
430
431
    <!--   run wrap task from bnd -->
432
    <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="dependency.build.classpath"/> 
433
    <bndwrap jars="${artifact.jar.build}" output="${artifact.jar}" definitions="${osgidir}"/>
434
  </target>
406
  </target>
435
407
436
  <!-- create a distribution with docs, dependencies, and driver jar -->
408
  <!-- create a distribution with docs, dependencies, and driver jar -->

Return to bug 545004