a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye*** GENERATED FROM project.xml - DO NOT EDIT ***
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye*** EDIT /build.xml INSTEAD ***
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeFor the purpose of easier reading the script
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeis divided into following sections:
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye - initialization
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye - applet profiling
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 INITIALIZATION SECTION
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 <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property name="@{name}" value="${env.@{value}}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute name="classname" default="${main.class}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
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 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <mapper type="glob" from="run-sys-prop.*" to="*"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <customize/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
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 =================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye PROFILING SECTION
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 </nbprofiledirect>
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 </nbprofiledirect>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye APPLET PROFILING SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target name="profile-applet" if="netbeans.home" depends="profile-init,compile-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <nbprofiledirect>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </nbprofiledirect>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </customize>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye TESTS PROFILING SECTION
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 </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 </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <mapper type="glob" from="test-sys-prop.*" to="*"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </syspropertyset>