This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 62437 - New Ant Task "nbprofiledirect"
Summary: New Ant Task "nbprofiledirect"
Status: CLOSED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 03:20 UTC by fuege
Modified: 2007-02-20 18:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fuege 2005-08-17 03:20:05 UTC
I tried to "migrate" from 'nbprofile' to 'nbprofiledirect' as described in the 
docs and got the following (ant) error:

BTW: Where's a docmentation on that new task, especially what elements and 
attributes are supported (attribute 'classpathref' would be nice e. g.)?

...
    <nbprofiledirect>
      <classspath> <pathelement location="."/> </classspath>
    </nbprofiledirect>
...
D:\java\src\com\afs\build.common.ide.xml:346: The 
<antlib:org.netbeans.modules.profiler:nbprofiledirect> type doesn't support the 
nested "classspath" element.
        at org.apache.tools.ant.IntrospectionHelper.throwNotSupported
(IntrospectionHelper.java:463)
        at org.apache.tools.ant.UnknownElement.handleChildren
(UnknownElement.java:329)
        at org.apache.tools.ant.UnknownElement.configure
(UnknownElement.java:182)
        at org.apache.tools.ant.UnknownElement.maybeConfigure
(UnknownElement.java:158)
        at org.apache.tools.ant.Task.perform(Task.java:363)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
(BridgeImpl.java:234)
        at org.apache.tools.ant.module.run.TargetExecutor.run
(TargetExecutor.java:242)
        at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:125)
Comment 1 iformanek 2005-08-17 11:35:09 UTC
The nbprofiledirect task takes only one subelemt, "classpath". Everything else 
is passed to it via properties. The docs could be found at 
http://profiler.netbeans.org/docs/help/antTasksForProfiling.html

Your problem is caused by misspelling the classpath element name - it shoul 
dbe "classpath", not "classspath".
Comment 2 fuege 2005-08-17 15:32:24 UTC
Sorry, shame on me ...
Comment 3 ehucka 2006-10-09 12:10:35 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-12 22:40:58 UTC
Closing old issues.
Comment 5 Alexander Kouznetsov 2007-02-20 18:35:58 UTC
Reverting to the original Target Milestone value changed by mistake. Sorry for
inconvenience.