Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Making plugin-based ant tasks in a jar file known to Buckminster
Making plugin-based ant tasks in a jar file known to Buckminster [message #1126252] Sat, 05 October 2013 10:24
Axel Guckelsberger is currently offline Axel Guckelsberger
Messages: 223
Registered: July 2009
Senior Member
Hi all,

I am attempting to execute the generation of GMF diagrams using Buckminster.
For this purpose GMF provides a plug-in named org.eclipse.gmf.xpand.ant.
Unfortunately this plug-in is not contained in any update site. Therefore I
tried to copy it into the workspace.

The ant tasks are declared here: https://github.com/eclipse/gmf-tooling/blob/master/plugins/org.eclipse.gmf.xpand.ant/plugin.xml

I executed https://github.com/eclipse/gmf-tooling/blob/master/plugins/org.eclipse.gmf.xpand.ant/build-antjar.xml in
order to build the antsupport.jar file.

Afterwards I added a buckminster.cspex file to that bundle with the
following content:

        <public name="generate.editor" actor="jdt.ant">
            <actorProperties>
                <property key="buildFile" value="examples/gmfgen-run.xml" />
                <property key="targets" value="main" />
            </actorProperties>
            <properties>
            </properties>
            <products alias="destination">
                <path path="dummy_output_gmf/" />
            </products>
        </public>


The called ant file is located here: https://github.com/eclipse/gmf-tooling/blob/master/plugins/org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml


The buckminster commands I am calling are as follows:

# build the xpand.ant plug-in (but continue on errors since other workspace 
bundles are not ready yet)
build --continueonerror
perform "org.eclipse.gmf.xpand.ant#generate.editor"



Since the "ant" actor did not work I tried the "jdt.ant" actor instead. But
this makes no difference. The ant task can not be found:


Problem: failed to create task or type eclipse.org/gmf/2008/xpand:template
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet



Any idea what could be missing? Is it possibly required to have the
xpand.ant plug-in built inside the headless buckminster instead of putting
it into the workspace? Would it make sense to work with an ant taskdef instead?

Thanks in advance,

Axel

[Updated on: Sat, 05 October 2013 10:28]

Report message to a moderator

Previous Topic:Multipath Target Platforms
Next Topic:p2 site generation and required bundle versions
Goto Forum:
  


Current Time: Wed Sep 17 15:41:27 GMT 2014

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

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