2019-02-26 18:45:09 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<project name="commons-io" default="package" basedir=".">
|
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
<!-- Build environment properties -->
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
|
|
|
|
<property file="maven-build.properties"/>
|
|
|
|
|
|
|
|
<property name="project.groupId" value="commons-io"/>
|
|
|
|
<property name="project.artifactId" value="commons-io"/>
|
2024-05-02 14:10:06 +02:00
|
|
|
<property name="project.version" value="2.16.1"/>
|
2019-02-26 18:45:09 +01:00
|
|
|
<property name="project.name" value="Apache Commons IO"/>
|
|
|
|
<property name="project.description" value="The Apache Commons IO library
|
|
|
|
contains utility classes, stream implementations, file filters,
|
|
|
|
file comparators, endian transformation classes, and much more."/>
|
|
|
|
<property name="project.organization.name" value="The Apache Software Foundation"/>
|
|
|
|
|
|
|
|
<property name="bundle.symbolicName" value="org.apache.commons.io"/>
|
2024-02-19 16:12:43 +01:00
|
|
|
<property name="bundle.version" value="${project.version}"/>
|
2019-02-26 18:45:09 +01:00
|
|
|
|
2023-10-25 18:54:06 +02:00
|
|
|
<property name="compiler.release" value="8"/>
|
|
|
|
<property name="compiler.source" value="1.${compiler.release}"/>
|
2019-02-26 18:45:09 +01:00
|
|
|
<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.0" value="src/main/resources"/>
|
|
|
|
<property name="build.resourceDir.1" value="."/>
|
|
|
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
<!-- Defining classpaths -->
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
|
|
|
|
<path id="build.classpath"/>
|
|
|
|
<path id="build.test.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"
|
2023-10-25 18:54:06 +02:00
|
|
|
release="${compiler.release}"
|
2019-02-26 18:45:09 +01:00
|
|
|
target="${compiler.target}"
|
|
|
|
verbose="false"
|
|
|
|
fork="false"
|
|
|
|
source="${compiler.source}">
|
|
|
|
<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.1}">
|
|
|
|
<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"
|
|
|
|
source="${compiler.source}"
|
|
|
|
linksource="true"
|
|
|
|
breakiterator="false">
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
<!-- Package target -->
|
|
|
|
<!-- ====================================================================== -->
|
|
|
|
|
2021-06-04 11:02:08 +02:00
|
|
|
<target name="package" depends="compile" description="Package the application">
|
2019-02-26 18:45:09 +01:00
|
|
|
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
|
|
|
compress="true"
|
|
|
|
index="false"
|
|
|
|
basedir="${build.outputDir}"
|
|
|
|
excludes="**/package.html">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Automatic-Module-Name" value="${bundle.symbolicName}"/>
|
|
|
|
<attribute name="Bundle-Description" value="${project.description}"/>
|
|
|
|
<attribute name="Bundle-DocURL" value="http://commons.apache.org/proper/commons-io/"/>
|
|
|
|
<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="${project.name}"/>
|
|
|
|
<attribute name="Bundle-SymbolicName" value="${bundle.symbolicName}"/>
|
|
|
|
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
|
|
|
|
<attribute name="Bundle-Version" value="${bundle.version}"/>
|
|
|
|
<attribute name="Export-Package" value="org.apache.commons.io;version="1.4.9999",org.apache.commons.io.comparator;version="1.4.9999",org.apache.commons.io.filefilter;version="1.4.9999",org.apache.commons.io.input;version="1.4.9999",org.apache.commons.io.output;version="1.4.9999",org.apache.commons.io.monitor;version="${project.version}",org.apache.commons.io.serialization;version="${project.version}",org.apache.commons.io;version="${project.version}",org.apache.commons.io.comparator;version="${project.version}",org.apache.commons.io.filefilter;version="${project.version}",org.apache.commons.io.input;version="${project.version}",org.apache.commons.io.output;version="${project.version}""/>
|
|
|
|
<attribute name="Include-Resource" value="META-INF/NOTICE.txt=NOTICE.txt,META-INF/LICENSE.txt=LICENSE.txt"/>
|
|
|
|
<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:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
|
|
|
</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>
|