2019-02-11 10:58:24 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<project name="osgi.cmpn" default="package" basedir=".">
|
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
<!-- Build environment properties -->
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
|
|
|
|
<property file="build.properties"/>
|
|
|
|
|
|
|
|
|
2020-03-30 22:28:43 +02:00
|
|
|
<property name="compiler.source" value="1.8"/>
|
2019-02-11 10:58:24 +01:00
|
|
|
<property name="compiler.target" value="${compiler.source}"/>
|
|
|
|
|
|
|
|
<property name="project.artifactId" value="osgi.cmpn"/>
|
|
|
|
<property name="project.groupId" value="org.osgi"/>
|
2020-03-30 22:28:43 +02:00
|
|
|
<property name="project.version" value="7.0.0"/>
|
|
|
|
<property name="project.description" value="OSGi Compendium Release 7, Interfaces and Classes for use in compiling bundles."/>
|
2019-02-11 10:58:24 +01:00
|
|
|
<property name="project.organization.name" value="OSGi Alliance"/>
|
|
|
|
|
|
|
|
<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/main/java"/>
|
|
|
|
<property name="build.resourceDir" value="src/main/resources"/>
|
|
|
|
|
|
|
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
<!-- Defining classpaths -->
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
|
|
|
|
<path id="build.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}"
|
|
|
|
nowarn="false"
|
|
|
|
debug="true"
|
|
|
|
encoding="UTF-8"
|
|
|
|
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>
|
|
|
|
<copy todir="${build.outputDir}">
|
|
|
|
<fileset dir="${build.resourceDir}"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
<!-- Javadoc target -->
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
|
|
|
|
<target name="javadoc" description="Generates the Javadoc of the application">
|
|
|
|
<javadoc sourcepath="${build.srcDir}"
|
|
|
|
packagenames="*"
|
|
|
|
destdir="${reporting.outputDirectory}/apidocs"
|
|
|
|
access="protected"
|
|
|
|
source="${compiler.source}"
|
|
|
|
verbose="false"
|
|
|
|
version="true"
|
|
|
|
use="true"
|
|
|
|
author="true"
|
|
|
|
splitindex="false"
|
|
|
|
nodeprecated="false"
|
|
|
|
nodeprecatedlist="false"
|
|
|
|
notree="false"
|
|
|
|
noindex="false"
|
|
|
|
nohelp="false"
|
|
|
|
nonavbar="false"
|
|
|
|
serialwarn="false"
|
|
|
|
encoding="UTF-8"
|
|
|
|
linksource="false"
|
|
|
|
breakiterator="false">
|
|
|
|
<classpath refid="build.classpath"/>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
<!-- Package target -->
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
|
|
|
|
<target name="package" depends="compile" 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="${project.description}"/>
|
|
|
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
|
|
|
<attribute name="Bundle-Name" value="${project.artifactId}"/>
|
|
|
|
<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
|
|
|
|
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
|
|
|
|
<attribute name="Bundle-Version" value="${project.version}"/>
|
2023-09-02 18:47:10 +02:00
|
|
|
<attribute name="Export-Package" value="org.osgi.application;uses:="org.osgi.framework";version="1.0",org.osgi.namespace.contract;uses:="org.osgi.resource";version="1.0",org.osgi.namespace.extender;uses:="org.osgi.resource";version="1.0.1",org.osgi.namespace.service;uses:="org.osgi.resource";version="1.0",org.osgi.namespace.unresolvable;uses:="org.osgi.resource";version="1.0",org.osgi.service.application;uses:="org.osgi.framework";version="1.1",org.osgi.service.async.delegate;uses:="org.osgi.util.promise";version="1.0",org.osgi.service.async;uses:="org.osgi.framework,org.osgi.util.promise";version="1.0",org.osgi.service.blueprint.container;uses:="org.osgi.framework,org.osgi.service.blueprint.reflect";version="1.0.2",org.osgi.service.blueprint.reflect;version="1.0.1",org.osgi.service.cm.annotations;version="1.6.0",org.osgi.service.cm;uses:="org.osgi.framework";version="1.6.0",org.osgi.service.component.annotations;version="1.4.0",org.osgi.service.component.propertytypes;version="1.4.0",org.osgi.service.component.runtime.dto;uses:="org.osgi.dto,org.osgi.framework.dto";version="1.4.0",org.osgi.service.component.runtime;uses:="org.osgi.framework,org.osgi.service.component.runtime.dto,org.osgi.util.promise";version="1.4.0",org.osgi.service.component;uses:="org.osgi.framework";version="1.4.0",org.osgi.service.configurator.annotations;version="1.0",org.osgi.service.configurator.namespace;uses:="org.osgi.resource";version="1.0",org.osgi.service.configurator;version="1.0",org.osgi.service.coordinator;uses:="org.osgi.framework";version="1.0.2",org.osgi.service.deploymentadmin.spi;uses:="org.osgi.framework,org.osgi.service.deploymentadmin";version="1.0.1",org.osgi.service.deploymentadmin;uses:="org.osgi.framework,org.osgi.service.deploymentadmin.spi";version="1.1",org.osgi.service.device;uses:="org.osgi.framework";version="1.1",org.osgi.service.dmt.notification.spi;uses:="org.osgi.service.dmt.notification";version="2.0",org.osgi.service.dmt.notification;uses:="org.osgi.service.dmt";version="2.0",org.osgi.service.dmt.security;version="2.0",org.osgi.service.dmt.spi;uses:="org.osgi.service.dmt";version="2.0",org.osgi.service.dmt;version="2.0.2",org.osgi.service.event.annotations;version="1.4.0",org.osgi.service.event.propertytypes;version="1.4.0",org.osgi.service.event;uses:="org.osgi.framework";version="1.4.0",org.osgi.service.jdbc;uses:="javax.sql";version="1.0",org.osgi.service.jndi;uses:="javax.naming,javax.naming.directory";version="1.0",org.osgi.service.log.admin;uses:="org.osgi.service.log";version="1.0",org.osgi.service.log.stream;uses:="org.osgi.service.log,org.osgi.util.pushstream";version="1.0",org.osgi.service.log;uses:="org.osgi.framework";version="1.4",org.osgi.service.metatype.annotations;version="1.4.0",org.osgi.service.metatype;uses:="org.osgi.framework";version="1.4.0",org.osgi.service.monitor;version="1.0",org.osgi.service.prefs;version="1.1.1",org.osgi.service.provisioning;version="1.2",org.osgi.service.remoteserviceadmin.namespace;uses:="org.osgi.resource";version="1.0.0",org.osgi.service.remoteserviceadmin;uses:="org.osgi.framework";version="1.1.0",org.osgi.service.repository;uses:="org.osgi.resource,org.osgi.util.promise";version="1.1",org.osgi.service.rest.client;uses:="org.osgi.framework.dto,org.osgi.framework.startlevel.dto";version="1.0.0",
|
|
|
|
<attribute name="Import-Package" value="java.io,java.lang,java.lang.annotation,java.lang.invoke,java.lang.reflect,java.net,java.security,java.security.cert,java.sql,java.text,java.time,java.util,java.util.concurrent,java.util.concurrent.atomic,java.util.concurrent.locks,java.util.function,java.util.regex,java.util.stream,java.util.zip,javax.naming,javax.naming.directory,javax.sql,javax.transaction.xa,javax.xml.parsers,org.osgi.dto;version="[1.1,2)",org.osgi.framework.dto;version="[1.8,2)",org.osgi.framework.startlevel.dto;version="[1.0,2)",org.osgi.framework;version="[1.10,2)",org.osgi.resource;version="[1.0,2)",org.osgi.service.blueprint.reflect;version="[1.0,2)",org.osgi.service.component.runtime.dto;version="[1.4,2)",org.osgi.service.deploymentadmin.spi;version="[1.0,2)",org.osgi.service.deploymentadmin;version="[1.1,2)",org.osgi.service.dmt.notification;version="[2.0,3)",org.osgi.service.dmt;version="[2.0,3)",org.osgi.service.jdbc;version="[1.0,2)",org.osgi.service.log;version="[1.4,2)",org.osgi.service.transaction.control;version="[1.0,2)",org.osgi.util.function;version="[1.1,2)",org.osgi.util.measurement;version="[1.0,2)",org.osgi.util.promise;version="[1.1,2)",org.osgi.util.pushstream;version="[1.0,2)""/>
|
2019-02-11 10:58:24 +01:00
|
|
|
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
|
|
|
|
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
|
|
|
|
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
|
|
|
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${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>
|