Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [buckminster-dev] some questions on Buckminster

Hi Alex,



Yes, I'm familiar with how to do materialization inside Eclipse IDE, but when I try to use headless distribution of Buckminster to build some GUI stuff, I met some errors, so is there some wiki pages on how to setup a target platform for headless?


A target platform is just an Eclipse runtime configured to meet your needs. Once you've set it up, you need to tell Buckminster to use that platform in subsequent builds using a setpref command. The result of the setpref is persistent and stored in your workspace (it's analog to setting the target platform in the IDE).

> buckminster -data <your workspace> setpref "targetPlatformPath=<path to your target platform>"

The quotes are needed on some windows command shells since they tend to split arguments on '='.

If you want to know the full set of preferences that can be set this way, you can use the 'lsprefs' command. The set may vary depending on how Buckminster is configured.

You can create your target platform in several ways:

1. download a distribution, unzip it, download add-ons, and unzip them on top. No magic involved. 2. configure a "virtual distro", i.e. use an RMAP to appoint the distributions. Have a CSPEC somewhere that describes the platform. Use Buckminster to do the materialization and unpacking. 3. let Buckminster self-configure through a series of install commands where each command installs a needed feature from an Eclipse Update Site. Then use the result as both the tool for building and as the target platform.

A wiki page that explains how to create a headless configuration and also how to run a build in headless mode can be found here: http://wiki.eclipse.org/Sample_headless_configuration_%28Buckminster%29

We are using Buckminster from ant. When doing so, it's convenient to declare a macro such as:

   <macrodef name="buckminster">
       <attribute name="command" default="--scriptfile"/>
       <element name="globargs" optional="true"/>
       <element name="args" optional="true"/>
       <sequential>
           <java
               fork="true"
               jar="${deployed.buckminster}/startup.jar"
               dir="${deployed.buckminster}"
               failonerror="true">
<!-- <jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/> -->
               <globargs/>
               <arg value="@{command}"/>
               <args/>
           </java>
       </sequential>
   </macrodef>

Buckminster can then be called like this:

       <buckminster command="resolve">
           <globargs>
               <arg value="-data"/>
               <arg value="${workspace}"/>
           </globargs>
           <args>
               <arg value="--bomfile"/>
               <arg value="${workspace}/workspace.bom"/>
               <arg value="--noimport"/>
               <arg value="${cquery.url}"/>
           </args>
       </buckminster>


BTW: I got some errors when I tried to materialization Buckminster, which follow the step you mentioned
These are the errors you get if you miss out on the "and the RCP delta-pack" part of step #1. Are you sure you installed that?


*****************************
Found searchPath default for component org.apache.commons.codec
Reading remote file svn://dev.eclipse.org/svnroot/technology/org.eclipse.buckminster/trunk/org.eclipse.buckminster.cmdline/.classpath#6637 ERROR [0003] : No suitable provider for component org.eclipse.core.filesystem.solaris.sparc:osgi.bundle was found in searchPath default ERROR [0003] : Provider eclipse.import(http://download.eclipse.org/tools/orbit/downloads/drops/R200709171314/orbitBundles-R200709171314.map): No match found for component org.eclipse.core.filesystem.solaris.sparc ERROR [0003] : Provider maven2(http://repo1.maven.org/maven2): does not provide components of type osgi.bundle Found searchPath org.eclipse.buckminster for component org.eclipse.buckminster.jdt Listing remote folder svn://dev.eclipse.org/svnroot/technology/org.eclipse.buckminster/trunk/org.eclipse.buckminster.jdt#HEAD Provider eclipse.import(http://download.eclipse.org/tools/orbit/downloads/drops/R200709171314/orbitBundles-R200709171314.map): Found a match for component org.apache.commons.codec, 1.3.0.v200706111738 Reading remote file svn://dev.eclipse.org/svnroot/technology/org.eclipse.buckminster/trunk/org.eclipse.buckminster.core/META-INF/MANIFEST.MF#HEA
*****************************

Thanks,
--Alex
_______________________________________________
buckminster-dev mailing list
buckminster-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/buckminster-dev



Back to the top