jdk/src/share/demo/scripting/jconsole-plugin/build.xml
author nloodin
Wed, 31 Aug 2011 13:48:04 +0200
changeset 10292 ed7db6a12c2a
parent 5506 202f599c92aa
permissions -rw-r--r--
7067811: Update demo/sample code to state it should not be used for production Summary: Added comment block after copyright block stating that code is unfit for production. Reviewed-by: ohair
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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
<!-- 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
  This is ant (http://ant.apache.org) build script to build the jconsole 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
  script console plugin.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
<project name="JConsole Script Shell Plugin" default="all" basedir=".">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  <!-- property definitions -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
  <property name="app.name" value="jconsole-plugin"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
  <property name="src.dir"  value="src"/>  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  <property name="jconsole.jar.dir"  value="${java.home}/../lib"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
  <property name="build.dir"  value="."/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
  <property name="dist.jar" value="${build.dir}/${app.name}.jar"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
  <property name="classes.dir"  value="${build.dir}/classes"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
  <property name="resources.dir"  value="${classes.dir}/resources"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
  <!-- make directories required -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  <target name="prepare">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    <mkdir dir="${classes.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
  <target name="clean">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     <delete file="${dist.jar}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     <delete dir="${classes.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
  <!-- we need jconsole.jar in CLASSPATH to build -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
  <path id="javac.classpath">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    <pathelement path="${jconsole.jar.dir}/jconsole.jar" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
  </path>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
  <target name="compile" depends="prepare" description="compiles the sources">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    <javac srcdir="${src.dir}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
           destdir="${classes.dir}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
           debug="on" deprecation="on">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
      <classpath refid="javac.classpath" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    </javac>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    <copy todir="${classes.dir}/META-INF/services">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
      <fileset dir="${src.dir}/META-INF/services"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    </copy>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    <copy todir="${resources.dir}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
      <fileset dir="${src.dir}/resources"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    </copy>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
  <target name="all" depends="compile" description="buile deployment bundle">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    <jar jarfile="${dist.jar}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
         basedir="${classes.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
</project>