132 lines
7.6 KiB
XML
132 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="jaxen" default="package" basedir=".">
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Build environment properties -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<property name="project.groupId" value="jaxen"/>
|
|
<property name="project.artifactId" value="jaxen"/>
|
|
<property name="project.version" value="2.0.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}"/>
|
|
<property name="build.dir" value="target"/>
|
|
<property name="build.outputDir" value="${build.dir}/classes"/>
|
|
<property name="build.srcDir" value="src/java/main"/>
|
|
<property name="build.resourceDir" value="src/main/resources"/>
|
|
|
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Defining classpaths -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<path id="build.classpath">
|
|
<fileset dir="lib">
|
|
<include name="**/*"/>
|
|
</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}"
|
|
nowarn="false"
|
|
debug="true"
|
|
encoding="utf-8"
|
|
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"
|
|
encoding="utf-8"
|
|
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="org.jaxen"/>
|
|
<attribute name="Bundle-Description" value="Jaxen is a universal XPath engine for Java."/>
|
|
<attribute name="Bundle-DocURL" value="http://www.cafeconleche.org/jaxen"/>
|
|
<attribute name="Bundle-License" value="https://raw.githubusercontent.com/jaxen-xpath/jaxen/master/LICENSE.txt"/>
|
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
|
<attribute name="Bundle-Name" value="jaxen"/>
|
|
<attribute name="Bundle-SymbolicName" value="jaxen"/>
|
|
<attribute name="Bundle-Vendor" value="The Jaxen Project"/>
|
|
<attribute name="Bundle-Version" value="${project.version}"/>
|
|
<attribute name="Export-Package" value="org.jaxen.dom4j;version="${project.version}";uses:="org.dom4j.io,org.jaxen,org.jaxen.saxpath",org.jaxen.dom;version="${project.version}";uses:="org.jaxen,org.jaxen.saxpath,org.w3c.dom",org.jaxen.expr.iter;version="${project.version}";uses:="org.jaxen",org.jaxen.expr;version="${project.version}";uses:="org.jaxen,org.jaxen.expr.iter",org.jaxen.function.ext;version="${project.version}";uses:="org.jaxen",org.jaxen.function.xslt;version="${project.version}";uses:="org.jaxen",org.jaxen.function;version="${project.version}";uses:="org.jaxen",org.jaxen.javabean;version="${project.version}";uses:="org.jaxen,org.jaxen.saxpath",org.jaxen.jdom;version="${project.version}";uses:="org.jaxen,org.jaxen.saxpath,org.jdom",org.jaxen.pattern;version="${project.version}";uses:="org.jaxen,org.jaxen.expr,org.jaxen.saxpath",org.jaxen.saxpath.base;version="${project.version}";uses:="org.jaxen.saxpath",org.jaxen.saxpath.helpers;version="${project.version}";uses:="org.jaxen.saxpath",org.jaxen.saxpath;version="${project.version}",org.jaxen.util;version="${project.version}";uses:="org.jaxen",org.jaxen.xom;version="${project.version}";uses:="org.jaxen,org.jaxen.saxpath",org.jaxen;version="${project.version}";uses:="org.jaxen.expr,org.jaxen.saxpath""/>
|
|
<attribute name="Import-Package" value="javax.xml.parsers;resolution:=optional,nu.xom;resolution:=optional,org.dom4j.io;resolution:=optional,org.dom4j;resolution:=optional,org.jaxen.expr.iter;resolution:=optional,org.jaxen.expr;resolution:=optional,org.jaxen.function.ext;resolution:=optional,org.jaxen.function.xslt;resolution:=optional,org.jaxen.function;resolution:=optional,org.jaxen.saxpath.helpers;resolution:=optional,org.jaxen.saxpath;resolution:=optional,org.jaxen.util;resolution:=optional,org.jaxen;resolution:=optional,org.jdom.input;resolution:=optional,org.jdom;resolution:=optional,org.w3c.dom;resolution:=optional,org.xml.sax;resolution:=optional"/>
|
|
<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>
|