jakarta-activation/jakarta-activation-build.xml

145 lines
6.3 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<project name="jakarta.activation-api" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property name="project.groupId" value="jakarta.activation"/>
<property name="project.artifactId" value="jakarta.activation-api"/>
<property name="project.version" value="2.1.0"/>
<property name="spec.version" value="2.1"/>
<property name="activation.version" value="${project.version}"/>
<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/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}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<exclude name="**/module-info.java"/>
</javac>
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="9"
verbose="false"
fork="false"
source="9">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<include name="**/module-info.java"/>
</javac>
<copy todir="${build.srcDir}">
<fileset dir="${build.outputDir}"/>
</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"
verbose="false"
encoding="UTF-8"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="UTF-8"
linksource="false"
breakiterator="false"
source="${compiler.source}">
<header>&lt;![CDATA[&lt;a href=&quot;https://reload4j.qos.ch&quot;&gt;
&lt;img src=&quot;https://reload4j.qos.ch/images/logos/reload4j.jpg&quot; height=&quot;40&quot;/&gt;&lt;/a&gt;]]&gt;</header>
</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="Jakarta Activation API 2.1 Specification"/>
<attribute name="Bundle-License" value="http://www.eclipse.org/org/documents/edl-v10.php"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="Jakarta Activation API"/>
<attribute name="Bundle-SymbolicName" value="jakarta.activation-api"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="DynamicImport-Package" value="org.glassfish.hk2.osgiresourcelocator"/>
<attribute name="Export-Package" value="jakarta.activation.spi;uses:=&quot;jakarta.activation&quot;;version=&quot;${project.version}&quot;,jakarta.activation;version=&quot;${project.version}&quot;"/>
<attribute name="Extension-Name" value="jakarta.activation"/>
<attribute name="Implementation-Title" value="Jakarta Activation API"/>
<attribute name="Import-Package" value="jakarta.activation,jakarta.activation.spi"/>
<attribute name="JavaPackages-ArtifactId" value="jakarta.activation-api"/>
<attribute name="JavaPackages-GroupId" value="jakarta.activation"/>
<attribute name="JavaPackages-Version" value="${project.version}"/>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Title" value="Jakarta Activation Specification"/>
<attribute name="Specification-Version" value="${spec.version}"/>
</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>