Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml
Call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml [message #742384] Thu, 20 October 2011 12:52 Go to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

I want to call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml from my build file. I try the following:

<ant antfile="platform://org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml" target="main">
<property name="input-gmfgen-model-uri" value="../my.plugin/model/model.gmfgen"></property>
</ant>

I get the follwing error:

BUILD FAILED
C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\test.xml:27: The following error occurred while executing this line:
java.io.FileNotFoundException: C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\platform:\org.eclipse.gmf.xpand.ant\examples\gmfgen-run.xml (The syntax for the file name, directory name or drive is wrong).

What kind of format path do I need to use in order to execute the template?

Thanks,

Ralph
Re: Call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml [message #747677 is a reply to message #742384] Mon, 24 October 2011 08:08 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi Ralph,

I don't think the AntRunner has comprehension for eclipse-friendly URI.
You should try something like
"${eclipseBaseBuilder}/plugins/org.eclipse.gmf.xpand.ant/example/gmfgen-run.xml".

HTH

On 20/10/2011 14:52, ralph. wrote:
> Hi,
>
> I want to call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml from my
> build file. I try the following:
>
> <ant
> antfile="platform://org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml"
> target="main">
> <property name="input-gmfgen-model-uri"
> value="../my.plugin/model/model.gmfgen"></property>
> </ant>
>
> I get the follwing error:
>
> BUILD FAILED
> C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\test.xml:27:
> The following error occurred while executing this line:
> java.io.FileNotFoundException:
> C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\platform:\org.eclipse.gmf.xpand.ant\examples\gmfgen-run.xml
> (The syntax for the file name, directory name or drive is wrong).
>
> What kind of format path do I need to use in order to execute the template?
>
> Thanks,
>
> Ralph


--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: Call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml [message #747702 is a reply to message #747677] Mon, 24 October 2011 08:29 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi Mickael,

when trying your solution I noticed that this plugin does not get installed by any of the features available at: http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/dev-snapshots/

So I will need to check it out of the CVS for usage.

Ralph
Re: Call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml [message #747743 is a reply to message #747702] Mon, 24 October 2011 08:57 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

I now use the latest version from the repository which produces the following output:

Quote:
Buildfile: C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\test.xml

gmfgen:

main:
[echo] C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\gmfgen-build-2001670815.xml

BUILD FAILED
C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\test.xml:46: The following error occurred while executing this line:
C:\workspace\org.eclipse.gmf.xpand.ant\examples\gmfgen-run.xml:12: 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


Total time: 216 milliseconds


I looks like I miss a installed plugin or something similar. Where can I get this from/how can I make the ant skript aware of this?

Ralph
Re: Call org.eclipse.gmf.xpand.ant/examples/gmfgen-run.xml [message #747814 is a reply to message #747743] Mon, 24 October 2011 09:49 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

I think you need your Eclipse base builder (the one you invoke to run
the build) to have installed in your plugins/ the whole GMF Tooling
stuff from update-site + the ant bundle.

On 24/10/2011 10:58, ralph. wrote:
> Hi,
>
> I now use the latest version from the repository which produces the
> following output:
>
> Quote:
>> Buildfile:
>> C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\test.xml
>>
>> gmfgen:
>>
>> main:
>> [echo]
>> C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\gmfgen-build-2001670815.xml
>>
>>
>> BUILD FAILED
>> C:\workspace\de.uni_mannheim.informatik.swt.plm.antbuild\test.xml:46:
>> The following error occurred while executing this line:
>> C:\workspace\org.eclipse.gmf.xpand.ant\examples\gmfgen-run.xml:12:
>> 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
>>
>>
>> Total time: 216 milliseconds
>
>
> I looks like I miss a installed plugin or something similar. Where can I
> get this from/how can I make the ant skript aware of this?
>
> Ralph


--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Previous Topic:Save as image PDF Error
Next Topic:List of vertical labels in a container
Goto Forum:
  


Current Time: Thu Apr 25 14:31:11 GMT 2024

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

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

Back to the top