Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [buckminster-dev] CQuery and "svn update" operation

Hi Mark,
The MSPEC approach does not work properly at present (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=192657) but you can still make it happen. If you define an AdvisorNode in you cquery that covers the components in question and where you prohibit resolution against the workspace, then SVN check-outs will be made always. The check-out command will detect the current content and perform an update.

Regards,
Thomas Hallgren


Addleman, Mark J wrote:
Hi, folks –

We’re trying to hook up Buckminster to do our headless build. We’d like Buckminster to control as much of the process as possible including checking out from Subversion. It appears that Buckminster does a great job of checking out from Subversion into a clean workspace but it does not perform the equivalent of an “svn update” if the necessary projects already exist in the workspace.

From the documentation, it looks like an MSpec has a conflictResolution node that will perform an update, but we can’t get that to work, either.

Below is our CQuery:

<?xml version="1.0" encoding="UTF-8"?>

<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"; resourceMap="file:/C:/Documents%20and%20Settings/ADDMA03/Desktop/m365.rmap">

    <cq:rootRequest name="m365.reports" componentType="osgi.bundle"/>

</cq:componentQuery>

Here is our RMap:

<?xml version="1.0" encoding="UTF-8"?>

<rmap

 xmlns="http://www.eclipse.org/buckminster/RMap-1.0";

 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

 xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0";

 xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0";>

  <searchPath name="m365">

    <provider

     readerType="svn"

     componentTypes="eclipse.feature,osgi.bundle"

     source="true" mutable="true">

      <uri

       format="https://machine/svn/m365subversion/trunk/{0}";>

        <bc:propertyRef key="buckminster.component" />

      </uri>

    </provider>

  </searchPath>

  <locator searchPathRef="m365" pattern="^lib.*" />

  <locator searchPathRef="m365" pattern="^m365.*" />

  <locator searchPathRef="m365" pattern="^com.*" />

  <locator searchPathRef="m365" pattern="^org.apache.commons.dbcp" />

  <locator searchPathRef="m365" pattern="^wily.*" />

  <redirect

   href="http://www.eclipse.org/buckminster/samples/rmaps/dogfood2.rmap";

   pattern=".*" />

</rmap>




Back to the top