Files
jakarta-expression-language/jakarta-expression-language-build.xml

164 lines
7.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="jakarta.el-api" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property name="project.groupId" value="jakarta.el"/>
<property name="project.artifactId" value="jakarta.el-api"/>
<property name="project.version" value="6.0.1"/>
<property name="spec.version" value="6.0"/>
<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="**/*.jar"/>
</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>
<classpath>
<path refid="build.classpath"/>
</classpath>
<exclude name="**/module-info.java"/>
</javac>
<!-- module-info.java built with source/target 9 -->
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
encoding="utf-8"
optimize="false"
deprecation="true"
release="9"
verbose="false"
fork="false">
<modulepath>
<path refid="build.classpath"/>
<pathelement location="${build.outputDir}"/>
</modulepath>
<src>
<pathelement location="${build.srcDir}"/>
</src>
<include name="**/module-info.java"/>
</javac>
</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"
charset="ISO-8859-1"
linksource="false"
breakiterator="false">
<doctitle>Jakarta Expression Language API ${project.version} API Specification</doctitle>
<header>Jakarta Expression Language API v${project.version}</header>
<bottom>Copyright &amp;#169; 2018, 2024 Eclipse Foundation. All rights reserved.&lt;br&gt;
Use is subject to &lt;a href=&quot;{@docRoot}/doc-files/speclicense.html&quot; target=&quot;_top&quot;&gt;license terms&lt;/a&gt;.]]&gt;</bottom>
<group title="Jakarta Expression Language API Documentation"/>
</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 Expression Language 6.0"/>
<attribute name="Bundle-DocURL" value="https://www.eclipse.org"/>
<attribute name="Bundle-License" value="https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt,https://www.gnu.org/software/classpath/license.html"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="Jakarta Expression Language API"/>
<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
<attribute name="Bundle-Vendor" value="Eclipse Foundation"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="Export-Package" value="jakarta.el;version=&quot;${project.version}&quot;"/>
<attribute name="Extension-Name" value="jakarta.el"/>
<attribute name="Implementation-Vendor" value="Eclipse Foundation"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="Import-Package" value="java.beans,java.io,java.lang,java.lang.annotation,java.lang.invoke,java.lang.ref,java.lang.reflect,java.text,java.util,java.util.concurrent,java.util.function"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Vendor" value="Eclipse Foundation"/>
</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>