view build-src/build-inventory.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-inventory" 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>

        Contains the inventory checks for the JavaFX SDK builds.

        NOTE: Not all files are checked, most are. Extra files are not errors.

    </description>

    <property name="jfx.sdk.inventory.ok"
              value="${jfx.sdk.inventory.dir}/ok.log"/>
    <property name="jfx.sdk.inventory.missing"
              value="${jfx.sdk.inventory.dir}/missing.log"/>
    <property name="jfx.deployed.inventory.ok"
              value="${jfx.deployed.inventory.dir}/ok.log"/>
    <property name="jfx.rtdeployed.inventory.ok"
              value="${jfx.rtdeployed.inventory.dir}/ok.log"/>
    <property name="jfx.deployed.inventory.missing"
              value="${jfx.deployed.inventory.dir}/missing.log"/>

    <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
    <!-- Macrodefs -->

    <macrodef name="inventory-check">
        <attribute name="category"/>
        <attribute name="topdir"/>
        <attribute name="subdir"/>
        <attribute name="file"/>
        <sequential>
            <condition property="jfx.@{category}.inventory.error" value="true">
                <not>
                    <available file="@{topdir}/@{subdir}/@{file}" type="file"/>
                </not>
            </condition>
            <condition property="jfx.@{category}.inventory.@{file}"
                       value="${jfx.@{category}.inventory.ok}"
                       else="${jfx.@{category}.inventory.missing}">
                <available file="@{topdir}/@{subdir}/@{file}" type="file"/>
            </condition>
            <echo append="true" file="${jfx.@{category}.inventory.@{file}}"
                  message="@{subdir}/@{file}${line.separator}"/>
            <checksum file="${jfx.@{category}.inventory.@{file}}"
                      property="jfx.@{category}.inventory.checksum.@{file}"/>
        </sequential>
    </macrodef>

    <macrodef name="inventory-sdk-check">
        <attribute name="dir"/>
        <attribute name="file"/>
        <sequential>
            <inventory-check category="sdk"
                             topdir="${jfx.sdk.dir}"
                             subdir="@{dir}"
                             file="@{file}"/>
        </sequential>
    </macrodef>

    <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

    <target name="-inventory-sdk-init">
        <delete dir="${jfx.sdk.inventory.dir}"/>
        <mkdir dir="${jfx.sdk.inventory.dir}"/>
    </target>

    <target name="-inventory-sdk-generic">
        <echo message="Checking generic sdk files."/>
        <inventory-sdk-check dir="." file="src.zip"/>
        <inventory-sdk-check dir="." file="timestamp"/>
        <inventory-sdk-check dir="." file="COPYRIGHT.html"/>
        <inventory-sdk-check dir="." file="README.html"/>
        <inventory-sdk-check dir="." file="THIRDPARTYLICENSEREADME.txt"/>
        <!-- Lots of files in docs/api, just check for summary pages: -->
        <inventory-sdk-check dir="./docs/api"                             file="index.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.animation"            file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.animation.transition" file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.async"                file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.data.pull"            file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.data.xml"             file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.geometry"             file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.io.http"              file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.reflect"              file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene"                file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.control"        file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.effect"         file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.effect.light"   file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.image"          file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.input"          file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.layout"         file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.media"          file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.paint"          file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.shape"          file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.text"           file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.scene.transform"      file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.stage"                file="package-summary.html"/>
        <inventory-sdk-check dir="./docs/api/javafx.util"                 file="package-summary.html"/>
        <inventory-sdk-check dir="./build/lib"  file="javafx-runtime.properties"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="eula.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-runtime.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-anim.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-geom.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-sg-common.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-sg-swing.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-ui-common.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-ui-desktop.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-ui-swing.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-ui-controls.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="javafx-ui-charts.jar"/>
        <!--
            inventory-sdk-check dir="./build/lib/desktop" file="websvc.jar"/-->
        <inventory-sdk-check dir="./build/lib/desktop" file="jfxmedia.jar"/>
        <inventory-sdk-check dir="./build/lib/shared" file="asm-all-3.1.jar"/>
        <!--
            WE don't have javafxc anymore in javaport
            inventory-sdk-check dir="./build/lib/shared" file="javafxc.jar"/
        -->
        <!--
            UNCOMMENT when javadoc is reenabled
            inventory-sdk-check dir="./build/lib/shared" file="javafxdoc.jar"/-->
        <!--
            inventory-sdk-check dir="./build/lib/shared" file="javafxrt.jar"/
        -->
        <inventory-sdk-check dir="./build/lib/desktop" file="javafxrt-main.jar"/>
        <inventory-sdk-check dir="./build/lib/shared" file="toolchain.jar"/>
    </target>

    <target name="-inventory-sdk-unix" if="isUnix">
        <echo message="Checking unix sdk files."/>
        <inventory-sdk-check dir="./bin" file="javafx"/>
        <inventory-sdk-check dir="./bin" file="javafxc"/>
        <inventory-sdk-check dir="./bin" file="javafxdoc"/>
        <inventory-sdk-check dir="./bin" file="javafxpackager"/>
    </target>

    <target name="-inventory-sdk-windows" if="isWindows">
        <echo message="Checking windows sdk files."/>
        <inventory-sdk-check dir="./bin" file="javafx.exe"/>
        <inventory-sdk-check dir="./bin" file="javafxw.exe"/>
        <inventory-sdk-check dir="./bin" file="javafxc.exe"/>
        <inventory-sdk-check dir="./bin" file="javafxdoc.exe"/>
        <inventory-sdk-check dir="./bin" file="javafxpackager.exe"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-d3d.dll"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-d3d.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-ogl.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-sse.dll"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-sse.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="prism-jogl-common.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="prism_jogl_gl2.dll"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="prism_nativewindow_jvm.dll"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="prism_nativewindow_util.dll"/>
        <!-- TODO: re-enable this once the switch to VS 2010 is complete
        <inventory-sdk-check dir="./build/lib/desktop" file="msvcr100.dll"/>
        -->
        <inventory-sdk-check dir="./build/lib/desktop" file="jfxmedia.dll"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="glib-lite.dll"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="gstreamer-lite.dll"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="fxplugins.dll"/>
    </target>

    <target name="-inventory-sdk-macosx" if="isMacOSX">
        <echo message="Checking macosx sdk files."/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-j2d-jogl.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-ogl.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-sse.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="prism-jogl-common.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libjfxmedia.jnilib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="fxplugins.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="fxmp3plugin.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libglib-2.0.0.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgmodule-2.0.0.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgobject-2.0.0.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgthread-2.0.0.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgstreamer-lite.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgstplugins-lite.dylib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libdecora-sse.jnilib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_jogl_gl2.jnilib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_nativewindow_jvm.jnilib"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_nativewindow_util.jnilib"/>
    </target>

    <target name="-inventory-sdk-solaris" if="isSolaris">
        <echo message="Checking solaris sdk files."/>
	<!-- TODO: uncomment and fix following when media is fixed for Solaris -->
        <!--<inventory-sdk-check dir="./build/lib/desktop" file="libGStreamer.so"/>-->
	<!-- TODO: uncomment the following when JOGL is enabled for Solaris -->
	<!--
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-ogl.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="prism-jogl-common.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_jogl_gl2.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_nativewindow_jvm.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_nativewindow_util.so"/>
        -->
    </target>

    <target name="-inventory-sdk-linux" if="isLinux">
        <echo message="Checking linux sdk files."/>
        <inventory-sdk-check dir="./build/lib/desktop" file="decora-ogl.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="prism-jogl-common.jar"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_jogl_gl2.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_nativewindow_jvm.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libprism_nativewindow_util.so"/>
        <!-- FIXME: uncomment JFXMedia/GStLite natives when linux build works
        <inventory-sdk-check dir="./build/lib/desktop" file="libjfxmedia.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="fxplugins.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="fxmp3plugin.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libglib-2.0.0.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgmodule-2.0.0.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgobject-2.0.0.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgthread-2.0.0.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgstreamer-lite.so"/>
        <inventory-sdk-check dir="./build/lib/desktop" file="libgstplugins-lite.so"/ -->
    </target>

    <target name="-inventory-sdk-check-missing" if="jfx.sdk.inventory.error">
        <echo message="WARNING: Missing sdk files:"/>
        <concat>
            <file file="${jfx.sdk.inventory.missing}"/>
        </concat>
        <fail message="ERROR: Missing sdk files.">
            <condition>
                <isset property="jfx.sdk.inventory.error"/>
            </condition>
        </fail>
    </target>

    <target name="-inventory-sdk"
            depends="-inventory-sdk-generic,
                     -inventory-sdk-windows,
                     -inventory-sdk-unix,
                     -inventory-sdk-macosx,
                     -inventory-sdk-solaris,
                     -inventory-sdk-linux">
    </target>

    <target name="check-sdk-inventory"
            depends="-inventory-sdk-init,
                     -inventory-sdk,
                     -inventory-sdk-check-missing">
        <echoproperties destfile="${jfx.sdk.inventory.data}">
            <propertyset>
                <propertyref prefix="jfx.sdk.inventory.checksum."/>
            </propertyset>
        </echoproperties>
    </target>

    <target name="check-deployed-inventory">
    </target>

    <target name="check-rtdeployed-inventory">
    </target>

    <target name="check-inventory"
            depends="check-sdk-inventory">
    </target>

    <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

</project>