geronimo-specs/geronimo-specs.build.xml

238 lines
9.6 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<project name="geronimo-specs" default="dist" basedir=".">
<property name="src" value="src/main/java/"/>
<property name="idl" value="src/main/idl/"/>
<property name="build" value="build/"/>
<property name="dist" value="target/"/>
<property name="apidocs" value="target/site/apidocs"/>
<property name="idlj" location="/usr/bin/idlj"/>
<property name="activation102" value="1.2" />
<property name="activation102.id" value="geronimo-activation_1.0.2_spec"/>
<property name="activation102.dir" value="${activation102.id}-${activation102}" />
<property name="activation102.jar" value="${activation102.dir}.jar" />
<property name="activation110" value="1.0" />
<property name="activation110.dir" value="geronimo-activation_1.1_spec-${activation110}" />
<property name="activation110.jar" value="${activation110.dir}.jar" />
<property name="annotation" value="1.1.0" />
<property name="annotation.ver" value="1.1" />
<property name="annotation.id" value="geronimo-annotation_1.0_spec" />
<property name="annotation.dir" value="${annotation.id}-${annotation}" />
<property name="annotation.jar" value="${annotation.id}-${annotation.ver}.jar" />
<property name="connector" value="1.1.1" />
<property name="connector.id" value="geronimo-j2ee-connector_1.5_spec" />
<property name="connector.dir" value="${connector.id}-${connector}" />
<property name="connector.jar" value="${connector.dir}.jar" />
<property name="jaxrpc" value="1.1" />
<property name="jaxrpc.id" value="geronimo-jaxrpc_1.1_spec" />
<property name="jaxrpc.dir" value="${jaxrpc.id}-${jaxrpc}" />
<property name="jaxrpc.jar" value="${jaxrpc.dir}.jar" />
<property name="jms" value="1.1" />
<property name="jms.id" value="geronimo-jms_1.1_spec" />
<property name="jms.dir" value="${jms.id}-${jms}" />
<property name="jms.jar" value="${jms.dir}.jar" />
<property name="jpa" value="1.1.0" />
<property name="jpa.dir" value="geronimo-jpa_3.0_spec-${jpa}" />
<property name="jpa.jar" value="geronimo-jpa_3.0_spec-1.1.jar" />
<property name="jta10" value="1.1.1" />
<property name="jta10.id" value="geronimo-jta_1.0.1B_spec" />
<property name="jta10.dir" value="${jta10.id}-${jta10}" />
<property name="jta10.jar" value="${jta10.dir}.jar" />
<property name="jta11" value="1.1.0" />
<property name="jta11.dir" value="geronimo-jta_1.1_spec-${jta11}" />
<property name="jta11.jar" value="geronimo-jta_1.1_spec-1.1.jar" />
<property name="qname" value="1.1" />
<property name="qname.id" value="geronimo-qname_1.1_spec" />
<property name="qname.dir" value="${qname.id}-${qname}" />
<property name="qname.jar" value="${qname.dir}.jar" />
<property name="saaj" value="1.1" />
<property name="saaj.id" value="geronimo-saaj_1.1_spec" />
<property name="saaj.dir" value="${saaj.id}-${saaj}" />
<property name="saaj.jar" value="${saaj.dir}.jar" />
<property name="servlet24" value="1.1.1" />
<property name="servlet24.id" value="geronimo-servlet_2.4_spec" />
<property name="servlet24.dir" value="${servlet24.id}-${servlet24}" />
<property name="servlet24.jar" value="${servlet24.dir}.jar" />
<property name="servlet25" value="1.1" />
<property name="servlet25.dir" value="geronimo-servlet_2.5_spec-${servlet25}" />
<property name="servlet25.jar" value="${servlet25.dir}.jar" />
<target name="dist" depends="build">
</target>
<target name="build" depends="activation102, activation110, annotation, connector, jaxrpc, jms, jpa, jta10, jta11, qname, saaj, servlet24, servlet25">
</target>
<!--
Usage: gbuild
- gbuild.dir - the directory, of geronimo-specs module source code (eg. geronimo-annotation_1.0_spec-1.1)
- gbuild.jar - the name of a jar file
- gbuild.id - the groupId for maven (eg. geronimo-annotation_1.0_spec)
- gbuild.ver - the version of module (1.1)
if the gbuild.id and gbuild.ver are optional, if not present, the the META-INF/maven/org.apache.geronimo.specs/... will be not create.
-->
<target name="gbuild">
<mkdir dir="${gbuild.dir}/${build}/META-INF/maven/org.apache.geronimo.specs/${gbuild.id}"/>
<mkdir dir="${gbuild.dir}/${dist}"/>
<mkdir dir="${gbuild.dir}/${apidocs}"/>
<javac source="1.8" target="1.8" release="8" srcdir="${gbuild.dir}/${src}" destdir="${gbuild.dir}/${build}" classpath="${gbuild.classpath}" encoding="UTF-8"/>
<jar jarfile="${gbuild.dir}/${dist}/${gbuild.jar}" basedir="${gbuild.dir}/${build}"/>
<antcall target="gbuildmeta">
<param name="gbuild.dir" value="${gbuild.dir}" />
<param name="gbuild.id" value="${gbuild.id}" />
<param name="gbuild.ver" value="${gbuild.ver}" />
</antcall>
</target>
<target name="gbuildmeta" if="gbuild.id" >
<copy file="${gbuild.dir}/pom.xml" todir="${gbuild.dir}/${build}/META-INF/maven/org.apache.geronimo.specs/${gbuild.id}" />
<tstamp>
<format property="gbuild.time" pattern="E MMM d HH:mm:ss z yyyy" locale="C"/>
</tstamp>
<echo file="${gbuild.dir}/${build}/META-INF/maven/org.apache.geronimo.specs/${gbuild.id}/pom.properties">
#Generated by ant
#${gbuild.time}
version=${gbuild.ver}
groupId=org.apache.geronimo.specs
artifactId=${gbuild.id}
</echo>
</target>
<target name="activation102">
<antcall target="gbuild">
<param name="gbuild.dir" value="${activation102.dir}" />
<param name="gbuild.jar" value="${activation102.jar}" />
<param name="gbuild.id" value="${activation102.id}" />
<param name="gbuild.ver" value="${activation102}" />
</antcall>
</target>
<target name="activation110">
<antcall target="gbuild">
<param name="gbuild.dir" value="${activation110.dir}" />
<param name="gbuild.jar" value="${activation110.jar}" />
</antcall>
</target>
<target name="annotation">
<antcall target="gbuild">
<param name="gbuild.dir" value="${annotation.dir}" />
<param name="gbuild.jar" value="${annotation.jar}" />
<param name="gbuild.id" value="${annotation.id}" />
<param name="gbuild.ver" value="${annotation.ver}" />
</antcall>
</target>
<target name="connector">
<antcall target="gbuild">
<param name="gbuild.dir" value="${connector.dir}" />
<param name="gbuild.jar" value="${connector.jar}" />
<param name="gbuild.id" value="${connector.id}" />
<param name="gbuild.ver" value="${connector}" />
</antcall>
</target>
<target name="jaxrpc" depends="servlet24,saaj">
<antcall target="gbuild">
<param name="gbuild.dir" value="${jaxrpc.dir}" />
<param name="gbuild.jar" value="${jaxrpc.jar}" />
<param name="gbuild.classpath" value="${servlet24.dir}/${dist}/${servlet24.jar}:${saaj.dir}/${dist}/${saaj.jar}"/>
<param name="gbuild.id" value="${jaxrpc.id}" />
<param name="gbuild.ver" value="${jaxprc}" />
</antcall>
</target>
<target name="jms">
<antcall target="gbuild">
<param name="gbuild.dir" value="${jms.dir}" />
<param name="gbuild.jar" value="${jms.jar}" />
<param name="gbuild.id" value="${jms.id}" />
<param name="gbuild.ver" value="${jms}" />
</antcall>
</target>
<target name="jpa">
<antcall target="gbuild">
<param name="gbuild.dir" value="${jpa.dir}" />
<param name="gbuild.jar" value="${jpa.jar}" />
</antcall>
</target>
<target name="jta10">
<antcall target="gbuild">
<param name="gbuild.dir" value="${jta10.dir}" />
<param name="gbuild.jar" value="${jta10.jar}" />
<param name="gbuild.id" value="${jta10.id}" />
<param name="gbuild.ver" value="${jta10}" />
</antcall>
</target>
<target name="jta11">
<antcall target="gbuild">
<param name="gbuild.dir" value="${jta11.dir}" />
<param name="gbuild.jar" value="${jta11.jar}" />
</antcall>
</target>
<target name="qname">
<antcall target="gbuild">
<param name="gbuild.dir" value="${qname.dir}" />
<param name="gbuild.jar" value="${qname.jar}" />
<param name="gbuild.id" value="${qname.id}" />
<param name="gbuild.ver" value="${qname}" />
</antcall>
</target>
<target name="saaj" depends="activation102">
<antcall target="gbuild">
<param name="gbuild.dir" value="${saaj.dir}" />
<param name="gbuild.jar" value="${saaj.jar}" />
<param name="gbuild.id" value="${saaj.id}" />
<param name="gbuild.ver" value="${saaj}" />
<param name="gbuild.classpath" value="${activation102.dir}/${dist}/${activation102.jar}"/>
</antcall>
</target>
<target name="servlet24">
<antcall target="gbuild">
<param name="gbuild.dir" value="${servlet24.dir}" />
<param name="gbuild.jar" value="${servlet24.jar}" />
<param name="gbuild.id" value="${servlet24.id}" />
<param name="gbuild.ver" value="${servlet24}" />
</antcall>
</target>
<target name="servlet25">
<antcall target="gbuild">
<param name="gbuild.dir" value="${servlet25.dir}" />
<param name="gbuild.jar" value="${servlet25.jar}" />
</antcall>
</target>
<target name="clean" description="clean up" >
<delete dir="geronimo-spec-j2ee/${dist}" />
</target>
</project>