Skip to main content

Source code file content

Revision: 57029

GLASSFISH-18987 Remove call to getService in critical path
» Project Revision History

» Checkout URL

svn / tags / source-build-3.1.1 / scripts / mq.xml

Size: 2908 bytes, 1 line
<?xml version="1.0" encoding="iso-8859-1"?>

<project name="MQ source integration" default="build" basedir="..">

    <!-- import build.xml for init target and inherited properties -->
    <import file="${basedir}/build.xml"/>

    <property name="mq.dir" value="${glassfish.external.dir}/mq"/>
    
    <!-- checkout mq source and build -->
    <target name="checkout" depends="init,check.svn" unless="skipCheckout">
        <echo message="checkout mq from ${mq.src.zip.url}."/>
        <mkdir dir="${mq.dir}" />
        <get src="${mq.src.zip.url}" dest="${mq.dir}/${mq.src.zip}"/>
        <echo message="expand mq zip"/>
        <unzip src="${mq.dir}/${mq.src.zip}" dest="${mq.dir}"/>

        <!-- Download external dependences for MQ -->
        <antcall target="mq.dep1"/>
        <antcall target="mq.dep2"/>
        <antcall target="mq.dep3"/>
    </target>

    <target name="build" depends="checkout">
        <!-- build mq -->
        <echo message="building mq"/>
        <subant>
            <target name="build"/>
            <target name="deploy"/>
            <fileset dir="${mq.dir}/mq" includes="build.xml"/>
	    <property name="javaeehome" value="${mq.dir}/extjars"/>
	    <property name="javahelphome" value="${mq.dir}/extjars"/>
	    <property name="grizzlyhome" value="${mq.dir}/extjars"/>
        </subant>
        <mvn.publish.local
            file="${mq.dir}/mq/dist/bundles/${mq.zip.artifact}"
            groupId="org.glassfish"
            artifactId="mq-distribution"
            version="${mq.version}"/>
    </target>

    <!-- download javaee6-api.jar -->
    <target name="mq.dep1" depends="init">
        <echo message="get javaee6-api.jar from ${mq.src.dep.url1}."/>
	<mkdir dir="${mq.dir}/extjars"/>
        <get src="${mq.src.dep.url1}" dest="${mq.dir}/extjars/${mq.src.dep.jar1}" />
    </target>

    <!-- copy grizzly NIO from local maven repo -->
    <target name="mq.dep2" depends="init">
        <echo message="get grizzly.jar from repo1.maven.org"/>
        <mvn.get artifact="com.sun.grizzly:grizzly-nio-framework:1.9.36"/>
	<mkdir dir="${mq.dir}/extjars"/>
	<copy file="${maven.repo.local}/com/sun/grizzly/grizzly-nio-framework/1.9.36/${mq.src.dep.jar2}"
                tofile="${mq.dir}/extjars/grizzly.jar"/>
    </target>

    <!-- download javahelp jhall.jar -->
    <target name="mq.dep3" depends="init">
        <echo message="get jhall.jar from ${mq.src.dep.url3}."/>
	<mkdir dir="${mq.dir}/extjars"/>
        <get src="${mq.src.dep.url3}" dest="${mq.dir}/extjars/${mq.src.dep.jar3}" />
	<move file="${mq.dir}/extjars/${mq.src.dep.jar3}" tofile="${mq.dir}/extjars/jhall.jar"/>
    </target>

    <target name="publish" >
        <mvn.publish.local
            file="${mq.dir}/mq/dist/bundles/${mq.zip.artifact}"
            groupId="org.glassfish"
            artifactId="mq-distribution"
            version="${mq.version}"/>
    </target>

</project>
 
 
Close
loading
Please Confirm
Close