2021-02-12 14:11:04 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<project name= "commons-cli" default= "package" basedir= "." >
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
2024-05-02 14:27:13 +02:00
<property name= "project.artifactId" value= "commons-cli" />
<property name= "project.groupId" value= "commons-cli" />
<property name= "project.version" value= "1.7.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}" />
2021-02-12 14:11:04 +01:00
<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= "." />
<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" />
<!-- ====================================================================== -->
<!-- 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}"
encoding="iso-8859-1"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
2024-05-02 14:27:13 +02:00
release="${compiler.release}"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
2021-02-12 14:11:04 +01:00
<src >
<pathelement location= "${build.srcDir}" />
</src>
<classpath refid= "build.classpath" />
</javac>
<mkdir dir= "${build.outputDir}/META-INF" />
<copy todir= "${build.outputDir}/META-INF" >
<fileset dir= "${build.resourceDir}" >
<include name= "NOTICE.txt" />
<include name= "LICENSE.txt" />
</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"
verbose="false"
encoding="iso-8859-1"
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"
2024-05-02 14:27:13 +02:00
source="${compiler.source}"
2021-02-12 14:11:04 +01:00
linksource="true"
breakiterator="false">
2021-12-16 21:22:31 +01:00
<link href= "http://java.sun.com/javase/7/docs/api/" />
2021-02-12 14:11:04 +01:00
</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">
2021-02-12 14:13:40 +01:00
<manifest >
<attribute name= "Bundle-Description" value= "Apache Commons CLI provides a simple API for presenting, processing and validating a command line interface." />
<attribute name= "Bundle-DocURL" value= "http://commons.apache.org/proper/commons-cli/" />
<attribute name= "Bundle-License" value= "https://www.apache.org/licenses/LICENSE-2.0.txt" />
<attribute name= "Bundle-ManifestVersion" value= "2" />
<attribute name= "Bundle-Name" value= "Apache Commons CLI" />
<attribute name= "Bundle-SymbolicName" value= "org.apache.commons.cli" />
<attribute name= "Bundle-Vendor" value= "The Apache Software Foundation" />
2024-05-02 14:27:13 +02:00
<attribute name= "Bundle-Version" value= "${project.version}" />
<attribute name= "Export-Package" value= "org.apache.commons.cli;version="${project.version}"" />
2021-02-12 14:13:40 +01:00
<attribute name= "Implementation-Title" value= "Apache Commons CLI" />
<attribute name= "Implementation-Vendor-Id" value= "org.apache" />
<attribute name= "Implementation-Vendor" value= "The Apache Software Foundation" />
2024-05-02 14:27:13 +02:00
<attribute name= "Implementation-Version" value= "${project.version}" />
2021-02-12 14:13:40 +01:00
<attribute name= "Include-Resource" value= "META-INF/NOTICE.txt=NOTICE.txt,META-INF/LICENSE.txt=LICENSE.txt" />
2024-05-02 14:27:13 +02:00
<attribute name= "Require-Capability" value= "osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))"" />
2021-02-12 14:13:40 +01:00
<attribute name= "Specification-Title" value= "Apache Commons CLI" />
<attribute name= "Specification-Vendor" value= "The Apache Software Foundation" />
2024-05-02 14:27:13 +02:00
<attribute name= "Specification-Version" value= "${project.version}" />
2021-02-12 14:13:40 +01:00
</manifest>
</jar>
2021-02-12 14:11:04 +01:00
</target>
</project>