131N/A<?xml version="1.0" encoding="UTF-8"?>
131N/A<!--
131N/A*** GENERATED FROM project.xml - DO NOT EDIT ***
131N/A*** EDIT /build.xml INSTEAD ***
131N/A
131N/AFor the purpose of easier reading the script
131N/Ais divided into following sections:
131N/A
131N/A - initialization
131N/A - profiling
131N/A - applet profiling
131N/A
131N/A-->
131N/A<project name="-profiler-impl" default="profile" basedir="..">
131N/A <target name="default" depends="profile" description="Build and profile the project."/>
131N/A <!--
131N/A ======================
131N/A INITIALIZATION SECTION
131N/A ======================
131N/A -->
131N/A <target name="profile-init" depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check"/>
131N/A <target name="-profile-pre-init">
131N/A <!-- Empty placeholder for easier customization. -->
131N/A <!-- You can override this target in the /build.xml file. -->
131N/A </target>
131N/A <target name="-profile-post-init">
131N/A <!-- Empty placeholder for easier customization. -->
131N/A <!-- You can override this target in the /build.xml file. -->
131N/A </target>
131N/A <target name="-profile-init-macrodef-profile">
131N/A <macrodef name="resolve">
131N/A <attribute name="name"/>
131N/A <attribute name="value"/>
131N/A <sequential>
131N/A <property name="@{name}" value="${env.@{value}}"/>
131N/A </sequential>
131N/A </macrodef>
131N/A <macrodef name="profile">
131N/A <attribute name="classname" default="${main.class}"/>
131N/A <element name="customize" optional="true"/>
131N/A <sequential>
131N/A <property environment="env"/>
131N/A <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
131N/A <java fork="true" classname="@{classname}" dir="${profiler.info.dir}" jvm="${profiler.info.jvm}">
131N/A <jvmarg value="${profiler.info.jvmargs.agent}"/>
131N/A <jvmarg line="${profiler.info.jvmargs}"/>
131N/A <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
131N/A <arg line="${application.args}"/>
131N/A <classpath>
131N/A <path path="${run.classpath}"/>
131N/A </classpath>
131N/A <syspropertyset>
131N/A <propertyref prefix="run-sys-prop."/>
131N/A <mapper type="glob" from="run-sys-prop.*" to="*"/>
131N/A </syspropertyset>
131N/A <customize/>
131N/A </java>
131N/A </sequential>
131N/A </macrodef>
131N/A </target>
131N/A <target name="-profile-init-check" depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile">
131N/A <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
131N/A <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
131N/A </target>
131N/A <!--
131N/A =================
131N/A PROFILING SECTION
131N/A =================
131N/A -->
131N/A <target name="profile" if="netbeans.home" depends="profile-init,compile" description="Profile a project in the IDE.">
131N/A <nbprofiledirect>
131N/A <classpath>
131N/A <path path="${run.classpath}"/>
131N/A </classpath>
131N/A </nbprofiledirect>
131N/A <profile/>
131N/A </target>
131N/A <target name="profile-single" if="netbeans.home" depends="profile-init,compile-single" description="Profile a selected class in the IDE.">
131N/A <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
131N/A <nbprofiledirect>
131N/A <classpath>
131N/A <path path="${run.classpath}"/>
131N/A </classpath>
131N/A </nbprofiledirect>
131N/A <profile classname="${profile.class}"/>
131N/A </target>
131N/A <!--
131N/A =========================
131N/A APPLET PROFILING SECTION
131N/A =========================
131N/A -->
131N/A <target name="profile-applet" if="netbeans.home" depends="profile-init,compile-single">
131N/A <nbprofiledirect>
131N/A <classpath>
131N/A <path path="${run.classpath}"/>
131N/A </classpath>
131N/A </nbprofiledirect>
131N/A <profile classname="sun.applet.AppletViewer">
131N/A <customize>
131N/A <arg value="${applet.url}"/>
131N/A </customize>
131N/A </profile>
131N/A </target>
131N/A <!--
131N/A =========================
131N/A TESTS PROFILING SECTION
131N/A =========================
131N/A -->
131N/A <target name="profile-test-single" if="netbeans.home" depends="profile-init,compile-test-single">
131N/A <nbprofiledirect>
131N/A <classpath>
131N/A <path path="${run.test.classpath}"/>
131N/A </classpath>
131N/A </nbprofiledirect>
131N/A <junit showoutput="true" fork="true" dir="${profiler.info.dir}" jvm="${profiler.info.jvm}" failureproperty="tests.failed" errorproperty="tests.failed">
131N/A <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
131N/A <jvmarg value="${profiler.info.jvmargs.agent}"/>
131N/A <jvmarg line="${profiler.info.jvmargs}"/>
131N/A <test name="${profile.class}"/>
131N/A <classpath>
131N/A <path path="${run.test.classpath}"/>
131N/A </classpath>
131N/A <syspropertyset>
131N/A <propertyref prefix="test-sys-prop."/>
131N/A <mapper type="glob" from="test-sys-prop.*" to="*"/>
131N/A </syspropertyset>
131N/A <formatter type="brief" usefile="false"/>
131N/A <formatter type="xml"/>
131N/A </junit>
131N/A </target>
131N/A</project>