File jakarta-servlet-api-build.xml of Package jakarta-servlet.32130

<?xml version="1.0" encoding="UTF-8"?>

<project name="jakarta.servlet-api" default="package" basedir=".">

  <!-- ====================================================================== -->
  <!-- Build environment properties                                           -->
  <!-- ====================================================================== -->

  <property file="build.properties"/>
  
  <property name="project.groupId" value="jakarta.servlet"/>
  <property name="project.artifactId" value="jakarta.servlet-api"/>
  <property name="project.version" value="5.0.0"/>
  
  <property name="spec.version" value="5.0"/>
  <property name="bundle.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/java"/>
  <property name="build.resourceDir.1" value="src/main/resources"/>
  <property name="build.testOutputDir" value="${build.dir}/test-classes"/>
  <property name="build.testDir" value="src/test/java"/>
  <property name="build.testResourceDir" value="src/test/resources"/>
  <property name="test.reports" value="${build.dir}/test-reports"/>
  <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>
    </javac>
    <copy todir="${build.outputDir}">
      <fileset dir="${build.resourceDir}">
        <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}" 
             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" 
             linksource="false" 
             breakiterator="false"/>
  </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="Automatic-Module-Name" value="${project.groupId}"/>
		<attribute name="Bundle-Description" value="Jakarta Servlet ${spec.version}"/>
		<attribute name="Bundle-License" value="http://www.eclipse.org/legal/epl-2.0, https://www.gnu.org/software/classpath/license.html"/>
		<attribute name="Bundle-ManifestVersion" value="2"/>
		<attribute name="Bundle-Name" value="Jakarta Servlet"/>
		<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
		<attribute name="Bundle-Version" value="${bundle.version}"/>
		<attribute name="Export-Package" value="jakarta.servlet.annotation;uses:=&quot;jakarta.servlet&quot;;version=&quot;${bundle.version}&quot;,jakarta.servlet.descriptor;version=&quot;${bundle.version}&quot;,jakarta.servlet.http;uses:=&quot;jakarta.servlet&quot;;version=&quot;${bundle.version}&quot;,jakarta.servlet.resources;version=&quot;${bundle.version}&quot;,jakarta.servlet;uses:=&quot;jakarta.servlet.annotation,jakarta.servlet.descriptor&quot;;version=&quot;${bundle.version}&quot;"/>
		<attribute name="Extension-Name" value="jakarta.servlet"/>
		<attribute name="Implementation-Vendor-Id" value="org.eclipse"/>
		<attribute name="Implementation-Version" value="${project.version}"/>
		<attribute name="Import-Package" value="jakarta.servlet,jakarta.servlet.annotation,jakarta.servlet.descriptor"/>
		<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:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
		<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>
openSUSE Build Service is sponsored by