forked from pool/jaxb-api
174 lines
9.0 KiB
XML
174 lines
9.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="jakarta.xml.bind-api" default="package" basedir=".">
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Build environment properties -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<property file="build.properties"/>
|
|
|
|
<property name="project.groupId" value="jakarta.xml.bind"/>
|
|
<property name="project.artifactId" value="jakarta.xml.bind-api"/>
|
|
<property name="project.version" value="4.0.0"/>
|
|
|
|
<property name="spec.version" value="4.0"/>
|
|
|
|
<property name="current.year" value="2022"/>
|
|
|
|
<property name="compiler.release" value="8"/>
|
|
<property name="compiler.source" value="1.${compiler.release}"/>
|
|
<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="build.javadocDir" value="src/main/javadoc"/>
|
|
|
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Defining classpaths -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<path id="build.classpath">
|
|
<fileset dir="lib">
|
|
<include name="**/*"/>
|
|
</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"
|
|
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"/>
|
|
<classpath refid="build.classpath"/>
|
|
</javac>
|
|
<javac destdir="${build.outputDir}"
|
|
nowarn="false"
|
|
debug="true"
|
|
optimize="false"
|
|
deprecation="true"
|
|
release="9"
|
|
target="9"
|
|
verbose="false"
|
|
fork="false"
|
|
source="9">
|
|
<src>
|
|
<pathelement location="${build.srcDir}"/>
|
|
</src>
|
|
<include name="**/module-info.java"/>
|
|
<classpath refid="build.classpath"/>
|
|
<modulepath 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="false"
|
|
author="true"
|
|
splitindex="false"
|
|
windowtitle="Jakarta XML Binding API documentation"
|
|
nodeprecated="false"
|
|
nodeprecatedlist="false"
|
|
notree="false"
|
|
noindex="false"
|
|
nohelp="false"
|
|
nonavbar="false"
|
|
serialwarn="false"
|
|
charset="ISO-8859-1"
|
|
linksource="false"
|
|
breakiterator="false">
|
|
<classpath refid="build.classpath"/>
|
|
<doctitle>Jakarta XML Binding API documentation</doctitle>
|
|
<header>Jakarta XML Binding<br>v${project.version}</header>
|
|
<bottom>Comments to : <a href="mailto:jaxb-dev@eclipse.org">jaxb-dev@eclipse.org</a>.<br>
|
|
Copyright &#169; 2019, ${current.year} Eclipse Foundation. All rights reserved.<br>
|
|
Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.</bottom>
|
|
<group title="Jakarta XML Binding API Packages"/>
|
|
<tag name="implNote"
|
|
description="Implementation Note:"/>
|
|
</javadoc>
|
|
<copy todir="${reporting.outputDirectory}/apidocs">
|
|
<fileset dir="${build.javadocDir}"/>
|
|
</copy>
|
|
</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 XML Binding API ${spec.version} Design 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 XML Binding API"/>
|
|
<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
|
|
<attribute name="Bundle-Version" value="${project.version}"/>
|
|
<attribute name="DynamicImport-Package" value="org.glassfish.hk2.osgiresourcelocator"/>
|
|
<attribute name="Export-Package" value="jakarta.xml.bind.annotation.adapters;version="${project.version}",jakarta.xml.bind.annotation;uses:="jakarta.xml.bind,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,org.w3c.dom";version="${project.version}",jakarta.xml.bind.attachment;uses:="jakarta.activation";version="${project.version}",jakarta.xml.bind.helpers;uses:="jakarta.xml.bind,jakarta.xml.bind.annotation.adapters,jakarta.xml.bind.attachment,javax.xml.stream,javax.xml.transform,javax.xml.validation,org.w3c.dom,org.xml.sax";version="${project.version}",jakarta.xml.bind.util;uses:="jakarta.xml.bind,javax.xml.transform.sax";version="${project.version}",jakarta.xml.bind;uses:="jakarta.xml.bind.annotation.adapters,jakarta.xml.bind.attachment,javax.xml.namespace,javax.xml.stream,javax.xml.transform,javax.xml.validation,org.w3c.dom,org.xml.sax";version="${project.version}""/>
|
|
<attribute name="Extension-Name" value="jakarta.xml.bind"/>
|
|
<attribute name="Implementation-Build-Id" value="false"/>
|
|
<attribute name="Implementation-Version" value="${project.version}"/>
|
|
<attribute name="Import-Package" value="jakarta.activation;version="[2.1,3)",jakarta.xml.bind,jakarta.xml.bind.annotation,jakarta.xml.bind.annotation.adapters,jakarta.xml.bind.attachment,java.io,java.lang,java.lang.annotation,java.lang.invoke,java.lang.ref,java.lang.reflect,java.math,java.net,java.security,java.text,java.util,java.util.function,java.util.logging,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.stream,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers"/>
|
|
<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}))""/>
|
|
<attribute name="Specification-Vendor" value="Eclipse Foundation"/>
|
|
<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>
|