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 213580 - Error in osgi.xml when profiling application
Summary: Error in osgi.xml when profiling application
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.2
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on: 203519 213931
Blocks:
  Show dependency tree
 
Reported: 2012-06-05 06:49 UTC by mienamoo
Modified: 2012-06-11 16:49 UTC (History)
2 users (show)

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 mienamoo 2012-06-05 06:49:21 UTC
NetBeans build 201206020001
JDK 7u3 32-bit

While running through the OSGi test spec [1], test suite 3, test 3, I came across this issue. When profiling a NetBeans platform application in Felix, there is an error in osgi.xml at line 146: condition doesn't support the "if" attribute. And this causes the profiling to fail.
Comment 1 Jaroslav Tulach 2012-06-06 11:45:18 UTC
What is OSGi test spec? What version of Ant are you using?
Comment 2 Jaroslav Tulach 2012-06-06 11:46:09 UTC
Probably caused by fix for bug 203519.
Comment 3 mienamoo 2012-06-06 11:49:10 UTC
Argh sorry, forgot to add the link to the test spec [1]. :)

[1] http://wiki.netbeans.org/TS_69_Apisupport_OSGI

I am using the bundled Ant - version 1.8.3.
Comment 4 Jesse Glick 2012-06-06 13:53:35 UTC
In the -profile-check target I guess you mean (line 164, not 146). Passing to yardus since I am not sure what this code is supposed to be doing. If the  if="netbeans.home" was intentional then probably you meant to use <and><isset property="netbeans.home"/>...</and>?
Comment 5 mienamoo 2012-06-06 14:19:38 UTC
Yes indeed line 164.
Comment 6 J Bachorik 2012-06-07 21:16:14 UTC
fixing an obvious nonsense in osgi.xml - http://hg.netbeans.org/profiler-main/rev/34d66d6f3425
Comment 7 Quality Engineering 2012-06-10 05:54:46 UTC
Integrated into 'main-golden', will be available in build *201206100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/34d66d6f3425
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #213580:  Fixing an obvious nonsense in osgi.xml
Comment 8 mienamoo 2012-06-11 07:06:38 UTC
Verified with build 201206100001.