Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Eclipse b3/aggregator/Migration From buckminster"

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
A buckminster aggregator .build file and a b2 aggregator .b3aggr file are similar, but not entirely equal. Here's an example showing what's changed.
+
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.
  
 
{| border="1" cellpadding="3" cellspacing="1"
 
{| border="1" cellpadding="3" cellspacing="1"
Line 82: Line 82:
 
To run the script:  
 
To run the script:  
  
  ant -f aggregateRepos.b3.xml -DaggregateRepos.properties=aggregateRepos.b3.m2eclipse.properties
+
  ant -f aggregateRepos'''.b3'''.xml -DaggregateRepos.properties=aggregateRepos'''.b3'''.m2eclipse.properties
 
| rowspan="1" |  
 
| rowspan="1" |  
 
To run the script:  
 
To run the script:  
Line 88: Line 88:
 
  ant -f aggregateRepos.xml -DaggregateRepos.properties=aggregateRepos.m2eclipse.properties
 
  ant -f aggregateRepos.xml -DaggregateRepos.properties=aggregateRepos.m2eclipse.properties
 
|}
 
|}
 +
 +
 +
[[Category:Eclipse b3]]

Latest revision as of 16:58, 9 June 2010

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

Back to the top