125 lines
7.6 KiB
XML
125 lines
7.6 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
||
|
<project name="commons-compress" default="package" basedir=".">
|
||
|
|
||
|
<!-- ====================================================================== -->
|
||
|
<!-- Build environment properties -->
|
||
|
<!-- ====================================================================== -->
|
||
|
|
||
|
<property file="build.properties"/>
|
||
|
|
||
|
<property name="build.name" value="commons-compress"/>
|
||
|
<property name="build.version" value="1.26.0"/>
|
||
|
<property name="build.finalName" value="${build.name}-${build.version}"/>
|
||
|
<property name="build.dir" value="target"/>
|
||
|
<property name="build.javadocDir" value="${build.dir}/site/apidocs"/>
|
||
|
<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="commons.osgi.dynamicImport" value=""/>
|
||
|
<property name="commons.osgi.excludeDependencies" value="true"/>
|
||
|
<property name="commons.osgi.export" value="org.apache.commons.compress;version="${build.version}",org.apache.commons.compress.archivers;version="${build.version}",org.apache.commons.compress.archivers.ar;version="${build.version}",org.apache.commons.compress.archivers.arj;version="${build.version}",org.apache.commons.compress.archivers.cpio;version="${build.version}",org.apache.commons.compress.archivers.dump;version="${build.version}",org.apache.commons.compress.archivers.examples;version="${build.version}",org.apache.commons.compress.archivers.jar;version="${build.version}",org.apache.commons.compress.archivers.sevenz;version="${build.version}",org.apache.commons.compress.archivers.tar;version="${build.version}",org.apache.commons.compress.archivers.zip;version="${build.version}",org.apache.commons.compress.changes;version="${build.version}",org.apache.commons.compress.compressors;version="${build.version}",org.apache.commons.compress.compressors.bzip2;version="${build.version}",org.apache.commons.compress.compressors.deflate;version="${build.version}",org.apache.commons.compress.compressors.deflate64;version="${build.version}",org.apache.commons.compress.compressors.gzip;version="${build.version}",org.apache.commons.compress.compressors.lz4;version="${build.version}",org.apache.commons.compress.compressors.lz77support;version="${build.version}",org.apache.commons.compress.compressors.lzma;version="${build.version}",org.apache.commons.compress.compressors.lzw;version="${build.version}",org.apache.commons.compress.compressors.pack200;version="${build.version}",org.apache.commons.compress.compressors.snappy;version="${build.version}",org.apache.commons.compress.compressors.xz;version="${build.version}",org.apache.commons.compress.compressors.z;version="${build.version}",org.apache.commons.compress.harmony.archive.internal.nls;version="${build.version}",org.apache.commons.compress.harmony.pack200;version="${build.version}",org.apache.commons.compress.harmony.unpack200;version="${build.version}",org.apache.commons.compress.harmony.unpack200.bytecode;version="${build.version}",org.apache.commons.compress.harmony.unpack200.bytecode.forms;version="${build.version}",org.apache.commons.compress.java.util.jar;version="${build.version}",org.apache.commons.compress.parallel;version="${build.version}",org.apache.commons.compress.utils;version="${build.version}""/>
|
||
|
<property name="commons.osgi.import" value="org.tukaani.xz;resolution:=optional,org.objectweb.asm;resolution:=optional,javax.crypto;resolution:=optional,javax.crypto.spec;resolution:=optional"/>
|
||
|
<property name="commons.osgi.private" value=""/>
|
||
|
<property name="commons.osgi.symbolicName" value="org.apache.commons.compress"/>
|
||
|
|
||
|
<property name="compiler.release" value="8"/>
|
||
|
<property name="compiler.source" value="1.${compiler.release}"/>
|
||
|
<property name="compiler.target" value="${compiler.source}"/>
|
||
|
|
||
|
|
||
|
<!-- ====================================================================== -->
|
||
|
<!-- Defining classpaths -->
|
||
|
<!-- ====================================================================== -->
|
||
|
|
||
|
<path id="build.classpath">
|
||
|
<fileset dir="lib">
|
||
|
<include name="**/*.jar">
|
||
|
</include>
|
||
|
</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}"
|
||
|
encoding="iso-8859-1"
|
||
|
nowarn="false"
|
||
|
debug="true"
|
||
|
optimize="false"
|
||
|
deprecation="true"
|
||
|
target="${compiler.target}"
|
||
|
release="${compiler.release}"
|
||
|
verbose="false"
|
||
|
fork="false"
|
||
|
source="${compiler.source}">
|
||
|
<src>
|
||
|
<pathelement location="${build.srcDir}"/>
|
||
|
</src>
|
||
|
<classpath refid="build.classpath"/>
|
||
|
</javac>
|
||
|
</target>
|
||
|
|
||
|
<!-- ====================================================================== -->
|
||
|
<!-- Javadoc target -->
|
||
|
<!-- ====================================================================== -->
|
||
|
|
||
|
<target name="javadoc" description="Generates the Javadoc of the application">
|
||
|
<mkdir dir="${build.javadocDir}"/>
|
||
|
<javadoc sourcepath="${build.srcDir}"
|
||
|
packagenames="*"
|
||
|
destdir="${build.javadocDir}"
|
||
|
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">
|
||
|
<classpath refid="build.classpath"/>
|
||
|
</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">
|
||
|
<manifest>
|
||
|
<attribute name="Bundle-SymbolicName" value="${commons.osgi.symbolicName}"/>
|
||
|
<attribute name="Bundle-Version" value="${build.version}"/>
|
||
|
<attribute name="Export-Package" value="${commons.osgi.export}"/>
|
||
|
<attribute name="Import-Package" value="${commons.osgi.import}"/>
|
||
|
</manifest>
|
||
|
</jar>
|
||
|
</target>
|
||
|
|
||
|
</project>
|