jdk/make/netbeans/common/make.xml
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
<!--
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 Redistribution and use in source and binary forms, with or without
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 modification, are permitted provided that the following conditions
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 are met:
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
   - Redistributions of source code must retain the above copyright
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
     notice, this list of conditions and the following disclaimer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
   - Redistributions in binary form must reproduce the above copyright
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
     notice, this list of conditions and the following disclaimer in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
     documentation and/or other materials provided with the distribution.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
   - Neither the name of Sun Microsystems nor the names of its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
     contributors may be used to endorse or promote products derived
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
     from this software without specific prior written permission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
<project name="make" basedir="..">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    <target name="-make.init" depends="-init,-pre-init.linux,-pre-init.solaris,-pre-init.windows">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        <property name="make.options" value=""/> <!-- default, can be overridden per user or per project -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    <target name="-pre-init.linux" if="os.linux">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        <property name="platform" value="linux"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
        <property name="make" value="make"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    <target name="-pre-init.solaris" if="os.solaris">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        <property name="platform" value="solaris"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        <property name="make" value="gmake"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    <target name="-pre-init.windows" if="os.windows">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
        <property name="platform" value="windows"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        <property name="make" value="c:/cygwin/bin/make"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    <macrodef name="make-run">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
            <attribute name="target"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
            <attribute name="dir"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
            <attribute name="opts" default=""/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
            <sequential>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                <echo message="Entering directory `@{dir}'"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                <exec executable="${make}" dir="@{dir}" failonerror="true">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                    <arg value="@{target}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                    <arg line="@{opts}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                    <arg line="${make.options}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                    <!-- Unset key variables -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                    <env key="JAVA_HOME" value=""/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                    <env key="LANG" value=""/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                    <env key="LD_LIBRARY_PATH" value=""/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                </exec>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                <echo message="Leaving directory `@{dir}'"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
            </sequential>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        </macrodef>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
</project>