2019-02-01 09:48:22 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<project name= "jsoup" default= "package" basedir= "." >
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file= "build.properties" />
<property name= "project.name" value= "jsoup Java HTML Parser" />
<property name= "project.groupId" value= "org.jsoup" />
<property name= "project.artifactId" value= "jsoup" />
2022-10-17 06:46:38 +02:00
<property name= "project.version" value= "1.15.3" />
2019-02-01 09:48:22 +01:00
<property name= "project.description" value= "jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers do." />
<property name= "project.organization.name" value= "Jonathan Hedley" />
<property name= "project.build.sourceEncoding" value= "UTF-8" />
<property name= "build.finalName" value= "${project.artifactId}-${project.version}" />
<property name= "build.dir" value= "target" />
<property name= "build.outputDir" value= "${build.dir}/classes" />
2022-10-20 08:53:59 +02:00
<property name= "build.srcDir.0" value= "src/main/java" />
<property name= "build.javadocDir.0" value= "src/main/javadoc" />
<property name= "build.resourceDir.0" value= "src/main/java" />
2019-02-01 09:48:22 +01:00
<property name= "build.resourceDir.1" value= "." />
2021-08-25 15:43:14 +02:00
<property name= "compiler.source" value= "1.8" />
2019-02-01 09:48:22 +01:00
<property name= "compiler.target" value= "${compiler.source}" />
<property name= "reporting.outputDirectory" value= "${build.dir}/site" />
2021-08-25 15:43:14 +02:00
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id= "build.classpath" >
<fileset dir= "lib" >
<include name= "**/*.jar" />
</fileset>
</path>
2019-02-01 09:48:22 +01:00
<!-- ====================================================================== -->
<!-- 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="UTF-8"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src >
2022-10-20 08:53:59 +02:00
<pathelement location= "${build.srcDir.0}" />
2019-02-01 09:48:22 +01:00
</src>
2021-08-25 15:43:14 +02:00
<classpath refid= "build.classpath" />
2019-02-01 09:48:22 +01:00
</javac>
<copy todir= "${build.outputDir}" >
2022-10-20 08:53:59 +02:00
<fileset dir= "${build.resourceDir.0}" >
2019-02-01 09:48:22 +01:00
<include name= "**/*.properties" />
</fileset>
</copy>
<mkdir dir= "${build.outputDir}/META-INF/" />
<copy todir= "${build.outputDir}/META-INF/" >
<fileset dir= "${build.resourceDir.1}" >
<include name= "LICENSE" />
<include name= "README.md" />
<include name= "CHANGES" />
</fileset>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name= "javadoc" description= "Generates the Javadoc of the application" >
2022-10-20 08:53:59 +02:00
<javadoc sourcepath= "${build.srcDir.0}"
2019-02-01 09:48:22 +01:00
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
old="false"
verbose="false"
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}"
2021-08-27 08:55:02 +02:00
encoding="${project.build.sourceEncoding}"
2019-02-01 09:48:22 +01:00
linksource="false"
2022-10-20 08:53:59 +02:00
overview="${build.javadocDir.0}/overview.html"
2019-02-01 09:48:22 +01:00
doctitle="${project.name} ${project.version} API"
windowtitle="${project.name} ${project.version} API"
2021-08-25 15:43:14 +02:00
breakiterator="false">
<classpath refid= "build.classpath" />
</javadoc>
2019-02-01 09:48:22 +01:00
</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= "${project.groupId}" />
<attribute name= "Bundle-Description" value= "${project.description}" />
<attribute name= "Bundle-DocURL" value= "https://jsoup.org/" />
<attribute name= "Bundle-License" value= "https://jsoup.org/license" />
2022-10-20 08:53:59 +02:00
<attribute name= "Bundle-ManifestVersion" value= "2" />
2019-02-01 09:48:22 +01:00
<attribute name= "Bundle-Name" value= "${project.name}" />
<attribute name= "Bundle-SymbolicName" value= "org.jsoup" />
<attribute name= "Bundle-Vendor" value= "${project.organization.name}" />
<attribute name= "Bundle-Version" value= "${project.version}" />
2022-10-20 14:57:11 +02:00
<attribute name= "Export-Package" value= "org.jsoup.examples;uses:="org.jsoup.nodes";version="${project.version}",org.jsoup.helper;uses:="javax.annotation,javax.net.ssl,javax.xml.parsers,org.jsoup,org.jsoup.nodes,org.jsoup.parser,org.jsoup.select,org.w3c.dom";version="${project.version}",org.jsoup.internal;uses:="javax.annotation,javax.annotation.meta";version="${project.version}",org.jsoup.nodes;uses:="javax.annotation,org.jsoup,org.jsoup.helper,org.jsoup.parser,org.jsoup.select";version="${project.version}",org.jsoup.parser;uses:="javax.annotation,org.jsoup.nodes";version="${project.version}",org.jsoup.safety;uses:="org.jsoup.nodes";version="${project.version}",org.jsoup.select;uses:="javax.annotation,org.jsoup.nodes";version="${project.version}",org.jsoup;uses:="javax.annotation,javax.net.ssl,org.jsoup.nodes,org.jsoup.parser,org.jsoup.safety";version="${project.version}"" />
2022-10-17 09:57:58 +02:00
<attribute name= "Implementation-Title" value= "jsoup Java HTML Parser" />
<attribute name= "Implementation-Vendor" value= "Jonathan Hedley" />
2022-10-20 14:57:11 +02:00
<attribute name= "Implementation-Version" value= "${project.version}" />
2022-10-17 09:57:58 +02:00
<attribute name= "Import-Package" value= "javax.annotation.meta;resolution:=optional,javax.annotation;resolution:=optional,javax.net.ssl,javax.xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.stream,javax.xml.xpath,org.jsoup,org.jsoup.helper,org.jsoup.internal,org.jsoup.nodes,org.jsoup.parser,org.jsoup.safety,org.jsoup.select,org.w3c.dom" />
2019-02-01 09:48:22 +01:00
<attribute name= "Require-Capability" value= "osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))"" />
2021-08-27 08:55:02 +02:00
</manifest>
2019-02-01 09:48:22 +01:00
</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>