Skip to main content

Source code file content

Revision: 57041

Fix copyright
» Project Revision History

» Checkout URL

svn / tags / source-build-3.1.2 / scripts / mojarra.xml

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

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

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

    <property name="mojarra.dir" value="${glassfish.external.dir}/mojarra" />
    <property name="jsf.build.home" value="${mojarra.dir}/mojarra"/>
    <property name="container.name" value="glassfishV3"/>
    <property name="yuicompressor.jar" value="${mojarra.dir}/yuicompressor/build/yuicompressor-${yuicompressor.version}.jar"/>
    <property name="yuicompressor.jar.dest" value="${mojarra.dir}/dependencies/jars/yuicompressor.jar"/>
    <property name="jargs.jar.dest" value="${mojarra.dir}/yuicompressor/lib/jargs-${jargs.version}.jar"/>
    <property name="jargs.jar" value="${mojarra.dir}/jargs/lib/jargs.jar"/>
    <property name="commons.logging.pom.loc" value="${mojarra.dir}/commons-logging/commons-logging-${commons.logging.version}.pom"/>
    <property name="commons-logging.jar" value="${mojarra.dir}/commons-logging/target/commons-logging.jar"/>
    <property name="commons.collections.pom.loc" value="${mojarra.dir}/commons-collections/commons-collections-${commons.collections.version}.pom"/>
    <property name="commons-collections.jar" value="${mojarra.dir}/commons-collections/dist/commons-collections-${commons.collections.version}.jar"/>
    <property name="commons.beanutils.pom.loc" value="${mojarra.dir}/commons-beanutils/commons-beanutils-${commons.beanutils.version}.pom"/>
    <property name="commons-beanutils.jar" value="${mojarra.dir}/commons-beanutils/dist/commons-beanutils.jar"/>
    <property name="commons.digester.pom.loc" value="${mojarra.dir}/commons-digester/commons-digester-${commons.digester.version}.pom"/>
    <property name="commons-digester.jar" value="${mojarra.dir}/commons-digester/dist/commons-digester.jar"/>
    <property name="groovy.pom.loc" value="${mojarra.dir}/groovy/groovy-all-${groovy.version}.pom"/>
    <property name="groovy.jar" value="${mojarra.dir}/groovy/groovy-all-${groovy.version}.jar"/>
    <property name="jsf-api.pom.template" value="${jsf.build.home}/common/ant/template/jsf-api-pom-template.xml"/>
    <property name="jsf-api.jar" value="${jsf.build.home}/jsf-api/build/lib/jsf-api.jar"/>
    <property name="jsf-impl.pom.template" value="${jsf.build.home}/common/ant/template/jsf-impl-pom-template.xml"/>
    <property name="jsf-impl.jar" value="${jsf.build.home}/jsf-ri/build/lib/jsf-impl.jar"/>

    <target name="checkout" depends="init,check.svn" unless="skipCheckout">
        <antcall target="yuicompressor.checkout"/>
        <antcall target="groovy.checkout"/>
        <antcall target="commons.all.checkout"/>
        <antcall target="jargs.checkout"/>
        <antcall target="mojarra.checkout"/>
    </target>

    <target name="build" depends="checkout">
        <property name="skipCheckout" value="true"/>
        <antcall target="yuicompressor.build"/>
        <antcall target="mojarra.checkout"/>
        <antcall target="commons.all.build"/>
        <antcall target="groovy.install"/>
        <antcall target="mojarra.build" />
    </target>

    <!--
        Checkout targets
    -->
    <target name="mojarra.checkout" unless="skipCheckout">
        <svn.checkout repo="${mojarra.svn.url}" dest="mojarra/mojarra"/>
    </target>

    <target name="jargs.checkout" unless="skipCheckout">
        <svn.checkout repo="${jargs.svn.url}" dest="mojarra/jargs"/>
    </target>

    <target name="commons.all.checkout" unless="skipCheckout">
        <svn.checkout repo="${commons.logging.svn.url}"
            dest="mojarra/commons-logging"/>
        <svn.checkout repo="${commons.collections.svn.url}"
            dest="mojarra/commons-collections"/>
        <svn.checkout repo="${commons.beanutils.svn.url}"
            dest="mojarra/commons-beanutils"/>
        <svn.checkout repo="${commons.digester.svn.url}"
            dest="mojarra/commons-digester"/>
    </target>

    <target name="groovy.checkout" unless="skipCheckout">
        <svn.checkout repo="${groovy.svn.url}" dest="mojarra/groovy"/>
    </target>

    <target name="yuicompressor.checkout" unless="skipCheckout">
        <svn.checkout repo="${yuicompressor.svn.url}"
            dest="mojarra/yuicompressor"/>
    </target>

    <!--
        Build targets
    -->
    <target name="mojarra.build" depends="mojarra.checkout" >
        <!-- copy yui compressor jar -->
        <copy file="${yuicompressor.jar}"
            tofile="${yuicompressor.jar.dest}" overwrite="true"/>

        <!-- build the tools before -->
        <mvn.install dir="${jsf.build.home}/jsf-tools"/>
    
        <ant dir="${jsf.build.home}/jsf-api" target="jars"/>
        <ant dir="${jsf.build.home}/jsf-ri" target="jars"/>

        <create.pom template.file="${jsf-api.pom.template}"
            output.file="${jsf.build.home}/jsf-api.pom"
            groupId="com.sun.faces"
            version="${mojarra.version}"/>
        <mvn.publish.local.pom pom="${jsf.build.home}/jsf-api.pom"
            file="${jsf-api.jar}"/>
        <delete file="${jsf.build.home}/jsf-api.pom"/>

        <create.pom template.file="${jsf-impl.pom.template}"
            output.file="${jsf.build.home}/jsf-impl.pom"
            groupId="com.sun.faces"
            version="${mojarra.version}"/>
        <mvn.publish.local.pom pom="${jsf.build.home}/jsf-impl.pom"
            file="${jsf-impl.jar}"/>
        <delete file="${jsf.build.home}/jsf-impl.pom"/>
    </target>

    <target name="yuicompressor.build" depends="yuicompressor.checkout, jargs.build" >
        <!-- copy jargs jar -->
        <copy file="${jargs.jar}" tofile="${jargs.jar.dest}" overwrite="true"/>    
        <ant dir="${mojarra.dir}/yuicompressor" />
    </target>

    <target name="jargs.build" depends="jargs.checkout">
        <mvn.get artifact="junit:junit:${junit.version}"/>
        <ant dir="${mojarra.dir}/jargs" target="runtimejar">
            <property name="junit.jar" value="${maven.repo.local}/${junit.mvn.path}"/>
        </ant>
    </target>

    <target name="commons.all.build" depends="commons.all.checkout">
        <!-- commons logging -->
        <ant dir="${mojarra.dir}/commons-logging"/>
        <mvn.publish.local.pom pom="${commons.logging.pom.loc}"
            file="${commons-logging.jar}"/>

        <!-- commons collections -->
        <ant dir="${mojarra.dir}/commons-collections" target="dist-jar"/>
        <mvn.publish.local.pom pom="${commons.collections.pom.loc}"
            file="${commons-collections.jar}"/>

        <!-- commons beanutils -->
        <ant dir="${mojarra.dir}/commons-beanutils" target="dist"/>
        <mvn.publish.local.pom pom="${commons.beanutils.pom.loc}"
            file="${commons-beanutils.jar}"/>

        <!-- commons digester -->
        <ant dir="${mojarra.dir}/commons-digester" target="dist"/>
        <mvn.publish.local.pom pom="${commons.digester.pom.loc}"
            file="${commons-digester.jar}"/>
    </target>

    <!-- groovy -->
    <target name="groovy.install" depends="groovy.checkout" >
        <mvn.publish.local.pom pom="${groovy.pom.loc}" file="${groovy.jar}"/>
    </target>
</project>
 
 
Close
loading
Please Confirm
Close