Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Eclipse b3/aggregator/Migration From buckminster
A buckminster aggregator .build file and a b2 aggregator .b3aggr file are similar, but not entirely equal. Here's an example showing some of what's changed.
| New way (Eclipse 3.6) | Old way (Eclipse 3.5) |
|---|---|
|
|
|
Generated script: repo.b3aggr |
Generated script: repo.build |
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='nickboldt@gmail.com']" label="${repoName}" buildRoot="${working.dir}/output" packedStrategy="COPY" type="N" mavenResult="false"> |
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aggregator="http://www.eclipse.org/buckminster/2009/aggregator" buildmaster="//@contacts[email='nickboldt@gmail.com']" label="${repoName}" buildRoot="${working.dir}/output" packedStrategy="COPY" type="N" mavenResult="false"> |
<repositories location="@{repo}"/>
|
<repositories location="@{repo}">
<metadataRepository href="p2:@{repo}#//@metadataRepository"/>
</repositories>
|
<validationRepositories location="@{associate.site}" />
|
<validationRepositories location="@{associate.site}">
<metadataRepository href="p2:@{associate.site}#//@metadataRepository"/>
</validationRepositories>
|
<features categories="${featureID.categories}"
name="${featureID}.feature.group"
versionRange="${featureVersion}" />
|
<features categories="${featureID.categories}">
<installableUnit href="p2:jar:file:${repoFile}!/#//@metadataRepository/@installableUnits[id=\
'${featureID}.feature.group',\
version='${featureVersion}']" />
</features>
|
<exec executable="${eclipse.home}/eclipse"
failonerror="true"
dir="${eclipse.home}"
timeout="900000"
taskname="b3aggr"
>
<arg line=" -vm ${java.home}/bin/java" />
<arg line=" -application org.eclipse.b3.cli.headless" />
<arg line=" -nosplash --launcher.suppressErrors -consoleLog" />
<arg line=" aggregate --buildModel ${working.dir}/repo.b3aggr --action BUILD" />
</exec>
|
<exec executable="${eclipse.home}/eclipse"
failonerror="true"
dir="${eclipse.home}"
timeout="900000"
taskname="b.agg"
>
<arg line=" -vm ${java.home}/bin/java" />
<arg line=" -application org.eclipse.buckminster.aggregator" />
<arg line=" -nosplash --launcher.suppressErrors -consoleLog" />
<arg line=" -buildModel ${working.dir}/repo.build" />
</exec>
|
|
To run the script: ant -f aggregateRepos.b3.xml -DaggregateRepos.properties=aggregateRepos.b3.m2eclipse.properties |
To run the script: ant -f aggregateRepos.xml -DaggregateRepos.properties=aggregateRepos.m2eclipse.properties |