Lines 124-127
Link Here
|
124 |
</antcall> |
124 |
</antcall> |
125 |
</target> |
125 |
</target> |
126 |
|
126 |
|
|
|
127 |
|
128 |
<!-- |
129 |
<target name="-profile-init-macrodef-profile"> |
130 |
<macrodef name="resolve"> |
131 |
<attribute name="name"/> |
132 |
<attribute name="value"/> |
133 |
<sequential> |
134 |
<property value="${env.@{value}}" name="@{name}"/> |
135 |
</sequential> |
136 |
</macrodef> |
137 |
<macrodef name="profile"> |
138 |
<attribute name="classname" default="${main.class}"/> |
139 |
<element name="customize" optional="true"/> |
140 |
<sequential> |
141 |
<property environment="env"/> |
142 |
<resolve value="${profiler.info.pathvar}" name="profiler.current.path"/> |
143 |
<java jvm="${profiler.info.jvm}" dir="${profiler.info.dir}" classname="@{classname}" fork="true"> |
144 |
<jvmarg value="${profiler.info.jvmargs.agent}"/> |
145 |
<jvmarg line="${profiler.info.jvmargs}"/> |
146 |
<env path="${profiler.info.agentpath}:${profiler.current.path}" key="${profiler.info.pathvar}"/> |
147 |
<arg line="${application.args}"/> |
148 |
<classpath> |
149 |
<path path="${run.classpath}"/> |
150 |
</classpath> |
151 |
<syspropertyset> |
152 |
<propertyref prefix="run-sys-prop."/> |
153 |
<mapper to="*" from="run-sys-prop.*" type="glob"/> |
154 |
</syspropertyset> |
155 |
<customize/> |
156 |
</java> |
157 |
</sequential> |
158 |
</macrodef> |
159 |
</target> |
160 |
|
161 |
<target name="-profile-init-check" > |
162 |
<fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> |
163 |
<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> |
164 |
</target> |
165 |
--> |
166 |
<!-- |
167 |
================= |
168 |
PROFILING SECTION |
169 |
================= |
170 |
--> |
171 |
<target name="profile" if="netbeans.home" description="Profile a project in the IDE."> |
172 |
<nbprofiledirect> |
173 |
<classpath> |
174 |
<fileset dir="${netbeans.dest.dir}"> |
175 |
<include name="**/*.jar"/> |
176 |
</fileset> |
177 |
<fileset dir="${cluster}"> |
178 |
<include name="**/*.jar"/> |
179 |
</fileset> |
180 |
</classpath> |
181 |
</nbprofiledirect> |
182 |
|
183 |
<echo message="value1: ${profiler.info.agentpath}" /> |
184 |
<echo message="value2: ${profiler.current.path}" /> |
185 |
<echo message="value2: ${profiler.info.jvmargs.agent}" /> |
186 |
<echo message="key 3: ${profiler.info.pathvar}" /> |
187 |
|
188 |
<antcall target="run"> |
189 |
<!--<env path="${profiler.info.agentpath}:${profiler.current.path}" key="${profiler.info.pathvar}"/>--> |
190 |
<!-- -J${profiler.info.jvmargs.agent} |
191 |
${profiler.info.jvmargs.agent} |
192 |
|
193 |
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/> |
194 |
|
195 |
--> |
196 |
<param name="run.args" value="-J${profiler.info.jvmargs.agent}"/> |
197 |
</antcall> |
198 |
</target> |
199 |
|
127 |
</project> |
200 |
</project> |