146 lines
6.8 KiB
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 &#169; 1999-2013,
|
|
<a href="http://www.oracle.com">Oracle</a>
|
|
and/or its affiliates. All Rights Reserved.
|
|
Use is subject to
|
|
<a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.
|
|
Portions Copyright &#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:="javax.servlet.annotation,javax.servlet.descriptor";version="${project.version}",javax.servlet.annotation;uses:="javax.servlet";version="${project.version}",javax.servlet.descriptor;version="${project.version}",javax.servlet.http;uses:="javax.servlet";version="${project.version}""/>
|
|
<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>
|