Lines 832-837
Link Here
|
832 |
<property name="ap.cmd.line.internal" value=""/> |
832 |
<property name="ap.cmd.line.internal" value=""/> |
833 |
</target> |
833 |
</target> |
834 |
|
834 |
|
|
|
835 |
<target name="profile-init" depends="-profile-pre-init, init, -profile-post-init, -profile-init-check"/> |
836 |
|
837 |
<target name="-profile-pre-init"> |
838 |
<xsl:comment> Empty placeholder for easier customization. </xsl:comment> |
839 |
<xsl:comment> You can override this target in the ../build.xml file. </xsl:comment> |
840 |
</target> |
841 |
|
842 |
<target name="-profile-post-init"> |
843 |
<xsl:comment> Empty placeholder for easier customization. </xsl:comment> |
844 |
<xsl:comment> You can override this target in the ../build.xml file. </xsl:comment> |
845 |
</target> |
846 |
<target name="-profile-init-check"> |
847 |
<xsl:attribute name="depends">-profile-pre-init, init, -profile-post-init</xsl:attribute> |
848 |
<fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> |
849 |
<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> |
850 |
</target> |
851 |
|
835 |
|
852 |
|
836 |
<target name="init"> |
853 |
<target name="init"> |
837 |
<xsl:attribute name="depends">-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline</xsl:attribute> |
854 |
<xsl:attribute name="depends">-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline</xsl:attribute> |
Lines 1332-1338
Link Here
|
1332 |
<xsl:attribute name="if">netbeans.home</xsl:attribute> |
1349 |
<xsl:attribute name="if">netbeans.home</xsl:attribute> |
1333 |
<xsl:attribute name="depends">init,-pre-debug-fix,-do-debug-fix</xsl:attribute> |
1350 |
<xsl:attribute name="depends">init,-pre-debug-fix,-do-debug-fix</xsl:attribute> |
1334 |
</target> |
1351 |
</target> |
1335 |
|
1352 |
|
|
|
1353 |
<xsl:comment> |
1354 |
================= |
1355 |
PROFILING SECTION |
1356 |
================= |
1357 |
</xsl:comment> |
1358 |
|
1359 |
<target name="profile"> |
1360 |
<xsl:attribute name="description">Profile a J2EE project in the IDE.</xsl:attribute> |
1361 |
<condition> |
1362 |
<xsl:attribute name="property">profiler.startserver.target</xsl:attribute> |
1363 |
<xsl:attribute name="value">start-profiled-server-extraargs</xsl:attribute> |
1364 |
<xsl:attribute name="else">start-profiled-server</xsl:attribute> |
1365 |
<isset> |
1366 |
<xsl:attribute name="property">profiler.info.jvmargs.extra</xsl:attribute> |
1367 |
</isset> |
1368 |
</condition> |
1369 |
<antcall> |
1370 |
<xsl:attribute name="target">${profiler.startserver.target}</xsl:attribute> |
1371 |
</antcall> |
1372 |
<antcall> |
1373 |
<xsl:attribute name="target">run</xsl:attribute> |
1374 |
</antcall> |
1375 |
<antcall> |
1376 |
<xsl:attribute name="target">start-loadgen</xsl:attribute> |
1377 |
</antcall> |
1378 |
</target> |
1379 |
|
1380 |
<target name="start-profiled-server"> |
1381 |
<nbstartprofiledserver> |
1382 |
<xsl:attribute name="forceRestart">${profiler.j2ee.serverForceRestart}</xsl:attribute> |
1383 |
<xsl:attribute name="startupTimeout">${profiler.j2ee.serverStartupTimeout}</xsl:attribute> |
1384 |
<xsl:attribute name="javaPlatform">${profiler.info.javaPlatform}</xsl:attribute> |
1385 |
<jvmarg> |
1386 |
<xsl:attribute name="value">${profiler.info.jvmargs.agent}</xsl:attribute> |
1387 |
</jvmarg> |
1388 |
<jvmarg> |
1389 |
<xsl:attribute name="value">${profiler.j2ee.agentID}</xsl:attribute> |
1390 |
</jvmarg> |
1391 |
</nbstartprofiledserver> |
1392 |
</target> |
1393 |
|
1394 |
<target name="start-profiled-server-extraargs"> |
1395 |
<nbstartprofiledserver> |
1396 |
<xsl:attribute name="forceRestart">${profiler.j2ee.serverForceRestart}</xsl:attribute> |
1397 |
<xsl:attribute name="startupTimeout">${profiler.j2ee.serverStartupTimeout}</xsl:attribute> |
1398 |
<xsl:attribute name="javaPlatform">${profiler.info.javaPlatform}</xsl:attribute> |
1399 |
<jvmarg> |
1400 |
<xsl:attribute name="value">${profiler.info.jvmargs.extra}</xsl:attribute> |
1401 |
</jvmarg> |
1402 |
<jvmarg> |
1403 |
<xsl:attribute name="value">${profiler.info.jvmargs.agent}</xsl:attribute> |
1404 |
</jvmarg> |
1405 |
<jvmarg> |
1406 |
<xsl:attribute name="value">${profiler.j2ee.agentID}</xsl:attribute> |
1407 |
</jvmarg> |
1408 |
</nbstartprofiledserver> |
1409 |
</target> |
1410 |
|
1411 |
<target name="start-loadgen" if="profiler.loadgen.path"> |
1412 |
<loadgenstart> |
1413 |
<xsl:attribute name="path">${profiler.loadgen.path}</xsl:attribute> |
1414 |
</loadgenstart> |
1415 |
</target> |
1416 |
|
1336 |
<xsl:comment> |
1417 |
<xsl:comment> |
1337 |
JAVADOC SECTION |
1418 |
JAVADOC SECTION |
1338 |
</xsl:comment> |
1419 |
</xsl:comment> |
Lines 1604-1610
Link Here
|
1604 |
<xsl:attribute name="if">netbeans.home</xsl:attribute> |
1685 |
<xsl:attribute name="if">netbeans.home</xsl:attribute> |
1605 |
<xsl:attribute name="depends">init,-pre-debug-fix,-do-debug-fix-test</xsl:attribute> |
1686 |
<xsl:attribute name="depends">init,-pre-debug-fix,-do-debug-fix-test</xsl:attribute> |
1606 |
</target> |
1687 |
</target> |
1607 |
|
1688 |
|
|
|
1689 |
<xsl:comment> |
1690 |
========================= |
1691 |
TESTS PROFILING SECTION |
1692 |
========================= |
1693 |
</xsl:comment> |
1694 |
|
1695 |
<target name="profile-test-single"> |
1696 |
<xsl:attribute name="if">netbeans.home</xsl:attribute> |
1697 |
<xsl:attribute name="depends">profile-init,compile-test-single</xsl:attribute> |
1698 |
<nbprofiledirect> |
1699 |
<classpath> |
1700 |
<path path="${{run.test.classpath}}"/> |
1701 |
<path path="${{j2ee.platform.classpath}}"/> |
1702 |
</classpath> |
1703 |
</nbprofiledirect> |
1704 |
|
1705 |
<junit showoutput="true" fork="true" dir="${{profiler.info.dir}}" jvm="${{profiler.info.jvm}}" failureproperty="tests.failed" errorproperty="tests.failed"> |
1706 |
<env key="${{profiler.info.pathvar}}" path="${{profiler.info.agentpath}}:${{profiler.current.path}}"/> |
1707 |
<jvmarg value="${{profiler.info.jvmargs.agent}}" /> |
1708 |
<jvmarg line="${{profiler.info.jvmargs}}"/> |
1709 |
<test name="${{profile.class}}"/> |
1710 |
<classpath> |
1711 |
<path path="${{run.test.classpath}}"/> |
1712 |
<path path="${{j2ee.platform.classpath}}"/> |
1713 |
</classpath> |
1714 |
<syspropertyset> |
1715 |
<propertyref prefix="test-sys-prop."/> |
1716 |
<mapper type="glob" from="test-sys-prop.*" to="*"/> |
1717 |
</syspropertyset> |
1718 |
<formatter type="brief" usefile="false"/> |
1719 |
<formatter type="xml"/> |
1720 |
</junit> |
1721 |
</target> |
1722 |
|
1723 |
|
1608 |
<xsl:comment> |
1724 |
<xsl:comment> |
1609 |
CLEANUP SECTION |
1725 |
CLEANUP SECTION |
1610 |
</xsl:comment> |
1726 |
</xsl:comment> |