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 "Hello XML World Example (Buckminster)"

 
Line 6: Line 6:
  
 
That will start the Buckminster materialization of the project.
 
That will start the Buckminster materialization of the project.
 +
 +
==The CQUERY==
 +
The CQuery looks like this:
 +
<pre>
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
 +
resourceMap="http://www.eclipse.org/buckminster/samples/rmaps/demo.rmap">
 +
    <cq:rootRequest name="org.demo.hello.xml.world" category="plugin" versionType="OSGi"/>
 +
    <cq:advisorNode namePattern="org\.demo\..*" whenNotEmpty="OVERWRITE" useInstalled="false" useMaterialization="false"/>
 +
    <cq:advisorNode namePattern="se\.tada\..*" whenNotEmpty="REUSE" useInstalled="false"/>
 +
</cq:componentQuery>
 +
</pre>
 +
 +
* The first three lines are the usual XML incantations - this is XML, and this is the syntax of the XML - i.e. CQuery-1.0.
 +
*
  
 
{{BMTodo|Describe what the demo does}}
 
{{BMTodo|Describe what the demo does}}
 
[[Category:Buckminster]]
 
[[Category:Buckminster]]
 
[[Category:Buckminster Examples]]
 
[[Category:Buckminster Examples]]

Revision as of 09:55, 9 October 2006

< To: Buckminster Project
This examples shows several Buckminster features in action.

To run the example, use the File > Open dialog in Eclipse, and enter this URL:

That will start the Buckminster materialization of the project.

The CQUERY

The CQuery looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap="http://www.eclipse.org/buckminster/samples/rmaps/demo.rmap">
    <cq:rootRequest name="org.demo.hello.xml.world" category="plugin" versionType="OSGi"/>
    <cq:advisorNode namePattern="org\.demo\..*" whenNotEmpty="OVERWRITE" useInstalled="false" useMaterialization="false"/>
    <cq:advisorNode namePattern="se\.tada\..*" whenNotEmpty="REUSE" useInstalled="false"/>
</cq:componentQuery>
  • The first three lines are the usual XML incantations - this is XML, and this is the syntax of the XML - i.e. CQuery-1.0.

Describe what the demo does

Back to the top