|Making plugin-based ant tasks in a jar file known to Buckminster [message #1126252]
||Sat, 05 October 2013 10:24
| Axel Guckelsberger
Registered: July 2009
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
<public name="generate.editor" actor="jdt.ant">
<property key="buildFile" value="examples/gmfgen-run.xml" />
<property key="targets" value="main" />
<path path="dummy_output_gmf/" />
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)
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,
[Updated on: Sat, 05 October 2013 10:28]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.04668 seconds