File univocity-parsers-build.xml of Package univocity-parsers

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

<project name="univocity-parsers" default="package" basedir=".">

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

  <property file="build.properties"/>

  <property name="project.version" value="2.9.1"/>
  <property name="project.artifactId" value="univocity-parsers"/>
  <property name="project.groupId" value="com.univocity"/>
  <property name="project.name" value="${project.artifactId}"/>
  <property name="project.description" value="uniVocity's open source parsers for processing different text formats using a consistent API"/>
  <property name="project.url" value="http://github.com/uniVocity/${project.artifactId}"/>
  <property name="project.organization.name" value="uniVocity Software Pty Ltd"/>
  <property name="project.organization.url" value="www.univocity.com"/>
  <property name="project.license.url" value="http://www.apache.org/licenses/LICENSE-2.0.txt"/>
  <property name="spec.version" value="2.9"/>

  <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="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}"
           nowarn="false"
           debug="true"
           optimize="false"
           deprecation="true"
           release="${compiler.release}"
           target="${compiler.target}"
           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">
    <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">
      <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="Automatic-Module-Name" value="univocity.parsers"/>
        <attribute name="Bundle-Description" value="${project.description}"/>
        <attribute name="Bundle-DocURL" value="${project.organization.url}"/>
        <attribute name="Bundle-License" value="${project.license.url}"/>
        <attribute name="Bundle-ManifestVersion" value="2"/>
        <attribute name="Bundle-Name" value="${project.name}"/>
        <attribute name="Bundle-SymbolicName" value="${project.groupId}.parsers"/>
        <attribute name="Bundle-Vendor" value="${project.organization.name}"/>
        <attribute name="Bundle-Version" value="${project.version}"/>
        <attribute name="Export-Package" value="com.univocity.parsers.annotations.helpers;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.annotations,com.univocity.parsers.common,com.univocity.parsers.common.beans,com.univocity.parsers.conversions&quot;,com.univocity.parsers.annotations;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.conversions,com.univocity.parsers.fixed&quot;,com.univocity.parsers.common.beans;version=&quot;${project.version}&quot;,com.univocity.parsers.common.fields;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.annotations.helpers,com.univocity.parsers.common,com.univocity.parsers.conversions&quot;,com.univocity.parsers.common.input.concurrent;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common.input&quot;,com.univocity.parsers.common.input;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common&quot;,com.univocity.parsers.common.iterators;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common,com.univocity.parsers.common.record&quot;,com.univocity.parsers.common.processor.core;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.annotations,com.univocity.parsers.annotations.helpers,com.univocity.parsers.common,com.univocity.parsers.common.fields,com.univocity.parsers.common.processor,com.univocity.parsers.conversions&quot;,com.univocity.parsers.common.processor;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common,com.univocity.parsers.common.fields,com.univocity.parsers.common.processor.core&quot;,com.univocity.parsers.common.record;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common,com.univocity.parsers.common.fields,com.univocity.parsers.conversions&quot;,com.univocity.parsers.common.routine;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common,com.univocity.parsers.common.fields&quot;,com.univocity.parsers.common;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common.fields,com.univocity.parsers.common.input,com.univocity.parsers.common.processor,com.univocity.parsers.common.processor.core,com.univocity.parsers.common.record,com.univocity.parsers.conversions&quot;,com.univocity.parsers.conversions;version=&quot;${project.version}&quot;,com.univocity.parsers.csv;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common,com.univocity.parsers.common.fields,com.univocity.parsers.common.input,com.univocity.parsers.common.routine&quot;,com.univocity.parsers.fixed;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common,com.univocity.parsers.common.input,com.univocity.parsers.common.routine&quot;,com.univocity.parsers.tsv;version=&quot;${project.version}&quot;;uses:=&quot;com.univocity.parsers.common,com.univocity.parsers.common.routine&quot;"/>
        <attribute name="Implementation-Title" value="${project.name}"/>
        <attribute name="Implementation-URL" value="${project.url}"/>
        <attribute name="Implementation-Vendor" value="${project.organization.name}"/>
        <attribute name="Implementation-Vendor-Id" value="${project.groupId}"/>
        <attribute name="Implementation-Version" value="${project.version}"/>
        <attribute name="Import-Package" value="com.googlecode.openbeans;resolution:=optional,com.univocity.parsers.annotations.helpers,com.univocity.parsers.annotations,com.univocity.parsers.common.beans,com.univocity.parsers.common.fields,com.univocity.parsers.common.input.concurrent,com.univocity.parsers.common.input,com.univocity.parsers.common.iterators,com.univocity.parsers.common.processor.core,com.univocity.parsers.common.processor,com.univocity.parsers.common.record,com.univocity.parsers.common.routine,com.univocity.parsers.common,com.univocity.parsers.conversions,com.univocity.parsers.fixed"/>
        <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-Title" value="${project.name}"/>
        <attribute name="Specification-Vendor" value="${project.organization.name}"/>
        <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