Mirror.xml (file size: 2 KB, MIME type: application/xml)

Warning: This file may contain malicious code, by executing it your system may be compromised.

Ant build script to download NBMs from update center using AutoUpdateTask.

What is It Good For?

This is a very useful tool when you want to mirror content of official update center. Just like I did at All that was necessary is to execute following script:

$ wget $SCRIPT
$ ant -f Mirror.xml \
  -Dautoupdate.catalog.url=$NBMS/updates.xml.gz '-Dmirror.clusters=platform|harness|ide|java' -Dmirror.dir=.

The value of mirror.clusters is a regexp to choose just modules from the matching clusters. Here I am downloading just Java edition ingnoring any fancy EE/C/PHP stuff.

Reinventing Maven

Some pointed out that this is duplicating Maven functionality and yes, indeed it does, to some extend. The NBM catalog can be seen as an index to a repository of modules/JARs. However in typical system, there is always only one version of a module (the latest one) available on a single NetBeans update center.

This assumes that the development keeps backward compatibility or that there are multiple update centers for each (major) incompatible release.

File history

Click on a date/time to view the file as it appeared at that time.

(Latest | Earliest) View (newer 50) (older 50) (20 | 50 | 100 | 250 | 500)
current14:32, 24 March 2011No thumbnail (2 KB)Jtulach (Talk | contribs) (Ant build script to download NBMs from update center)
(Latest | Earliest) View (newer 50) (older 50) (20 | 50 | 100 | 250 | 500)

The following page links to this file:

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo