Skip to main content

Source code file content

Revision: 58303

Set svn property svn:eol-style to files
» Project Revision History

» Checkout URL

svn / tags / source-build-3.1.2.2 / build.xml

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

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

    <!-- following properties can't be overriden in user.properties -->
    <property name="maven.user.home" value="${basedir}/.m2" />
    <property name="scripts.dir" value="${basedir}/scripts"/>
    
    <property file="${basedir}/config/user.properties"/>

    <!-- following properties can be overriden in user.properties -->
    <property name="ssh.user.home" value="${basedir}/.ssh" />
    <property name="maven.repo.local" value="${maven.user.home}/repository" />
    <property name="maven.settings.xml" value="${maven.user.home}/settings.xml"/>
    <property name="local.maven.ant.tasks.jar" value="${basedir}/lib/maven-ant-tasks-2.0.10.jar"/>
    <property name="glassfish.external.dir" value="${basedir}/external" />
    <property name="logs.dir" value="${basedir}/logs"/>
    <property name="proxy.test.url" value="http://dlc.sun.com.edgesuite.net"/>
    <property name="java.net.user" value="glassfish_sourcebuild"/>
    <property name="kenai.user" value="${java.net.user}"/>

    <property file="${basedir}/config/build.properties"/>
    <property file="${basedir}/config/scm-repositories.properties"/>

    <import file="${basedir}/includes/build-common.xml"/>

    <target name="help">
        <loadfile property="readme" srcFile="README.txt"/>
        <echo message="${readme}"/>
    </target>

    <target name="init" depends="sourcebuild-ant-tasks.init">
        <condition property="initialized" value="true">
            <and>
                <available file="${glassfish.external.dir}" type="dir"/>
                <available file="${maven.user.home}" type="dir"/>
                <available file="${maven.repo.local}" type="dir"/>
                <available file="${logs.dir}" type="dir"/>
                <available file="${scriptProgress}"/>
                <available file="${maven.settings.xml}"/>
            </and>
        </condition>
        <selectiveTask unless="initialized">
            <mkdir dir="${glassfish.external.dir}"/>
            <mkdir dir="${maven.user.home}"/>
            <mkdir dir="${maven.repo.local}"/>
            <mkdir dir="${logs.dir}"/>
            <propertyfile file="${scriptProgress}"/>
            <antcall target="check.proxy"/>
	    <!-- generate a settings.xml only if not provided by user -->
	    <condition property="mavenSettingsExists">
		<available file="${maven.settings.xml}"/>
	    </condition>
	    <selectiveTask unless="mavenSettingsExists">
		<generate-settings-xml file="${maven.settings.xml}"/>
	    </selectiveTask>
        </selectiveTask>
    </target>

    <target name="clean.all">
        <delete dir="${glassfish.external.dir}" failonerror="false"/>
        <delete dir="${maven.repo.local}"  failonerror="false"/>
        <delete file="${scriptProgress}" failonerror="false" />
        <delete dir="${logs.dir}" failonerror="false" />
        <delete dir="${sourcebuild-ant-tasks.dir}/target" failonerror="false"/>
    </target>

    <target name="clean">
        <clean.script.progress phase="build"/>
    </target>

    <target name="checkout" depends="init,check.list" unless="skipCheckout">
        <call-modules phase="checkout"/>
    </target>
    
    <target name="build" depends="checkout">
        <property name="skipCheckout" value="true"/>
        <call-modules phase="build"/>
        <clean.script.progress phase="clean"/>
    </target>

    <!--
        List of the external dependencies to build. This internal target is
        mandatory. Modules which are built as dependency but are not explicitly
        part of GlassFish should not be listed here.
    -->
    <target name="-list.modules">
	<build-module antfile="antlr.xml" />
	<build-module antfile="bcel.xml" />
        <build-module antfile="bean-validator.xml" />
	<build-module antfile="commons-codec.xml" />
	<build-module antfile="dbschema.xml" />
        <build-module target="eclipselink" />
	<build-module target="fighterfish" />
	<build-module target="felix" />
        <build-module target="glassfish-corba"/>
        <build-module target="gmbal"/>
	<build-module antfile="grizzly.xml" />
        <build-module target="ha-api" />
	<build-module target="hk2" />
	<build-module antfile="jakarta-regexp.xml" />
	<build-module target="javax-jms" />
	<build-module antfile="jsftemplating.xml" />
	<build-module target="jsp" />
	<build-module target="jstl" />
        <build-module target="jaxb" />
        <build-module antfile="jaxr-ra.xml" />
        <build-module antfile="jersey.xml" />
	<build-module antfile="jsr311-api.xml" />
	<build-module antfile="ldapbp.xml" />
        <build-module antfile="l10n.xml" />
        <build-module target="mail"/>
        <build-module target="management-api"/>
	<build-module antfile="mojarra.xml" />
        <build-module antfile="mq.xml" />
        <build-module antfile="opendmk.xml" />
        <build-module antfile="schema2beans.xml" />
      	<build-module antfile="shoal.xml" />
	<build-module target="slf4j" />
	<build-module target="tiger-types" />
	<build-module antfile="trilead-ssh2.xml" />
	<build-module target="uel" />
        <build-module antfile="v3-docs.xml" />
	<build-module target="weld" />
	<build-module antfile="woodstock.xml" />
        <build-module antfile="wsdl4j.xml" />
        <build-module target="wsit"/>
    </target>

    <!--
        The following targets are used to declare dependencies
    -->
   <target name="eclipselink" depends="felix,javax-jms,v3-build,mail">
        <build-module antfile="eclipselink.xml" />
    </target>

    <target name="fighterfish">
	<build-module antfile="fighterfish.xml" />
    </target>

    <target name="felix">
	<build-module antfile="felix.xml" />
    </target>

    <target name="glassfish-corba" depends="management-api,gmbal" >
         <build-module antfile="glassfish-corba.xml" />
    </target>

    <target name="gmbal" >
         <build-module antfile="gmbal.xml" />
    </target>

    <target name="ha-api">
	<build-module antfile="ha-api.xml" />
    </target>

    <target name="hk2" depends="metainf-services">
	<build-module antfile="hk2.xml" />
    </target>

    <target name="javax-jms">
	<build-module antfile="javax-jms.xml" />
    </target>

    <target name="javax-servlet">
	<build-module antfile="javax-servlet.xml" />
    </target>

    <target name="jaxb">
         <build-module antfile="jaxb.xml"/>
    </target>

    <target name="jersey">
         <build-module antfile="jersey.xml" />
    </target>

    <target name="jsp">
	<build-module antfile="jsp.xml" />
    </target>

    <target name="jstl" depends="jsp,uel">
	<build-module antfile="jstl.xml" />
    </target>

    <target name="mail">
        <build-module antfile="mail.xml" />
    </target>

    <target name="management-api">
        <build-module antfile="management-api.xml"/>
    </target>

    <target name="metainf-services">
	<build-module antfile="metainf-services.xml" />
    </target>

   <target name="slf4j">
         <build-module antfile="slf4j.xml" />
    </target>

    <target name="tiger-types">
	<build-module antfile="tiger-types.xml" />
    </target>

    <target name="uel">
	<build-module antfile="uel.xml" />
    </target>
    
    <target name="v3-build">
        <build-module antfile="v3-build.xml"/>
    </target>

    <target name="weld" depends="slf4j">
	<build-module antfile="weld.xml" />
    </target>

    <target name="wsit" depends="v3-build,jaxb,management-api,ha-api,javax-servlet">
        <build-module antfile="wsit.xml"/>
    </target>

</project>

 
 
Close
loading
Please Confirm
Close