view build-src/build-invoice.xml @ 4:5a537ec76c6e

RT-18421: Build files in openjfx/2.1/master have the wrong copyright Reviewed by: jgiles
author kcr
date Fri, 13 Jan 2012 15:52:47 -0800
parents 8d968b638b49
children
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<project name="build-invoice" basedir=".">

<!--
/*
 * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */
-->

    <description>
   
        Creates an invoice.properties file to record the sdk contents and
        version information about this particular build of the SDK.

        *** Sub-repositories should NOT import this file. ***

        This file is imported by the build.xml file only.

    </description>

    <!-- Defines properties for invoice work. -->
    <macrodef name="do-invoice-header">
        <attribute name="file"/>
        <attribute name="description"/>
        <sequential>
            <propertyfile file="@{file}" comment=" Invoice for @{description} ">
                <entry  key="jfx.product.name" value="${jfx.product.name}"/>
                <entry  key="jfx.build.date" type="date" value="now"/>
                <entry  key="jfx.release.milestone" value="${jfx.release.milestone}"/>
                <entry  key="jfx.release.name" value="${jfx.release.name}"/>
                <entry  key="jfx.release.milestone" value="${jfx.release.milestone}"/>
                <entry  key="jfx.release.version" value="${jfx.release.version}"/>
                <entry  key="jfx.build.number" value="${jfx.build.number}"/>
                <entry  key="jfx.build.id" value="${jfx.build.id}"/>
                <entry  key="jfx.job.name" value="${jfx.job.name}"/>
                <entry  key="jfx.release.build.user" value="${user.name}"/>
            </propertyfile>
        </sequential>
    </macrodef>

    <target name="-init-sdk-invoice">
        <delete file="${jfx.sdk.invoice}"/>
    </target>

    <target name="-init-deployed-invoice">
        <delete file="${jfx.deployed.invoice}"/>
    </target>

    <target name="-init-rtdeployed-invoice">
        <delete file="${jfx.rtdeployed.invoice}"/>
    </target>

    <target name="add-sdk-invoice" depends="-init-sdk-invoice, tip-all-components">
        <delete file="${jfx.sdk.invoice}.header"/>
        <do-invoice-header
            file="${jfx.sdk.invoice}.header"
            description="${jfx.sdk.invoice.description}"/>
        <concat destfile="${jfx.sdk.invoice}">
            <fileset file="${jfx.sdk.invoice}.header"/>
            <fileset file="${jfx.repository.data}"/>
            <fileset file="${jfx.sdk.inventory.data}"/>
        </concat>
        <delete file="${jfx.sdk.invoice}.header"/>
    </target>

    <target name="add-deployed-invoice" depends="-init-deployed-invoice, tip-all-components">
        <delete file="${jfx.deployed.invoice}.header"/>
        <do-invoice-header
            file="${jfx.deployed.invoice}.header"
            description="${jfx.deployed.invoice.description}"/>
        <concat destfile="${jfx.deployed.invoice}">
            <fileset file="${jfx.deployed.invoice}.header"/>
            <fileset file="${jfx.repository.data}"/>
            <fileset file="${jfx.deployed.inventory.data}"/>
        </concat>
        <delete file="${jfx.deployed.invoice}.header"/>
    </target>

    <target name="add-rtdeployed-invoice" depends="-init-rtdeployed-invoice, tip-all-components">
        <delete file="${jfx.rtdeployed.invoice}.header"/>
        <do-invoice-header
            file="${jfx.rtdeployed.invoice}.header"
            description="${jfx.rtdeployed.invoice.description}"/>
        <concat destfile="${jfx.rtdeployed.invoice}">
            <fileset file="${jfx.rtdeployed.invoice}.header"/>
            <fileset file="${jfx.repository.data}"/>
            <fileset file="${jfx.rtdeployed.inventory.data}"/>
        </concat>
        <delete file="${jfx.rtdeployed.invoice}.header"/>
    </target>

    <target name="invoices" depends="add-sdk-invoice, add-deployed-invoice, add-rtdeployed-invoice"/>

</project>