glassfish-activation/activation-build.xml

162 lines
8.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="javax.activation" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property name="project.groupId" value="com.sun.activation"/>
<property name="project.artifactId" value="javax.activation"/>
<property name="project.groupId.api" value="javax.activation"/>
<property name="project.artifactId.api" value="javax.activation-api"/>
<property name="project.version" value="1.2.0"/>
<property name="spec.version" value="1.2"/>
<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.finalName.api" value="${project.artifactId.api}-${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"/>
<!-- ====================================================================== -->
<!-- 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="UTF-8"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
</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"
charset="ISO-8859-1"
linksource="false"
breakiterator="false"/>
</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="Automatic-Module-Name" value="java.activation"/>
<attribute name="Bundle-Description" value="JavaBeans Activation Framework"/>
<attribute name="Bundle-DocURL" value="http://www.oracle.com"/>
<attribute name="Bundle-License" value="https://github.com/javaee/activation/blob/master/LICENSE.txt"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="JavaBeans Activation Framework"/>
<attribute name="Bundle-SymbolicName" value="${project.groupId}.${project.artifactId}"/>
<attribute name="Bundle-Vendor" value="Oracle"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="DynamicImport-Package" value="*"/>
<attribute name="Export-Package" value="com.sun.activation.registries;version=&quot;${project.version}&quot;,com.sun.activation.viewers;uses:=&quot;javax.activation&quot;;version=&quot;${project.version}&quot;,javax.activation;uses:=&quot;com.sun.activation.registries&quot;;version=&quot;${spec.version}&quot;"/>
<attribute name="Extension-Name" value="javax.activation"/>
<attribute name="Implementation-Title" value="javax.activation"/>
<attribute name="Implementation-Vendor-Id" value="com.sun"/>
<attribute name="Implementation-Vendor" value="Oracle"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="Import-Package" value="com.sun.activation.registries;version=&quot;${spec.version}&quot;,com.sun.activation.viewers;version=&quot;${spec.version}&quot;,javax.activation;version=&quot;${spec.version}&quot;"/>
<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:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Title" value="JavaBeans(TM) Activation Framework Specification"/>
<attribute name="Specification-Vendor" value="Oracle"/>
<attribute name="Specification-Version" value="${spec.version}"/>
</manifest>
</jar>
<jar jarfile="${build.dir}/${build.finalName.api}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
excludes="**/package.html **/com/** **/META-INF/**.default">
<manifest>
<attribute name="Automatic-Module-Name" value="java.activation"/>
<attribute name="Bundle-Description" value="JavaBeans Activation Framework API jar"/>
<attribute name="Bundle-DocURL" value="http://www.oracle.com"/>
<attribute name="Bundle-License" value="https://github.com/javaee/activation/blob/master/LICENSE.txt"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="JavaBeans Activation Framework API jar"/>
<attribute name="Bundle-SymbolicName" value="javax.activation-api"/>
<attribute name="Bundle-Vendor" value="Oracle"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="DynamicImport-Package" value="*"/>
<attribute name="Export-Package" value="javax.activation;uses:=&quot;com.sun.activation.registries&quot;;version=&quot;${spec.version}&quot;"/>
<attribute name="Extension-Name" value="javax.activation"/>
<attribute name="Implementation-Title" value="${project.groupId.api}.${project.artifactId.api}"/>
<attribute name="Implementation-Vendor-Id" value="com.sun"/>
<attribute name="Implementation-Vendor" value="Oracle"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="Import-Package" value="com.sun.activation.registries,javax.activation;version=&quot;${spec.version}&quot;"/>
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId.api}"/>
<attribute name="JavaPackages-GroupId" value="${project.groupId.api}"/>
<attribute name="JavaPackages-Version" value="${project.version}"/>
<attribute name="Specification-Title" value="${project.groupId.api}.${project.artifactId.api}"/>
<attribute name="Specification-Vendor" value="Oracle"/>
<attribute name="Specification-Version" value="${spec.version}"/>
</manifest>
</jar>
</target>
</project>