<?xml version="1.0" encoding="UTF-8"?> <project name="build-org.osgi.enterprise" default="package"> <property file="build.properties"/> <property name="api.version" value="4.2.0"/> <property name="reltag.version" value="201003190513"/> <property name="named.version" value="${api.version}.${reltag.version}"/> <target name="init"> <mkdir dir="${dir.build}/classes"/> </target> <target name="clean"> <delete dir="${dir.build}"/> </target> <target name="compile" depends="init"> <javac srcdir="${dir.src}" destdir="${dir.build}/classes" debug="${debug}" source="${source}" target="${target}" includeantruntime="false"> <classpath> <pathelement location="${dir.build}/classes"/> <fileset dir="/usr/share/java"> <include name="felix/org.osgi.core.jar"/> <include name="geronimo-jpa_3.0_spec-1.1.1.jar"/> <include name="tomcat6-servlet-api.jar"/> </fileset> </classpath> </javac> </target> <target name="jar" depends="compile"> <jar destfile="${dir.build}/org.osgi.enterprise.jar" manifest="${dir.build}/classes/META-INF/MANIFEST.MF" basedir="${dir.build}/classes"> <fileset dir="${dir.src}"> <include name="**/package.html"/> <include name="**/packageinfo"/> <include name="xmlns/**"/> <include name="about.html"/> <include name="LICENSE"/> </fileset> </jar> </target> <target name="javadoc" depends="init"> <mkdir dir="${dir.build}/api"/> <tstamp> <format property="year" pattern="yyyy" /> </tstamp> <javadoc destdir="${dir.build}/api" access="public" windowtitle="OSGi Service Platform Release 4 Version 4.2" defaultexcludes="yes"> <packageset dir="${dir.src}"> <include name="org/osgi/**"/> </packageset> <!--link href="/usr/share/javadoc/java/" packagelistLoc="/usr/share/javadoc/java/package-list"/--> <classpath> <pathelement location="${dir.build}/classes"/> <fileset dir="/usr/share/java"> <include name="felix/org.osgi.core.jar"/> <include name="geronimo-jpa_3.0_spec-1.1.1.jar"/> <include name="tomcat6-servlet-api.jar"/> </fileset> </classpath> <doctitle><![CDATA[<h1>OSGi® Service Platform Release 4 Version 4.2</h1>]]></doctitle> <bottom><![CDATA[<small>Copyright © OSGi Alliance (2000, ${year}). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0.</small>]]></bottom> </javadoc> </target> <target name="package" depends="jar,javadoc"/> </project>