glassfish-servlet-api/glassfish-servlet-api-build.xml

146 lines
6.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="javax.servlet-api" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="build.properties"/>
<property name="build.finalName" value="javax.servlet-api-3.1.0"/>
<property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir.0" value="src/main/java"/>
<property name="build.resourceDir.0" value="src/main/resources"/>
<property name="build.testOutputDir" value="${build.dir}/test-classes"/>
<property name="build.testDir.0" value="src/test/java"/>
<property name="build.testResourceDir.0" value="src/test/resources"/>
<property name="test.reports" value="${build.dir}/test-reports"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<property name="repo.local" value="${user.home}/.m2/repository"/>
<property name="settings.offline" value="false"/>
<property name="settings.interactiveMode" value="true"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath"/>
<!-- ====================================================================== -->
<!-- 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"
encoding="${project.build.sourceEncoding}"
target="1.8"
verbose="false"
fork="false"
source="1.8">
<src>
<pathelement location="${build.srcDir.0}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
<copy todir="${build.outputDir}">
<fileset dir="${build.resourceDir.0}">
<include name="**/*.properties"/>
<include name="**/*.html"/>
</fileset>
</copy>
<copy todir="${build.outputDir}">
<fileset dir="${build.resourceDir.1}">
<exclude name="META-INF/README"/>
</fileset>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir.0}"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
verbose="false"
version="true"
use="true"
encoding="${project.build.sourceEncoding}"
source="1.8"
author="true"
splitindex="false"
windowtitle="Java Servlet 3.1"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="${project.build.sourceEncoding}"
linksource="false"
breakiterator="false">
<doctitle>Java Servlet 3.1 API Specification</doctitle>
<bottom>Copyright &amp;#169; 1999-2013,
&lt;a href=&quot;http://www.oracle.com&quot;&gt;Oracle&lt;/a&gt;
and/or its affiliates. All Rights Reserved.
Use is subject to
&lt;a href=&quot;{@docRoot}/doc-files/speclicense.html&quot; target=&quot;_top&quot;&gt;license terms&lt;/a&gt;.
Portions Copyright &amp;#169; 1999-2002 The Apache Software Foundation.</bottom>
<group title="Servlet_API_Documentation javax.servlet*"/>
</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">
<fileset dir="${build.outputDir}"/>
<fileset dir="${build.resourceDir.0}"/>
<manifest>
<attribute name="Bundle-SymbolicName" value="${bundle.symbolicName}"/>
<attribute name="Bundle-Description" value="Java(TM) Servlet ${spec.version} API Design Specification"/>
<attribute name="Bundle-Version" value="${bundle.version}"/>
<attribute name="Extension-Name" value="${extension.name}"/>
<attribute name="Specification-Version" value="${spec.version}"/>
<attribute name="Specification-Vendor" value="${vendor.name}"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="Implementation-Vendor" value="${project.organization.name}"/>
<attribute name="Implementation-Vendor-Id" value="${implementation.vendor.id}"/>
<attribute name="Export-Package" value="javax.servlet;uses:=&quot;javax.servlet.annotation,javax.servlet.descriptor&quot;;version=&quot;${project.version}&quot;,javax.servlet.annotation;uses:=&quot;javax.servlet&quot;;version=&quot;${project.version}&quot;,javax.servlet.descriptor;version=&quot;${project.version}&quot;,javax.servlet.http;uses:=&quot;javax.servlet&quot;;version=&quot;${project.version}&quot;"/>
<attribute name="Import-Package" value="javax.servlet,javax.servlet.annotation,javax.servlet.descriptor"/>
</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>