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 207773 - Autoupdate task doesn't install nbms
Summary: Autoupdate task doesn't install nbms
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 13:40 UTC by javydreamercsw
Modified: 2012-01-27 22:08 UTC (History)
1 user (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 javydreamercsw 2012-01-26 13:40:54 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_02
Runtime = Java HotSpot(TM) Client VM 22.0-b10

Following documentation in http://wiki.netbeans.org/AutoUpdateTask I tried to use the task to install some nbms not available in an update center. These nbms are standard plugins and I expected them to appear in an extra folder within the platform (as is it was installed shared)

Here's the script:

<autoupdate installdir="${nbplatform.active.dir}">
            <nbms dir="../netbeans">
                <include name="*.nbm"/>
            </nbms>
        </autoupdate>

And the output:
Downloading file:/Z:/NetBeans/Simple%20Marauroa/netbeans/1325884601_com-dreamer-outputhandler.nbm

So the file was found but where did it go?

Just in case here's the plugin I tried to use: http://plugins.netbeans.org/plugin/39695/?show=true
Comment 1 Jesse Glick 2012-01-27 20:21:45 UTC
First of all, you have to <modules> so nothing is selected. When you add that, you will get "Specify todir, not installdir, since com-dreamer-outputhandler.nbm does not define target cluster" which is correct. When you fix that, the NBM is unpacked as expected:

<project default="run">
    <target name="run">
        <taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="/space/src/nb/main/nbbuild/build/nbantext.jar"/>
        <mkdir dir="/tmp/install"/>
        <autoupdate todir="/tmp/install">
            <nbms dir="/tmp">
                <include name="1325884601_com-dreamer-outputhandler.nbm"/>
            </nbms>
            <modules includes=".+"/>
        </autoupdate>
    </target>
</project>
Comment 2 javydreamercsw 2012-01-27 22:08:52 UTC
Thanks a lot. This was due in part to lack of documentation. Added an example based in your answer here: http://wiki.netbeans.org/AutoUpdateTask#Working_Locally