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