2
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
|
|
3 |
<!--
|
5506
|
4 |
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
2
|
5 |
|
|
6 |
Redistribution and use in source and binary forms, with or without
|
|
7 |
modification, are permitted provided that the following conditions
|
|
8 |
are met:
|
|
9 |
|
|
10 |
- Redistributions of source code must retain the above copyright
|
|
11 |
notice, this list of conditions and the following disclaimer.
|
|
12 |
|
|
13 |
- Redistributions in binary form must reproduce the above copyright
|
|
14 |
notice, this list of conditions and the following disclaimer in the
|
|
15 |
documentation and/or other materials provided with the distribution.
|
|
16 |
|
5506
|
17 |
- Neither the name of Oracle nor the names of its
|
2
|
18 |
contributors may be used to endorse or promote products derived
|
|
19 |
from this software without specific prior written permission.
|
|
20 |
|
|
21 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
22 |
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
23 |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
24 |
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
25 |
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
26 |
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
27 |
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
28 |
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
29 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
30 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
31 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32 |
-->
|
|
33 |
|
|
34 |
|
|
35 |
<!--
|
|
36 |
This is ant (http://ant.apache.org) build script to build the jconsole
|
|
37 |
script console plugin.
|
|
38 |
-->
|
|
39 |
|
|
40 |
<project name="JConsole Script Shell Plugin" default="all" basedir=".">
|
|
41 |
|
|
42 |
<!-- property definitions -->
|
|
43 |
<property name="app.name" value="jconsole-plugin"/>
|
|
44 |
<property name="src.dir" value="src"/>
|
|
45 |
<property name="jconsole.jar.dir" value="${java.home}/../lib"/>
|
|
46 |
<property name="build.dir" value="."/>
|
|
47 |
<property name="dist.jar" value="${build.dir}/${app.name}.jar"/>
|
|
48 |
<property name="classes.dir" value="${build.dir}/classes"/>
|
|
49 |
<property name="resources.dir" value="${classes.dir}/resources"/>
|
|
50 |
|
|
51 |
|
|
52 |
<!-- make directories required -->
|
|
53 |
<target name="prepare">
|
|
54 |
<mkdir dir="${classes.dir}"/>
|
|
55 |
</target>
|
|
56 |
|
|
57 |
<target name="clean">
|
|
58 |
<delete file="${dist.jar}"/>
|
|
59 |
<delete dir="${classes.dir}"/>
|
|
60 |
</target>
|
|
61 |
|
|
62 |
<!-- we need jconsole.jar in CLASSPATH to build -->
|
|
63 |
<path id="javac.classpath">
|
|
64 |
<pathelement path="${jconsole.jar.dir}/jconsole.jar" />
|
|
65 |
</path>
|
|
66 |
|
|
67 |
<target name="compile" depends="prepare" description="compiles the sources">
|
|
68 |
<javac srcdir="${src.dir}"
|
|
69 |
destdir="${classes.dir}"
|
|
70 |
debug="on" deprecation="on">
|
|
71 |
<classpath refid="javac.classpath" />
|
|
72 |
</javac>
|
|
73 |
<copy todir="${classes.dir}/META-INF/services">
|
|
74 |
<fileset dir="${src.dir}/META-INF/services"/>
|
|
75 |
</copy>
|
|
76 |
<copy todir="${resources.dir}">
|
|
77 |
<fileset dir="${src.dir}/resources"/>
|
|
78 |
</copy>
|
|
79 |
</target>
|
|
80 |
|
|
81 |
<target name="all" depends="compile" description="buile deployment bundle">
|
|
82 |
<jar jarfile="${dist.jar}"
|
|
83 |
basedir="${classes.dir}"/>
|
|
84 |
</target>
|
|
85 |
|
|
86 |
</project>
|