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 |
<project name="jconsole-plugin" basedir="." default="jar">
|
|
35 |
|
|
36 |
<import file="nbproject/jdk.xml"/>
|
|
37 |
|
|
38 |
<target name="-prop-init">
|
|
39 |
<property file="user.build.properties"/>
|
|
40 |
<property file="build.properties"/>
|
|
41 |
</target>
|
|
42 |
|
|
43 |
<target name="-init" depends="-prop-init,-jdk-init"/>
|
|
44 |
|
|
45 |
<target name="compile" depends="-init" description="Compile main sources.">
|
|
46 |
<mkdir dir="${classes.dir}"/>
|
|
47 |
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
|
|
48 |
<classpath path="${cp}"/>
|
|
49 |
</javac>
|
|
50 |
<copy todir="${classes.dir}">
|
|
51 |
<fileset dir="${src.dir}"/>
|
|
52 |
</copy>
|
|
53 |
</target>
|
|
54 |
|
|
55 |
<target name="jar" depends="compile" description="Build JAR file for main sources.">
|
|
56 |
<jar jarfile="${jar}" compress="true">
|
|
57 |
<manifest>
|
|
58 |
<attribute name="Main-Class" value="${main.class}"/>
|
|
59 |
</manifest>
|
|
60 |
<fileset dir="${classes.dir}"/>
|
|
61 |
</jar>
|
|
62 |
</target>
|
|
63 |
|
|
64 |
<target name="run" depends="compile" description="Run application.">
|
|
65 |
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
|
|
66 |
<java classname="${main.class}" fork="true" failonerror="true">
|
|
67 |
<classpath path="${run.cp}"/>
|
|
68 |
</java>
|
|
69 |
</target>
|
|
70 |
|
|
71 |
<target name="run-jconsole" depends="jar" description="Run JConsole.">
|
|
72 |
<exec executable="${nbjdk.jconsole}">
|
|
73 |
<arg value="-pluginpath"/>
|
|
74 |
<arg file="${jar}"/>
|
|
75 |
</exec>
|
|
76 |
</target>
|
|
77 |
|
|
78 |
<target name="javadoc" depends="-init" description="Build Javadoc.">
|
|
79 |
<mkdir dir="${javadoc.dir}"/>
|
|
80 |
<javadoc destdir="${javadoc.dir}">
|
|
81 |
<classpath path="${cp}"/>
|
|
82 |
<sourcepath>
|
|
83 |
<pathelement location="${src.dir}"/>
|
|
84 |
</sourcepath>
|
|
85 |
<fileset dir="${src.dir}"/>
|
|
86 |
</javadoc>
|
|
87 |
</target>
|
|
88 |
|
|
89 |
<target name="clean" depends="-init" description="Clean build products.">
|
|
90 |
<delete dir="${build.dir}"/>
|
|
91 |
<delete file="${jar}"/>
|
|
92 |
</target>
|
|
93 |
|
|
94 |
<target name="profile">
|
|
95 |
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
|
|
96 |
</target>
|
|
97 |
|
|
98 |
</project>
|