Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » XML weirdness in buckminster.cspex
XML weirdness in buckminster.cspex [message #531154] Mon, 03 May 2010 22:02 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 132
Registered: July 2009
Senior Member
Hello,

We have a plain Eclipse project (called "jni") which I want to be able
to include when using Buckminster to import projects into a workspace.
These were the steps I followed:

1. Create a buckminster.cspec file in the "jni" project:
> <?xml version="1.0" encoding="UTF-8"?>
> <cs:cspec xmlns:cs="http://www.eclipse.org/buckminster/CSpec-1.0" name="jni" componentType="buckminster" version=" raw:1.0.0.'Triplet'/format(n[.n=0;[.n=0;]][d?S=M;]):1.0.0#Tr iplet "/>

2. Create a buckminster.cspex file in the main feature:
> <?xml version="1.0" encoding="UTF-8"?>
> <cspecExtension
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
>
> <dependencies>
> <!-- Place your Dependencies here -->
> </dependencies>
> <generators>
> <!-- Place your Generators here -->
> </generators>
> <artifacts>
> <!-- Place your Artifacts here -->
> </artifacts>
> <actions>
> <!-- Place your Actions here -->
> </actions>
> <groups>
> <!-- Place your Groups here -->
> </groups>
> <alterDependencies>
> <dependency
> name="jni">
> </dependency>
> </alterDependencies>
> <alterArtifacts>
> <!-- Place your Artifact alterations here -->
> </alterArtifacts>
> <alterActions>
> <!-- Place your Action alterations here -->
> </alterActions>
> <alterGroups>
> <!-- Place your Group alterations here -->
> </alterGroups>
> </cspecExtension>

My thought was that I need to tell Buckminster that the main feature
depends on the "jni" component. However, Buckminster doesn't like my XML:

> Project refresh on com.iar.ide.hubble.feature failed: org.eclipse.buckminster.sax.UnrecognizedElementException: Unrecognized element <dependency> encountered in tag <alterDependencies>: file:///C:/work/dev/tooticki/core/ide/eclipse/features/com.i ar.ide.hubble.feature/buckminster.cspex at line: 24 column: 24

I get the same error when I run the headless "import" command.

Any clues?

--
/Jesper
Re: XML weirdness in buckminster.cspex [message #531183 is a reply to message #531154] Tue, 04 May 2010 06:12 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3232
Registered: July 2009
Senior Member
Hi Jesper,
The tag <alterDependencies> is there to enable modification or removal
of already existing dependencies. You should use the <dependencies>
element if your objective is to add new dependencies.

Regards,
Thomas Hallgren


On 05/04/2010 12:02 AM, Jesper Eskilson wrote:
>
> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
>
> <dependencies>
Re: XML weirdness in buckminster.cspex [message #531695 is a reply to message #531183] Wed, 05 May 2010 19:17 Go to previous message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 132
Registered: July 2009
Senior Member
On 2010-05-04 08:12, Thomas Hallgren wrote:
> Hi Jesper,
> The tag <alterDependencies> is there to enable modification or removal
> of already existing dependencies. You should use the <dependencies>
> element if your objective is to add new dependencies.

Thanks.

--
/Jesper
Previous Topic:Problem installing JDT feature in Headless
Next Topic:internalization build
Goto Forum:
  


Current Time: Sun Dec 21 18:55:30 GMT 2014

Powered by FUDForum. Page generated in 0.02258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software