8304501: Remove orphaned demo netbeans projects
Reviewed-by: serb
This commit is contained in:
parent
0ff2ff6789
commit
4485737e9b
@ -1,24 +0,0 @@
|
|||||||
main.dir=${basedir}/../../../jfc/SwingApplet
|
|
||||||
|
|
||||||
src.dir=${main.dir}/src
|
|
||||||
|
|
||||||
build.dir=build
|
|
||||||
classes.dir=${build.dir}/classes
|
|
||||||
jar=${main.dir}/SwingApplet.jar
|
|
||||||
javadoc.dir=${build.dir}/javadoc
|
|
||||||
|
|
||||||
build.sysclasspath=ignore
|
|
||||||
# E.g.: cp=lib/x.jar:lib/y.jar
|
|
||||||
cp=
|
|
||||||
extra.run.cp=
|
|
||||||
|
|
||||||
#main.class=
|
|
||||||
|
|
||||||
run.cp=${cp}:${classes.dir}:${extra.run.cp}
|
|
||||||
|
|
||||||
debug=true
|
|
||||||
deprecation=false
|
|
||||||
|
|
||||||
nbjdk.home=${basedir}/../../../..
|
|
||||||
|
|
||||||
applet.html=${main.dir}/SwingApplet.html
|
|
@ -1,100 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="SwingApplet" basedir="." default="jar">
|
|
||||||
|
|
||||||
<import file="nbproject/jdk.xml"/>
|
|
||||||
|
|
||||||
<target name="-prop-init">
|
|
||||||
<property file="user.build.properties"/>
|
|
||||||
<property file="build.properties"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-init" depends="-prop-init,-jdk-init"/>
|
|
||||||
|
|
||||||
<target name="compile" depends="-init" description="Compile main sources.">
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
<copy todir="${classes.dir}">
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar" depends="compile" description="Build JAR file for main sources.">
|
|
||||||
<jar jarfile="${jar}" compress="true">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</manifest>
|
|
||||||
<fileset dir="${classes.dir}"/>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run" depends="compile" description="Run application.">
|
|
||||||
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run-applet" depends="jar" description="Run applet.">
|
|
||||||
<exec executable="${nbjdk.appletviewer}">
|
|
||||||
<arg file="${applet.html}"/>
|
|
||||||
</exec>
|
|
||||||
<!-- To view in regular web browser instead:
|
|
||||||
<nbbrowse file="${applet.html}"/>
|
|
||||||
-->
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="javadoc" depends="-init" description="Build Javadoc.">
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<javadoc destdir="${javadoc.dir}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<sourcepath>
|
|
||||||
<pathelement location="${src.dir}"/>
|
|
||||||
</sourcepath>
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean" depends="-init" description="Clean build products.">
|
|
||||||
<delete dir="${build.dir}"/>
|
|
||||||
<delete file="${jar}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile">
|
|
||||||
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="SwingApplet/file">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="compile-selected" depends="-init">
|
|
||||||
<fail unless="includes">Must set property 'includes'</fail>
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,98 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="jdk" basedir=".">
|
|
||||||
|
|
||||||
<target name="-jdk-preinit">
|
|
||||||
<condition property=".exe" value=".exe">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
<property name=".exe" value=""/>
|
|
||||||
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
|
|
||||||
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
|
|
||||||
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
|
|
||||||
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
|
|
||||||
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
|
|
||||||
<macrodef name="javac-presetdef">
|
|
||||||
<attribute name="javacval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javac">
|
|
||||||
<javac fork="yes" executable="@{javacval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javac-presetdef javacval="${nbjdk.javac}"/>
|
|
||||||
<macrodef name="java-presetdef">
|
|
||||||
<attribute name="javaval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="java">
|
|
||||||
<java fork="yes" jvm="@{javaval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<java-presetdef javaval="${nbjdk.java}"/>
|
|
||||||
<macrodef name="javadoc-presetdef">
|
|
||||||
<attribute name="javadocval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javadoc">
|
|
||||||
<javadoc executable="@{javadocval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
|
|
||||||
<property name="nbjdk.presetdef.basic.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
|
|
||||||
<macrodef name="nbjpdastart-presetdef">
|
|
||||||
<attribute name="bootcpval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="nbjpdastart">
|
|
||||||
<nbjpdastart>
|
|
||||||
<bootclasspath>
|
|
||||||
<path path="@{bootcpval}"/>
|
|
||||||
</bootclasspath>
|
|
||||||
</nbjpdastart>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
|
|
||||||
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="SwingApplet/NB">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="debug" depends="compile,-jdk-presetdef-nbjpdastart">
|
|
||||||
<nbjpdastart addressproperty="jpda.address" name="SwingApplet" transport="dt_socket">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbjpdastart>
|
|
||||||
<java classname="${main.class}" failonerror="true" fork="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="-Xdebug"/>
|
|
||||||
<jvmarg value="-Xnoagent"/>
|
|
||||||
<jvmarg value="-Djava.compiler=none"/>
|
|
||||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-fix" depends="-init">
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<include name="${class}.java"/>
|
|
||||||
</javac>
|
|
||||||
<nbjpdareload>
|
|
||||||
<fileset dir="${classes.dir}">
|
|
||||||
<include name="${class}.class"/>
|
|
||||||
</fileset>
|
|
||||||
</nbjpdareload>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="show-javadoc" depends="javadoc">
|
|
||||||
<nbbrowse file="${javadoc.dir}/index.html"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile" depends="compile">
|
|
||||||
<nbprofiledirect>
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbprofiledirect>
|
|
||||||
<property environment="env"/>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true" dir="${profiler.session.working.dir}" jvm="${profiler.info.jvm}">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
||||||
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
||||||
<env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
|
|
||||||
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,180 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.ant.freeform</type>
|
|
||||||
<configuration>
|
|
||||||
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
|
|
||||||
<name>SwingApplet</name>
|
|
||||||
<properties>
|
|
||||||
<property-file>user.build.properties</property-file>
|
|
||||||
<property-file>build.properties</property-file>
|
|
||||||
<property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar</property>
|
|
||||||
</properties>
|
|
||||||
<folders>
|
|
||||||
<source-folder>
|
|
||||||
<label>JDK Demo</label>
|
|
||||||
<location>${main.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-folder>
|
|
||||||
<label>Sources</label>
|
|
||||||
<type>java</type>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<build-folder>
|
|
||||||
<location>${build.dir}</location>
|
|
||||||
</build-folder>
|
|
||||||
</folders>
|
|
||||||
<ide-actions>
|
|
||||||
<action name="build">
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="clean">
|
|
||||||
<target>clean</target>
|
|
||||||
</action>
|
|
||||||
<action name="rebuild">
|
|
||||||
<target>clean</target>
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="run">
|
|
||||||
<target>run</target>
|
|
||||||
</action>
|
|
||||||
<action name="javadoc">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>show-javadoc</target>
|
|
||||||
</action>
|
|
||||||
<action name="debug">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
</action>
|
|
||||||
<action name="compile.single">
|
|
||||||
<script>nbproject/file-targets.xml</script>
|
|
||||||
<target>compile-selected</target>
|
|
||||||
<context>
|
|
||||||
<property>includes</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path</format>
|
|
||||||
<arity>
|
|
||||||
<separated-files>,</separated-files>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="run.single">
|
|
||||||
<target>run</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.single">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.fix">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug-fix</target>
|
|
||||||
<context>
|
|
||||||
<property>class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path-noext</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
</ide-actions>
|
|
||||||
<export>
|
|
||||||
<type>jar</type>
|
|
||||||
<location>${jar}</location>
|
|
||||||
<build-target>jar</build-target>
|
|
||||||
<clean-target>clean</clean-target>
|
|
||||||
</export>
|
|
||||||
<view>
|
|
||||||
<items>
|
|
||||||
<source-folder style="packages">
|
|
||||||
<label>Sources</label>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-file>
|
|
||||||
<location>${applet.html}</location>
|
|
||||||
</source-file>
|
|
||||||
<source-file>
|
|
||||||
<location>${main.dir}/README.txt</location>
|
|
||||||
</source-file>
|
|
||||||
</items>
|
|
||||||
<context-menu>
|
|
||||||
<ide-action name="build"/>
|
|
||||||
<ide-action name="rebuild"/>
|
|
||||||
<ide-action name="clean"/>
|
|
||||||
<ide-action name="javadoc"/>
|
|
||||||
<separator/>
|
|
||||||
<ide-action name="run"/>
|
|
||||||
<action>
|
|
||||||
<label>Run Project as Applet</label>
|
|
||||||
<target>run-applet</target>
|
|
||||||
</action>
|
|
||||||
<ide-action name="debug"/>
|
|
||||||
</context-menu>
|
|
||||||
</view>
|
|
||||||
<subprojects/>
|
|
||||||
</general-data>
|
|
||||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
|
|
||||||
<compilation-unit>
|
|
||||||
<package-root>${src.dir}</package-root>
|
|
||||||
<classpath mode="compile">${cp}</classpath>
|
|
||||||
<classpath mode="execute">${run.cp}</classpath>
|
|
||||||
<classpath mode="boot">${nbjdk.bootclasspath}</classpath>
|
|
||||||
<built-to>${classes.dir}</built-to>
|
|
||||||
<built-to>${jar}</built-to>
|
|
||||||
<javadoc-built-to>${javadoc.dir}</javadoc-built-to>
|
|
||||||
<source-level>1.5</source-level>
|
|
||||||
</compilation-unit>
|
|
||||||
</java-data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
@ -1,22 +0,0 @@
|
|||||||
main.dir=${basedir}/../../../management/FullThreadDump
|
|
||||||
|
|
||||||
src.dir=${main.dir}/src
|
|
||||||
|
|
||||||
build.dir=build
|
|
||||||
classes.dir=${build.dir}/classes
|
|
||||||
jar=${main.dir}/FullThreadDump.jar
|
|
||||||
javadoc.dir=${build.dir}/javadoc
|
|
||||||
|
|
||||||
build.sysclasspath=ignore
|
|
||||||
# E.g.: cp=lib/x.jar:lib/y.jar
|
|
||||||
cp=
|
|
||||||
extra.run.cp=
|
|
||||||
|
|
||||||
main.class=FullThreadDump
|
|
||||||
|
|
||||||
run.cp=${cp}:${classes.dir}:${extra.run.cp}
|
|
||||||
|
|
||||||
debug=true
|
|
||||||
deprecation=false
|
|
||||||
|
|
||||||
nbjdk.home=${basedir}/../../../..
|
|
@ -1,91 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="FullThreadDump" basedir="." default="jar">
|
|
||||||
|
|
||||||
<import file="nbproject/jdk.xml"/>
|
|
||||||
|
|
||||||
<target name="-prop-init">
|
|
||||||
<property file="user.build.properties"/>
|
|
||||||
<property file="build.properties"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-init" depends="-prop-init,-jdk-init"/>
|
|
||||||
|
|
||||||
<target name="compile" depends="-init" description="Compile main sources.">
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
<copy todir="${classes.dir}">
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar" depends="compile" description="Build JAR file for main sources.">
|
|
||||||
<jar jarfile="${jar}" compress="true">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</manifest>
|
|
||||||
<fileset dir="${classes.dir}"/>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run" depends="compile" description="Run application.">
|
|
||||||
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="javadoc" depends="-init" description="Build Javadoc.">
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<javadoc destdir="${javadoc.dir}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<sourcepath>
|
|
||||||
<pathelement location="${src.dir}"/>
|
|
||||||
</sourcepath>
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean" depends="-init" description="Clean build products.">
|
|
||||||
<delete dir="${build.dir}"/>
|
|
||||||
<delete file="${jar}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile">
|
|
||||||
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="FullThreadDump/file">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="compile-selected" depends="-init">
|
|
||||||
<fail unless="includes">Must set property 'includes'</fail>
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,98 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="jdk" basedir=".">
|
|
||||||
|
|
||||||
<target name="-jdk-preinit">
|
|
||||||
<condition property=".exe" value=".exe">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
<property name=".exe" value=""/>
|
|
||||||
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
|
|
||||||
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
|
|
||||||
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
|
|
||||||
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
|
|
||||||
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
|
|
||||||
<macrodef name="javac-presetdef">
|
|
||||||
<attribute name="javacval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javac">
|
|
||||||
<javac fork="yes" executable="@{javacval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javac-presetdef javacval="${nbjdk.javac}"/>
|
|
||||||
<macrodef name="java-presetdef">
|
|
||||||
<attribute name="javaval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="java">
|
|
||||||
<java fork="yes" jvm="@{javaval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<java-presetdef javaval="${nbjdk.java}"/>
|
|
||||||
<macrodef name="javadoc-presetdef">
|
|
||||||
<attribute name="javadocval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javadoc">
|
|
||||||
<javadoc executable="@{javadocval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
|
|
||||||
<property name="nbjdk.presetdef.basic.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
|
|
||||||
<macrodef name="nbjpdastart-presetdef">
|
|
||||||
<attribute name="bootcpval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="nbjpdastart">
|
|
||||||
<nbjpdastart>
|
|
||||||
<bootclasspath>
|
|
||||||
<path path="@{bootcpval}"/>
|
|
||||||
</bootclasspath>
|
|
||||||
</nbjpdastart>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
|
|
||||||
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="FullThreadDump/NB">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="debug" depends="compile,-jdk-presetdef-nbjpdastart">
|
|
||||||
<nbjpdastart addressproperty="jpda.address" name="FullThreadDump" transport="dt_socket">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbjpdastart>
|
|
||||||
<java classname="${main.class}" failonerror="true" fork="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="-Xdebug"/>
|
|
||||||
<jvmarg value="-Xnoagent"/>
|
|
||||||
<jvmarg value="-Djava.compiler=none"/>
|
|
||||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-fix" depends="-init">
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<include name="${class}.java"/>
|
|
||||||
</javac>
|
|
||||||
<nbjpdareload>
|
|
||||||
<fileset dir="${classes.dir}">
|
|
||||||
<include name="${class}.class"/>
|
|
||||||
</fileset>
|
|
||||||
</nbjpdareload>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="show-javadoc" depends="javadoc">
|
|
||||||
<nbbrowse file="${javadoc.dir}/index.html"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile" depends="compile">
|
|
||||||
<nbprofiledirect>
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbprofiledirect>
|
|
||||||
<property environment="env"/>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true" dir="${profiler.session.working.dir}" jvm="${profiler.info.jvm}">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
||||||
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
||||||
<env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
|
|
||||||
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,173 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.ant.freeform</type>
|
|
||||||
<configuration>
|
|
||||||
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
|
|
||||||
<name>FullThreadDump</name>
|
|
||||||
<properties>
|
|
||||||
<property-file>user.build.properties</property-file>
|
|
||||||
<property-file>build.properties</property-file>
|
|
||||||
<property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar</property>
|
|
||||||
</properties>
|
|
||||||
<folders>
|
|
||||||
<source-folder>
|
|
||||||
<label>JDK Demo</label>
|
|
||||||
<location>${main.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-folder>
|
|
||||||
<label>Sources</label>
|
|
||||||
<type>java</type>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<build-folder>
|
|
||||||
<location>${build.dir}</location>
|
|
||||||
</build-folder>
|
|
||||||
</folders>
|
|
||||||
<ide-actions>
|
|
||||||
<action name="build">
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="clean">
|
|
||||||
<target>clean</target>
|
|
||||||
</action>
|
|
||||||
<action name="rebuild">
|
|
||||||
<target>clean</target>
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="run">
|
|
||||||
<target>run</target>
|
|
||||||
</action>
|
|
||||||
<action name="javadoc">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>show-javadoc</target>
|
|
||||||
</action>
|
|
||||||
<action name="debug">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
</action>
|
|
||||||
<action name="compile.single">
|
|
||||||
<script>nbproject/file-targets.xml</script>
|
|
||||||
<target>compile-selected</target>
|
|
||||||
<context>
|
|
||||||
<property>includes</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path</format>
|
|
||||||
<arity>
|
|
||||||
<separated-files>,</separated-files>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="run.single">
|
|
||||||
<target>run</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.single">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.fix">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug-fix</target>
|
|
||||||
<context>
|
|
||||||
<property>class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path-noext</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
</ide-actions>
|
|
||||||
<export>
|
|
||||||
<type>jar</type>
|
|
||||||
<location>${jar}</location>
|
|
||||||
<build-target>jar</build-target>
|
|
||||||
<clean-target>clean</clean-target>
|
|
||||||
</export>
|
|
||||||
<view>
|
|
||||||
<items>
|
|
||||||
<source-folder style="packages">
|
|
||||||
<label>Sources</label>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-file>
|
|
||||||
<location>${main.dir}/README.txt</location>
|
|
||||||
</source-file>
|
|
||||||
</items>
|
|
||||||
<context-menu>
|
|
||||||
<ide-action name="build"/>
|
|
||||||
<ide-action name="rebuild"/>
|
|
||||||
<ide-action name="clean"/>
|
|
||||||
<ide-action name="javadoc"/>
|
|
||||||
<separator/>
|
|
||||||
<ide-action name="run"/>
|
|
||||||
<ide-action name="debug"/>
|
|
||||||
</context-menu>
|
|
||||||
</view>
|
|
||||||
<subprojects/>
|
|
||||||
</general-data>
|
|
||||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
|
|
||||||
<compilation-unit>
|
|
||||||
<package-root>${src.dir}</package-root>
|
|
||||||
<classpath mode="compile">${cp}</classpath>
|
|
||||||
<classpath mode="execute">${run.cp}</classpath>
|
|
||||||
<classpath mode="boot">${nbjdk.bootclasspath}</classpath>
|
|
||||||
<built-to>${classes.dir}</built-to>
|
|
||||||
<built-to>${jar}</built-to>
|
|
||||||
<javadoc-built-to>${javadoc.dir}</javadoc-built-to>
|
|
||||||
<source-level>1.5</source-level>
|
|
||||||
</compilation-unit>
|
|
||||||
</java-data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
@ -1,22 +0,0 @@
|
|||||||
main.dir=${basedir}/../../../management/JTop
|
|
||||||
|
|
||||||
src.dir=${main.dir}/src
|
|
||||||
|
|
||||||
build.dir=build
|
|
||||||
classes.dir=${build.dir}/classes
|
|
||||||
jar=${main.dir}/JTop.jar
|
|
||||||
javadoc.dir=${build.dir}/javadoc
|
|
||||||
|
|
||||||
build.sysclasspath=ignore
|
|
||||||
|
|
||||||
nbjdk.home=${basedir}/../../../..
|
|
||||||
# E.g.: cp=lib/x.jar:lib/y.jar
|
|
||||||
cp=${nbjdk.home}/lib/jconsole.jar
|
|
||||||
extra.run.cp=
|
|
||||||
|
|
||||||
main.class=JTop
|
|
||||||
|
|
||||||
run.cp=${cp}:${classes.dir}:${extra.run.cp}
|
|
||||||
|
|
||||||
debug=true
|
|
||||||
deprecation=false
|
|
@ -1,91 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="JTop" basedir="." default="jar">
|
|
||||||
|
|
||||||
<import file="nbproject/jdk.xml"/>
|
|
||||||
|
|
||||||
<target name="-prop-init">
|
|
||||||
<property file="user.build.properties"/>
|
|
||||||
<property file="build.properties"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-init" depends="-prop-init,-jdk-init"/>
|
|
||||||
|
|
||||||
<target name="compile" depends="-init" description="Compile main sources.">
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
<copy todir="${classes.dir}">
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar" depends="compile" description="Build JAR file for main sources.">
|
|
||||||
<jar jarfile="${jar}" compress="true">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</manifest>
|
|
||||||
<fileset dir="${classes.dir}"/>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run" depends="compile" description="Run application.">
|
|
||||||
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="javadoc" depends="-init" description="Build Javadoc.">
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<javadoc destdir="${javadoc.dir}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<sourcepath>
|
|
||||||
<pathelement location="${src.dir}"/>
|
|
||||||
</sourcepath>
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean" depends="-init" description="Clean build products.">
|
|
||||||
<delete dir="${build.dir}"/>
|
|
||||||
<delete file="${jar}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile">
|
|
||||||
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="JTop/file">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="compile-selected" depends="-init">
|
|
||||||
<fail unless="includes">Must set property 'includes'</fail>
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,98 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="jdk" basedir=".">
|
|
||||||
|
|
||||||
<target name="-jdk-preinit">
|
|
||||||
<condition property=".exe" value=".exe">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
<property name=".exe" value=""/>
|
|
||||||
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
|
|
||||||
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
|
|
||||||
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
|
|
||||||
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
|
|
||||||
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
|
|
||||||
<macrodef name="javac-presetdef">
|
|
||||||
<attribute name="javacval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javac">
|
|
||||||
<javac fork="yes" executable="@{javacval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javac-presetdef javacval="${nbjdk.javac}"/>
|
|
||||||
<macrodef name="java-presetdef">
|
|
||||||
<attribute name="javaval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="java">
|
|
||||||
<java fork="yes" jvm="@{javaval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<java-presetdef javaval="${nbjdk.java}"/>
|
|
||||||
<macrodef name="javadoc-presetdef">
|
|
||||||
<attribute name="javadocval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javadoc">
|
|
||||||
<javadoc executable="@{javadocval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
|
|
||||||
<property name="nbjdk.presetdef.basic.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
|
|
||||||
<macrodef name="nbjpdastart-presetdef">
|
|
||||||
<attribute name="bootcpval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="nbjpdastart">
|
|
||||||
<nbjpdastart>
|
|
||||||
<bootclasspath>
|
|
||||||
<path path="@{bootcpval}"/>
|
|
||||||
</bootclasspath>
|
|
||||||
</nbjpdastart>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
|
|
||||||
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="JTop/NB">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="debug" depends="compile,-jdk-presetdef-nbjpdastart">
|
|
||||||
<nbjpdastart addressproperty="jpda.address" name="JTop" transport="dt_socket">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbjpdastart>
|
|
||||||
<java classname="${main.class}" failonerror="true" fork="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="-Xdebug"/>
|
|
||||||
<jvmarg value="-Xnoagent"/>
|
|
||||||
<jvmarg value="-Djava.compiler=none"/>
|
|
||||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-fix" depends="-init">
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<include name="${class}.java"/>
|
|
||||||
</javac>
|
|
||||||
<nbjpdareload>
|
|
||||||
<fileset dir="${classes.dir}">
|
|
||||||
<include name="${class}.class"/>
|
|
||||||
</fileset>
|
|
||||||
</nbjpdareload>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="show-javadoc" depends="javadoc">
|
|
||||||
<nbbrowse file="${javadoc.dir}/index.html"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile" depends="compile">
|
|
||||||
<nbprofiledirect>
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbprofiledirect>
|
|
||||||
<property environment="env"/>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true" dir="${profiler.session.working.dir}" jvm="${profiler.info.jvm}">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
||||||
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
||||||
<env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
|
|
||||||
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,173 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.ant.freeform</type>
|
|
||||||
<configuration>
|
|
||||||
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
|
|
||||||
<name>JTop</name>
|
|
||||||
<properties>
|
|
||||||
<property-file>user.build.properties</property-file>
|
|
||||||
<property-file>build.properties</property-file>
|
|
||||||
<property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar</property>
|
|
||||||
</properties>
|
|
||||||
<folders>
|
|
||||||
<source-folder>
|
|
||||||
<label>JDK Demo</label>
|
|
||||||
<location>${main.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-folder>
|
|
||||||
<label>Sources</label>
|
|
||||||
<type>java</type>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<build-folder>
|
|
||||||
<location>${build.dir}</location>
|
|
||||||
</build-folder>
|
|
||||||
</folders>
|
|
||||||
<ide-actions>
|
|
||||||
<action name="build">
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="clean">
|
|
||||||
<target>clean</target>
|
|
||||||
</action>
|
|
||||||
<action name="rebuild">
|
|
||||||
<target>clean</target>
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="run">
|
|
||||||
<target>run</target>
|
|
||||||
</action>
|
|
||||||
<action name="javadoc">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>show-javadoc</target>
|
|
||||||
</action>
|
|
||||||
<action name="debug">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
</action>
|
|
||||||
<action name="compile.single">
|
|
||||||
<script>nbproject/file-targets.xml</script>
|
|
||||||
<target>compile-selected</target>
|
|
||||||
<context>
|
|
||||||
<property>includes</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path</format>
|
|
||||||
<arity>
|
|
||||||
<separated-files>,</separated-files>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="run.single">
|
|
||||||
<target>run</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.single">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.fix">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug-fix</target>
|
|
||||||
<context>
|
|
||||||
<property>class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path-noext</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
</ide-actions>
|
|
||||||
<export>
|
|
||||||
<type>jar</type>
|
|
||||||
<location>${jar}</location>
|
|
||||||
<build-target>jar</build-target>
|
|
||||||
<clean-target>clean</clean-target>
|
|
||||||
</export>
|
|
||||||
<view>
|
|
||||||
<items>
|
|
||||||
<source-folder style="packages">
|
|
||||||
<label>Sources</label>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-file>
|
|
||||||
<location>${main.dir}/README.txt</location>
|
|
||||||
</source-file>
|
|
||||||
</items>
|
|
||||||
<context-menu>
|
|
||||||
<ide-action name="build"/>
|
|
||||||
<ide-action name="rebuild"/>
|
|
||||||
<ide-action name="clean"/>
|
|
||||||
<ide-action name="javadoc"/>
|
|
||||||
<separator/>
|
|
||||||
<ide-action name="run"/>
|
|
||||||
<ide-action name="debug"/>
|
|
||||||
</context-menu>
|
|
||||||
</view>
|
|
||||||
<subprojects/>
|
|
||||||
</general-data>
|
|
||||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
|
|
||||||
<compilation-unit>
|
|
||||||
<package-root>${src.dir}</package-root>
|
|
||||||
<classpath mode="compile">${cp}</classpath>
|
|
||||||
<classpath mode="execute">${run.cp}</classpath>
|
|
||||||
<classpath mode="boot">${nbjdk.bootclasspath}</classpath>
|
|
||||||
<built-to>${classes.dir}</built-to>
|
|
||||||
<built-to>${jar}</built-to>
|
|
||||||
<javadoc-built-to>${javadoc.dir}</javadoc-built-to>
|
|
||||||
<source-level>1.5</source-level>
|
|
||||||
</compilation-unit>
|
|
||||||
</java-data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
@ -1,22 +0,0 @@
|
|||||||
main.dir=${basedir}/../../../management/MemoryMonitor
|
|
||||||
|
|
||||||
src.dir=${main.dir}/src
|
|
||||||
|
|
||||||
build.dir=build
|
|
||||||
classes.dir=${build.dir}/classes
|
|
||||||
jar=${main.dir}/MemoryMonitor.jar
|
|
||||||
javadoc.dir=${build.dir}/javadoc
|
|
||||||
|
|
||||||
build.sysclasspath=ignore
|
|
||||||
# E.g.: cp=lib/x.jar:lib/y.jar
|
|
||||||
cp=
|
|
||||||
extra.run.cp=
|
|
||||||
|
|
||||||
main.class=MemoryMonitor
|
|
||||||
|
|
||||||
run.cp=${cp}:${classes.dir}:${extra.run.cp}
|
|
||||||
|
|
||||||
debug=true
|
|
||||||
deprecation=false
|
|
||||||
|
|
||||||
nbjdk.home=${basedir}/../../../..
|
|
@ -1,91 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="MemoryMonitor" basedir="." default="jar">
|
|
||||||
|
|
||||||
<import file="nbproject/jdk.xml"/>
|
|
||||||
|
|
||||||
<target name="-prop-init">
|
|
||||||
<property file="user.build.properties"/>
|
|
||||||
<property file="build.properties"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-init" depends="-prop-init,-jdk-init"/>
|
|
||||||
|
|
||||||
<target name="compile" depends="-init" description="Compile main sources.">
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
<copy todir="${classes.dir}">
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar" depends="compile" description="Build JAR file for main sources.">
|
|
||||||
<jar jarfile="${jar}" compress="true">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</manifest>
|
|
||||||
<fileset dir="${classes.dir}"/>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run" depends="compile" description="Run application.">
|
|
||||||
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="javadoc" depends="-init" description="Build Javadoc.">
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<javadoc destdir="${javadoc.dir}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<sourcepath>
|
|
||||||
<pathelement location="${src.dir}"/>
|
|
||||||
</sourcepath>
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean" depends="-init" description="Clean build products.">
|
|
||||||
<delete dir="${build.dir}"/>
|
|
||||||
<delete file="${jar}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile">
|
|
||||||
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="MemoryMonitor/file">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="compile-selected" depends="-init">
|
|
||||||
<fail unless="includes">Must set property 'includes'</fail>
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,98 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="jdk" basedir=".">
|
|
||||||
|
|
||||||
<target name="-jdk-preinit">
|
|
||||||
<condition property=".exe" value=".exe">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
<property name=".exe" value=""/>
|
|
||||||
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
|
|
||||||
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
|
|
||||||
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
|
|
||||||
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
|
|
||||||
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
|
|
||||||
<macrodef name="javac-presetdef">
|
|
||||||
<attribute name="javacval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javac">
|
|
||||||
<javac fork="yes" executable="@{javacval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javac-presetdef javacval="${nbjdk.javac}"/>
|
|
||||||
<macrodef name="java-presetdef">
|
|
||||||
<attribute name="javaval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="java">
|
|
||||||
<java fork="yes" jvm="@{javaval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<java-presetdef javaval="${nbjdk.java}"/>
|
|
||||||
<macrodef name="javadoc-presetdef">
|
|
||||||
<attribute name="javadocval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javadoc">
|
|
||||||
<javadoc executable="@{javadocval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
|
|
||||||
<property name="nbjdk.presetdef.basic.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
|
|
||||||
<macrodef name="nbjpdastart-presetdef">
|
|
||||||
<attribute name="bootcpval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="nbjpdastart">
|
|
||||||
<nbjpdastart>
|
|
||||||
<bootclasspath>
|
|
||||||
<path path="@{bootcpval}"/>
|
|
||||||
</bootclasspath>
|
|
||||||
</nbjpdastart>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
|
|
||||||
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="MemoryMonitor/NB">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="debug" depends="compile,-jdk-presetdef-nbjpdastart">
|
|
||||||
<nbjpdastart addressproperty="jpda.address" name="MemoryMonitor" transport="dt_socket">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbjpdastart>
|
|
||||||
<java classname="${main.class}" failonerror="true" fork="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="-Xdebug"/>
|
|
||||||
<jvmarg value="-Xnoagent"/>
|
|
||||||
<jvmarg value="-Djava.compiler=none"/>
|
|
||||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-fix" depends="-init">
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<include name="${class}.java"/>
|
|
||||||
</javac>
|
|
||||||
<nbjpdareload>
|
|
||||||
<fileset dir="${classes.dir}">
|
|
||||||
<include name="${class}.class"/>
|
|
||||||
</fileset>
|
|
||||||
</nbjpdareload>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="show-javadoc" depends="javadoc">
|
|
||||||
<nbbrowse file="${javadoc.dir}/index.html"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile" depends="compile">
|
|
||||||
<nbprofiledirect>
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbprofiledirect>
|
|
||||||
<property environment="env"/>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true" dir="${profiler.session.working.dir}" jvm="${profiler.info.jvm}">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
||||||
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
||||||
<env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
|
|
||||||
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,173 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.ant.freeform</type>
|
|
||||||
<configuration>
|
|
||||||
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
|
|
||||||
<name>MemoryMonitor</name>
|
|
||||||
<properties>
|
|
||||||
<property-file>user.build.properties</property-file>
|
|
||||||
<property-file>build.properties</property-file>
|
|
||||||
<property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar</property>
|
|
||||||
</properties>
|
|
||||||
<folders>
|
|
||||||
<source-folder>
|
|
||||||
<label>JDK Demo</label>
|
|
||||||
<location>${main.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-folder>
|
|
||||||
<label>Sources</label>
|
|
||||||
<type>java</type>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<build-folder>
|
|
||||||
<location>${build.dir}</location>
|
|
||||||
</build-folder>
|
|
||||||
</folders>
|
|
||||||
<ide-actions>
|
|
||||||
<action name="build">
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="clean">
|
|
||||||
<target>clean</target>
|
|
||||||
</action>
|
|
||||||
<action name="rebuild">
|
|
||||||
<target>clean</target>
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="run">
|
|
||||||
<target>run</target>
|
|
||||||
</action>
|
|
||||||
<action name="javadoc">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>show-javadoc</target>
|
|
||||||
</action>
|
|
||||||
<action name="debug">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
</action>
|
|
||||||
<action name="compile.single">
|
|
||||||
<script>nbproject/file-targets.xml</script>
|
|
||||||
<target>compile-selected</target>
|
|
||||||
<context>
|
|
||||||
<property>includes</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path</format>
|
|
||||||
<arity>
|
|
||||||
<separated-files>,</separated-files>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="run.single">
|
|
||||||
<target>run</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.single">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.fix">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug-fix</target>
|
|
||||||
<context>
|
|
||||||
<property>class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path-noext</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
</ide-actions>
|
|
||||||
<export>
|
|
||||||
<type>jar</type>
|
|
||||||
<location>${jar}</location>
|
|
||||||
<build-target>jar</build-target>
|
|
||||||
<clean-target>clean</clean-target>
|
|
||||||
</export>
|
|
||||||
<view>
|
|
||||||
<items>
|
|
||||||
<source-folder style="packages">
|
|
||||||
<label>Sources</label>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-file>
|
|
||||||
<location>${main.dir}/README.txt</location>
|
|
||||||
</source-file>
|
|
||||||
</items>
|
|
||||||
<context-menu>
|
|
||||||
<ide-action name="build"/>
|
|
||||||
<ide-action name="rebuild"/>
|
|
||||||
<ide-action name="clean"/>
|
|
||||||
<ide-action name="javadoc"/>
|
|
||||||
<separator/>
|
|
||||||
<ide-action name="run"/>
|
|
||||||
<ide-action name="debug"/>
|
|
||||||
</context-menu>
|
|
||||||
</view>
|
|
||||||
<subprojects/>
|
|
||||||
</general-data>
|
|
||||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
|
|
||||||
<compilation-unit>
|
|
||||||
<package-root>${src.dir}</package-root>
|
|
||||||
<classpath mode="compile">${cp}</classpath>
|
|
||||||
<classpath mode="execute">${run.cp}</classpath>
|
|
||||||
<classpath mode="boot">${nbjdk.bootclasspath}</classpath>
|
|
||||||
<built-to>${classes.dir}</built-to>
|
|
||||||
<built-to>${jar}</built-to>
|
|
||||||
<javadoc-built-to>${javadoc.dir}</javadoc-built-to>
|
|
||||||
<source-level>1.5</source-level>
|
|
||||||
</compilation-unit>
|
|
||||||
</java-data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
@ -1,22 +0,0 @@
|
|||||||
main.dir=${basedir}/../../../management/VerboseGC
|
|
||||||
|
|
||||||
src.dir=${main.dir}/src
|
|
||||||
|
|
||||||
build.dir=build
|
|
||||||
classes.dir=${build.dir}/classes
|
|
||||||
jar=${main.dir}/VerboseGC.jar
|
|
||||||
javadoc.dir=${build.dir}/javadoc
|
|
||||||
|
|
||||||
build.sysclasspath=ignore
|
|
||||||
# E.g.: cp=lib/x.jar:lib/y.jar
|
|
||||||
cp=
|
|
||||||
extra.run.cp=
|
|
||||||
|
|
||||||
main.class=VerboseGC
|
|
||||||
|
|
||||||
run.cp=${cp}:${classes.dir}:${extra.run.cp}
|
|
||||||
|
|
||||||
debug=true
|
|
||||||
deprecation=false
|
|
||||||
|
|
||||||
nbjdk.home=${basedir}/../../../..
|
|
@ -1,91 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="VerboseGC" basedir="." default="jar">
|
|
||||||
|
|
||||||
<import file="nbproject/jdk.xml"/>
|
|
||||||
|
|
||||||
<target name="-prop-init">
|
|
||||||
<property file="user.build.properties"/>
|
|
||||||
<property file="build.properties"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-init" depends="-prop-init,-jdk-init"/>
|
|
||||||
|
|
||||||
<target name="compile" depends="-init" description="Compile main sources.">
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
<copy todir="${classes.dir}">
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar" depends="compile" description="Build JAR file for main sources.">
|
|
||||||
<jar jarfile="${jar}" compress="true">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</manifest>
|
|
||||||
<fileset dir="${classes.dir}"/>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run" depends="compile" description="Run application.">
|
|
||||||
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="javadoc" depends="-init" description="Build Javadoc.">
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<javadoc destdir="${javadoc.dir}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<sourcepath>
|
|
||||||
<pathelement location="${src.dir}"/>
|
|
||||||
</sourcepath>
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean" depends="-init" description="Clean build products.">
|
|
||||||
<delete dir="${build.dir}"/>
|
|
||||||
<delete file="${jar}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile">
|
|
||||||
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="VerboseGC/file">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="compile-selected" depends="-init">
|
|
||||||
<fail unless="includes">Must set property 'includes'</fail>
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,98 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="jdk" basedir=".">
|
|
||||||
|
|
||||||
<target name="-jdk-preinit">
|
|
||||||
<condition property=".exe" value=".exe">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
<property name=".exe" value=""/>
|
|
||||||
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
|
|
||||||
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
|
|
||||||
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
|
|
||||||
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
|
|
||||||
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
|
|
||||||
<macrodef name="javac-presetdef">
|
|
||||||
<attribute name="javacval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javac">
|
|
||||||
<javac fork="yes" executable="@{javacval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javac-presetdef javacval="${nbjdk.javac}"/>
|
|
||||||
<macrodef name="java-presetdef">
|
|
||||||
<attribute name="javaval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="java">
|
|
||||||
<java fork="yes" jvm="@{javaval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<java-presetdef javaval="${nbjdk.java}"/>
|
|
||||||
<macrodef name="javadoc-presetdef">
|
|
||||||
<attribute name="javadocval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javadoc">
|
|
||||||
<javadoc executable="@{javadocval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
|
|
||||||
<property name="nbjdk.presetdef.basic.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
|
|
||||||
<macrodef name="nbjpdastart-presetdef">
|
|
||||||
<attribute name="bootcpval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="nbjpdastart">
|
|
||||||
<nbjpdastart>
|
|
||||||
<bootclasspath>
|
|
||||||
<path path="@{bootcpval}"/>
|
|
||||||
</bootclasspath>
|
|
||||||
</nbjpdastart>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
|
|
||||||
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="VerboseGC/NB">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="debug" depends="compile,-jdk-presetdef-nbjpdastart">
|
|
||||||
<nbjpdastart addressproperty="jpda.address" name="VerboseGC" transport="dt_socket">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbjpdastart>
|
|
||||||
<java classname="${main.class}" failonerror="true" fork="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="-Xdebug"/>
|
|
||||||
<jvmarg value="-Xnoagent"/>
|
|
||||||
<jvmarg value="-Djava.compiler=none"/>
|
|
||||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-fix" depends="-init">
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<include name="${class}.java"/>
|
|
||||||
</javac>
|
|
||||||
<nbjpdareload>
|
|
||||||
<fileset dir="${classes.dir}">
|
|
||||||
<include name="${class}.class"/>
|
|
||||||
</fileset>
|
|
||||||
</nbjpdareload>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="show-javadoc" depends="javadoc">
|
|
||||||
<nbbrowse file="${javadoc.dir}/index.html"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile" depends="compile">
|
|
||||||
<nbprofiledirect>
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbprofiledirect>
|
|
||||||
<property environment="env"/>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true" dir="${profiler.session.working.dir}" jvm="${profiler.info.jvm}">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
||||||
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
||||||
<env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
|
|
||||||
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,173 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.ant.freeform</type>
|
|
||||||
<configuration>
|
|
||||||
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
|
|
||||||
<name>VerboseGC</name>
|
|
||||||
<properties>
|
|
||||||
<property-file>user.build.properties</property-file>
|
|
||||||
<property-file>build.properties</property-file>
|
|
||||||
<property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar</property>
|
|
||||||
</properties>
|
|
||||||
<folders>
|
|
||||||
<source-folder>
|
|
||||||
<label>JDK Demo</label>
|
|
||||||
<location>${main.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-folder>
|
|
||||||
<label>Sources</label>
|
|
||||||
<type>java</type>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<build-folder>
|
|
||||||
<location>${build.dir}</location>
|
|
||||||
</build-folder>
|
|
||||||
</folders>
|
|
||||||
<ide-actions>
|
|
||||||
<action name="build">
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="clean">
|
|
||||||
<target>clean</target>
|
|
||||||
</action>
|
|
||||||
<action name="rebuild">
|
|
||||||
<target>clean</target>
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="run">
|
|
||||||
<target>run</target>
|
|
||||||
</action>
|
|
||||||
<action name="javadoc">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>show-javadoc</target>
|
|
||||||
</action>
|
|
||||||
<action name="debug">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
</action>
|
|
||||||
<action name="compile.single">
|
|
||||||
<script>nbproject/file-targets.xml</script>
|
|
||||||
<target>compile-selected</target>
|
|
||||||
<context>
|
|
||||||
<property>includes</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path</format>
|
|
||||||
<arity>
|
|
||||||
<separated-files>,</separated-files>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="run.single">
|
|
||||||
<target>run</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.single">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug</target>
|
|
||||||
<context>
|
|
||||||
<property>main.class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>java-name</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.fix">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug-fix</target>
|
|
||||||
<context>
|
|
||||||
<property>class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path-noext</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
</ide-actions>
|
|
||||||
<export>
|
|
||||||
<type>jar</type>
|
|
||||||
<location>${jar}</location>
|
|
||||||
<build-target>jar</build-target>
|
|
||||||
<clean-target>clean</clean-target>
|
|
||||||
</export>
|
|
||||||
<view>
|
|
||||||
<items>
|
|
||||||
<source-folder style="packages">
|
|
||||||
<label>Sources</label>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-file>
|
|
||||||
<location>${main.dir}/README.txt</location>
|
|
||||||
</source-file>
|
|
||||||
</items>
|
|
||||||
<context-menu>
|
|
||||||
<ide-action name="build"/>
|
|
||||||
<ide-action name="rebuild"/>
|
|
||||||
<ide-action name="clean"/>
|
|
||||||
<ide-action name="javadoc"/>
|
|
||||||
<separator/>
|
|
||||||
<ide-action name="run"/>
|
|
||||||
<ide-action name="debug"/>
|
|
||||||
</context-menu>
|
|
||||||
</view>
|
|
||||||
<subprojects/>
|
|
||||||
</general-data>
|
|
||||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
|
|
||||||
<compilation-unit>
|
|
||||||
<package-root>${src.dir}</package-root>
|
|
||||||
<classpath mode="compile">${cp}</classpath>
|
|
||||||
<classpath mode="execute">${run.cp}</classpath>
|
|
||||||
<classpath mode="boot">${nbjdk.bootclasspath}</classpath>
|
|
||||||
<built-to>${classes.dir}</built-to>
|
|
||||||
<built-to>${jar}</built-to>
|
|
||||||
<javadoc-built-to>${javadoc.dir}</javadoc-built-to>
|
|
||||||
<source-level>1.5</source-level>
|
|
||||||
</compilation-unit>
|
|
||||||
</java-data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
@ -1,23 +0,0 @@
|
|||||||
main.dir=${basedir}/../../../scripting/jconsole-plugin
|
|
||||||
|
|
||||||
src.dir=${main.dir}/src
|
|
||||||
|
|
||||||
build.dir=build
|
|
||||||
classes.dir=${build.dir}/classes
|
|
||||||
jar=${main.dir}/jconsole-plugin.jar
|
|
||||||
javadoc.dir=${build.dir}/javadoc
|
|
||||||
|
|
||||||
build.sysclasspath=ignore
|
|
||||||
|
|
||||||
nbjdk.home=${basedir}/../../../..
|
|
||||||
|
|
||||||
# E.g.: cp=lib/x.jar:lib/y.jar
|
|
||||||
cp=${nbjdk.home}/lib/jconsole.jar
|
|
||||||
extra.run.cp=
|
|
||||||
|
|
||||||
main.class=jconsole-plugin
|
|
||||||
|
|
||||||
run.cp=${cp}:${classes.dir}:${extra.run.cp}
|
|
||||||
|
|
||||||
debug=true
|
|
||||||
deprecation=false
|
|
@ -1,98 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="jconsole-plugin" basedir="." default="jar">
|
|
||||||
|
|
||||||
<import file="nbproject/jdk.xml"/>
|
|
||||||
|
|
||||||
<target name="-prop-init">
|
|
||||||
<property file="user.build.properties"/>
|
|
||||||
<property file="build.properties"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-init" depends="-prop-init,-jdk-init"/>
|
|
||||||
|
|
||||||
<target name="compile" depends="-init" description="Compile main sources.">
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
<copy todir="${classes.dir}">
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="jar" depends="compile" description="Build JAR file for main sources.">
|
|
||||||
<jar jarfile="${jar}" compress="true">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main.class}"/>
|
|
||||||
</manifest>
|
|
||||||
<fileset dir="${classes.dir}"/>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run" depends="compile" description="Run application.">
|
|
||||||
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="run-jconsole" depends="jar" description="Run JConsole.">
|
|
||||||
<exec executable="${nbjdk.jconsole}">
|
|
||||||
<arg value="-pluginpath"/>
|
|
||||||
<arg file="${jar}"/>
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="javadoc" depends="-init" description="Build Javadoc.">
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<javadoc destdir="${javadoc.dir}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<sourcepath>
|
|
||||||
<pathelement location="${src.dir}"/>
|
|
||||||
</sourcepath>
|
|
||||||
<fileset dir="${src.dir}"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean" depends="-init" description="Clean build products.">
|
|
||||||
<delete dir="${build.dir}"/>
|
|
||||||
<delete file="${jar}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile">
|
|
||||||
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,46 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="jconsole-plugin/file">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="compile-selected" depends="-init">
|
|
||||||
<fail unless="includes">Must set property 'includes'</fail>
|
|
||||||
<mkdir dir="${classes.dir}"/>
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,99 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="jdk" basedir=".">
|
|
||||||
|
|
||||||
<target name="-jdk-preinit">
|
|
||||||
<condition property=".exe" value=".exe">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
<property name=".exe" value=""/>
|
|
||||||
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
|
|
||||||
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
|
|
||||||
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
|
|
||||||
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
|
|
||||||
<property name="nbjdk.jconsole" value="${nbjdk.home}/bin/jconsole${.exe}"/>
|
|
||||||
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
|
|
||||||
<macrodef name="javac-presetdef">
|
|
||||||
<attribute name="javacval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javac">
|
|
||||||
<javac fork="yes" executable="@{javacval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javac-presetdef javacval="${nbjdk.javac}"/>
|
|
||||||
<macrodef name="java-presetdef">
|
|
||||||
<attribute name="javaval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="java">
|
|
||||||
<java fork="yes" jvm="@{javaval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<java-presetdef javaval="${nbjdk.java}"/>
|
|
||||||
<macrodef name="javadoc-presetdef">
|
|
||||||
<attribute name="javadocval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="javadoc">
|
|
||||||
<javadoc executable="@{javadocval}"/>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
|
|
||||||
<property name="nbjdk.presetdef.basic.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
|
|
||||||
<macrodef name="nbjpdastart-presetdef">
|
|
||||||
<attribute name="bootcpval"/>
|
|
||||||
<sequential>
|
|
||||||
<presetdef name="nbjpdastart">
|
|
||||||
<nbjpdastart>
|
|
||||||
<bootclasspath>
|
|
||||||
<path path="@{bootcpval}"/>
|
|
||||||
</bootclasspath>
|
|
||||||
</nbjpdastart>
|
|
||||||
</presetdef>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
|
|
||||||
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project basedir=".." name="jconsole-plugin/NB">
|
|
||||||
|
|
||||||
<import file="../build.xml"/>
|
|
||||||
|
|
||||||
<target name="debug" depends="compile,-jdk-presetdef-nbjpdastart">
|
|
||||||
<nbjpdastart addressproperty="jpda.address" name="jconsole-plugin" transport="dt_socket">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbjpdastart>
|
|
||||||
<java classname="${main.class}" failonerror="true" fork="true">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="-Xdebug"/>
|
|
||||||
<jvmarg value="-Xnoagent"/>
|
|
||||||
<jvmarg value="-Djava.compiler=none"/>
|
|
||||||
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-fix" depends="-init">
|
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="${deprecation}">
|
|
||||||
<classpath path="${cp}"/>
|
|
||||||
<include name="${class}.java"/>
|
|
||||||
</javac>
|
|
||||||
<nbjpdareload>
|
|
||||||
<fileset dir="${classes.dir}">
|
|
||||||
<include name="${class}.class"/>
|
|
||||||
</fileset>
|
|
||||||
</nbjpdareload>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="show-javadoc" depends="javadoc">
|
|
||||||
<nbbrowse file="${javadoc.dir}/index.html"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="profile" depends="compile">
|
|
||||||
<nbprofiledirect>
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
</nbprofiledirect>
|
|
||||||
<property environment="env"/>
|
|
||||||
<java classname="${main.class}" fork="true" failonerror="true" dir="${profiler.session.working.dir}" jvm="${profiler.info.jvm}">
|
|
||||||
<classpath path="${run.cp}"/>
|
|
||||||
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
|
||||||
<jvmarg line="${profiler.info.jvmargs}"/>
|
|
||||||
<env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
|
|
||||||
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,143 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
- Neither the name of Oracle nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.ant.freeform</type>
|
|
||||||
<configuration>
|
|
||||||
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
|
|
||||||
<name>jconsole-plugin</name>
|
|
||||||
<properties>
|
|
||||||
<property-file>user.build.properties</property-file>
|
|
||||||
<property-file>build.properties</property-file>
|
|
||||||
<property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar</property>
|
|
||||||
</properties>
|
|
||||||
<folders>
|
|
||||||
<source-folder>
|
|
||||||
<label>JDK Demo</label>
|
|
||||||
<location>${main.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-folder>
|
|
||||||
<label>Sources</label>
|
|
||||||
<type>java</type>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<build-folder>
|
|
||||||
<location>${build.dir}</location>
|
|
||||||
</build-folder>
|
|
||||||
</folders>
|
|
||||||
<ide-actions>
|
|
||||||
<action name="build">
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="clean">
|
|
||||||
<target>clean</target>
|
|
||||||
</action>
|
|
||||||
<action name="rebuild">
|
|
||||||
<target>clean</target>
|
|
||||||
<target>jar</target>
|
|
||||||
</action>
|
|
||||||
<action name="javadoc">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>show-javadoc</target>
|
|
||||||
</action>
|
|
||||||
<action name="compile.single">
|
|
||||||
<script>nbproject/file-targets.xml</script>
|
|
||||||
<target>compile-selected</target>
|
|
||||||
<context>
|
|
||||||
<property>includes</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path</format>
|
|
||||||
<arity>
|
|
||||||
<separated-files>,</separated-files>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
<action name="debug.fix">
|
|
||||||
<script>nbproject/netbeans-targets.xml</script>
|
|
||||||
<target>debug-fix</target>
|
|
||||||
<context>
|
|
||||||
<property>class</property>
|
|
||||||
<folder>${src.dir}</folder>
|
|
||||||
<pattern>\.java$</pattern>
|
|
||||||
<format>relative-path-noext</format>
|
|
||||||
<arity>
|
|
||||||
<one-file-only/>
|
|
||||||
</arity>
|
|
||||||
</context>
|
|
||||||
</action>
|
|
||||||
</ide-actions>
|
|
||||||
<export>
|
|
||||||
<type>jar</type>
|
|
||||||
<location>${jar}</location>
|
|
||||||
<build-target>jar</build-target>
|
|
||||||
<clean-target>clean</clean-target>
|
|
||||||
</export>
|
|
||||||
<view>
|
|
||||||
<items>
|
|
||||||
<source-folder style="packages">
|
|
||||||
<label>Sources</label>
|
|
||||||
<location>${src.dir}</location>
|
|
||||||
</source-folder>
|
|
||||||
<source-file>
|
|
||||||
<location>${main.dir}/README.txt</location>
|
|
||||||
</source-file>
|
|
||||||
</items>
|
|
||||||
<context-menu>
|
|
||||||
<ide-action name="build"/>
|
|
||||||
<ide-action name="rebuild"/>
|
|
||||||
<ide-action name="clean"/>
|
|
||||||
<ide-action name="javadoc"/>
|
|
||||||
<separator/>
|
|
||||||
<action>
|
|
||||||
<label>Run JConsole</label>
|
|
||||||
<target>run-jconsole</target>
|
|
||||||
</action>
|
|
||||||
</context-menu>
|
|
||||||
</view>
|
|
||||||
<subprojects/>
|
|
||||||
</general-data>
|
|
||||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
|
|
||||||
<compilation-unit>
|
|
||||||
<package-root>${src.dir}</package-root>
|
|
||||||
<classpath mode="compile">${cp}</classpath>
|
|
||||||
<classpath mode="execute">${run.cp}</classpath>
|
|
||||||
<classpath mode="boot">${nbjdk.bootclasspath}</classpath>
|
|
||||||
<built-to>${classes.dir}</built-to>
|
|
||||||
<built-to>${jar}</built-to>
|
|
||||||
<javadoc-built-to>${javadoc.dir}</javadoc-built-to>
|
|
||||||
<source-level>1.5</source-level>
|
|
||||||
</compilation-unit>
|
|
||||||
</java-data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
Loading…
x
Reference in New Issue
Block a user