2025-03-21 16:49:10 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<project name= "stax2-api" default= "package" basedir= "." >
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property name= "project.groupId" value= "org.codehaus.woodstox" />
<property name= "project.artifactId" value= "stax2-api" />
<property name= "project.version" value= "4.2.1" />
<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= "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}" />
2025-03-21 18:53:11 +00:00
<javac destdir= "${build.outputDir}"
nowarn="true"
debug="true"
optimize="true"
2025-03-21 16:49:10 +00:00
encoding="utf-8"
deprecation="true"
release="${compiler.release}"
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" >
2025-03-21 18:53:11 +00:00
<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"
2025-03-21 16:49:10 +00:00
maxmemory="1g">
</javadoc>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name= "package" depends= "compile" description= "Package the application" >
2025-03-21 18:53:11 +00:00
<jar jarfile= "${build.dir}/${build.finalName}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
2025-03-21 16:49:10 +00:00
excludes="**/package.html">
<manifest >
2025-03-21 18:53:11 +00:00
<attribute name= "Automatic-Module-Name" value= "org.codehaus.stax2" />
<attribute name= "Bundle-Description" value= "Stax2 API is an extension to basic Stax 1.0 API that adds significant new functionality, such as full-featured bi-direction validation interface and high-performance Typed Access API." />
<attribute name= "Bundle-DocURL" value= "http://github.com/FasterXML/stax2-api" />
<attribute name= "Bundle-License" value= "http://www.opensource.org/licenses/bsd-license.php" />
<attribute name= "Bundle-ManifestVersion" value= "2" />
<attribute name= "Bundle-Name" value= "Stax2 API" />
<attribute name= "Bundle-SymbolicName" value= "${project.artifactId}" />
<attribute name= "Bundle-Vendor" value= "fasterml.com" />
<attribute name= "Bundle-Version" value= "${project.version}" />
<attribute name= "Export-Package" value= "org.codehaus.stax2.evt;uses:="javax.xml.stream,javax.xml.stream.events,org.codehaus.stax2";version="${project.version}",org.codehaus.stax2.io;uses:="javax.xml.transform";version="${project.version}",org.codehaus.stax2.osgi;uses:="org.codehaus.stax2,org.codehaus.stax2.validation";version="${project.version}",org.codehaus.stax2.ri.dom;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.transform.dom,org.codehaus.stax2,org.codehaus.stax2.ri,org.codehaus.stax2.ri.typed,org.codehaus.stax2.typed,org.codehaus.stax2.validation,org.w3c.dom";version="${project.version}",org.codehaus.stax2.ri.evt;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,org.codehaus.stax2,org.codehaus.stax2.evt";version="${project.version}",org.codehaus.stax2.ri.typed;uses:="javax.xml.namespace,org.codehaus.stax2.ri,org.codehaus.stax2.typed";version="${project.version}",org.codehaus.stax2.ri;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,org.codehaus.stax2,org.codehaus.stax2.evt,org.codehaus.stax2.ri.typed,org.codehaus.stax2.typed,org.codehaus.stax2.util,org.codehaus.stax2.validation";version="${project.version}",org.codehaus.stax2.typed;uses:="javax.xml.namespace,javax.xml.stream";version="${project.version}",org.codehaus.stax2.util;uses:="javax.xml.namespace,javax.xml.stream,javax.xml.stream.util,org.codehaus.stax2,org.codehaus.stax2.typed,org.codehaus.stax2.validation";version="${project.version}",org.codehaus.stax2.validation;uses:="javax.xml.namespace,javax.xml.stream";version="${project.version}",org.codehaus.stax2;uses:="javax.xml.namespace,javax.xml.stream,org.codehaus.stax2.typed,org.codehaus.stax2.validation";version="${project.version}"" />
<attribute name= "Implementation-Title" value= "Stax2 API" />
<attribute name= "Implementation-Vendor-Id" value= "${project.groupId}" />
<attribute name= "Implementation-Vendor" value= "fasterxml.com" />
<attribute name= "Implementation-Version" value= "${project.version}" />
<attribute name= "Import-Package" value= "javax.xml.namespace,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,org.codehaus.stax2,org.codehaus.stax2.evt,org.codehaus.stax2.ri,org.codehaus.stax2.ri.evt,org.codehaus.stax2.ri.typed,org.codehaus.stax2.typed,org.codehaus.stax2.util,org.codehaus.stax2.validation,org.w3c.dom" />
<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-Title" value= "Stax2 API" />
<attribute name= "Specification-Vendor" value= "fasterxml.com" />
<attribute name= "Specification-Version" value= "${project.version}" />
2025-03-21 16:49:10 +00:00
</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>