src/demo/share/nbproject/scripting/jconsole-plugin/build.xml
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 25859 jdk/src/demo/share/nbproject/scripting/jconsole-plugin/build.xml@3317bb8137f4
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
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
<!--
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     4
 Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
2
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
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    17
   - Neither the name of Oracle nor the names of its
2
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="jconsole-plugin" basedir="." default="jar">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    <import file="nbproject/jdk.xml"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    <target name="-prop-init">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        <property file="user.build.properties"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        <property file="build.properties"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    <target name="-init" depends="-prop-init,-jdk-init"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    <target name="compile" depends="-init" description="Compile main sources.">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        <mkdir dir="${classes.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
            <classpath path="${cp}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
        </javac>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        <copy todir="${classes.dir}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
            <fileset dir="${src.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        </copy>
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
    <target name="jar" depends="compile" description="Build JAR file for main sources.">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        <jar jarfile="${jar}" compress="true">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
            <manifest>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                <attribute name="Main-Class" value="${main.class}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
            </manifest>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
            <fileset dir="${classes.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
        </jar>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    <target name="run" depends="compile" description="Run application.">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
        <fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        <java classname="${main.class}" fork="true" failonerror="true">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
            <classpath path="${run.cp}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
        </java>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    <target name="run-jconsole" depends="jar" description="Run JConsole.">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        <exec executable="${nbjdk.jconsole}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
            <arg value="-pluginpath"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
            <arg file="${jar}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        </exec>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    <target name="javadoc" depends="-init" description="Build Javadoc.">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        <mkdir dir="${javadoc.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        <javadoc destdir="${javadoc.dir}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
            <classpath path="${cp}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
            <sourcepath>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                <pathelement location="${src.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            </sourcepath>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
            <fileset dir="${src.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        </javadoc>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    <target name="clean" depends="-init" description="Clean build products.">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        <delete dir="${build.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        <delete file="${jar}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    <target name="profile">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        <ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
</project>