Mirror.xml (file size: 2 KB, MIME type: application/xml)
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 http://hudson.apidesign.org/hudson/job/mirror-netbeans/. All that was necessary is to execute following script:
$ NBMS=http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ $ SCRIPT=http://wiki.netbeans.org/wiki/images/9/9e/Mirror.xml $ 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.
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.
Click on a date/time to view the file as it appeared at that time.(Latest | Earliest) View (newer 500) (older 500) (20 | 50 | 100 | 250 | 500)
|current||14:32, 24 March 2011||No thumbnail||(2 KB)||Jtulach||(Ant build script to download NBMs from update center)|