1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
14 <project name="-profiler-impl" default="profile" basedir="..">
15 <target name="default" depends="profile" description="Build and profile the project."/>
17 ======================
18 INITIALIZATION SECTION
19 ======================
21 <target name="profile-init" depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check"/>
22 <target name="-profile-pre-init">
23 <!-- Empty placeholder for easier customization. -->
24 <!-- You can override this target in the ../build.xml file. -->
26 <target name="-profile-post-init">
27 <!-- Empty placeholder for easier customization. -->
28 <!-- You can override this target in the ../build.xml file. -->
30 <target name="-profile-init-macrodef-profile">
31 <macrodef name="resolve">
32 <attribute name="name"/>
33 <attribute name="value"/>
35 <property name="@{name}" value="${env.@{value}}"/>
38 <macrodef name="profile">
39 <attribute name="classname" default="${main.class}"/>
40 <element name="customize" optional="true"/>
42 <property environment="env"/>
43 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
44 <java fork="true" classname="@{classname}" dir="${profiler.info.dir}" jvm="${profiler.info.jvm}">
45 <jvmarg value="${profiler.info.jvmargs.agent}"/>
46 <jvmarg line="${profiler.info.jvmargs}"/>
47 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
48 <arg line="${application.args}"/>
50 <path path="${run.classpath}"/>
53 <propertyref prefix="run-sys-prop."/>
54 <mapper type="glob" from="run-sys-prop.*" to="*"/>
61 <target name="-profile-init-check" depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile">
62 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
63 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
70 <target name="profile" if="netbeans.home" depends="profile-init,compile" description="Profile a project in the IDE.">
73 <path path="${run.classpath}"/>
78 <target name="profile-single" if="netbeans.home" depends="profile-init,compile-single" description="Profile a selected class in the IDE.">
79 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
82 <path path="${run.classpath}"/>
85 <profile classname="${profile.class}"/>
88 =========================
89 APPLET PROFILING SECTION
90 =========================
92 <target name="profile-applet" if="netbeans.home" depends="profile-init,compile-single">
95 <path path="${run.classpath}"/>
98 <profile classname="sun.applet.AppletViewer">
100 <arg value="${applet.url}"/>
105 =========================
106 TESTS PROFILING SECTION
107 =========================
109 <target name="profile-test-single" if="netbeans.home" depends="profile-init,compile-test-single">
112 <path path="${run.test.classpath}"/>
115 <junit showoutput="true" fork="true" dir="${profiler.info.dir}" jvm="${profiler.info.jvm}" failureproperty="tests.failed" errorproperty="tests.failed">
116 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
117 <jvmarg value="${profiler.info.jvmargs.agent}"/>
118 <jvmarg line="${profiler.info.jvmargs}"/>
119 <test name="${profile.class}"/>
121 <path path="${run.test.classpath}"/>
124 <propertyref prefix="test-sys-prop."/>
125 <mapper type="glob" from="test-sys-prop.*" to="*"/>
127 <formatter type="brief" usefile="false"/>
128 <formatter type="xml"/>