Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Code generation from ant or maven
Code generation from ant or maven [message #129989] Tue, 07 October 2008 08:15 Go to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Hi!

I want to make all the tasks related to EMF code generation from ANT (or,
preferable from Maven).
So i need
1. generate ecore and genmodel from Java interfaces
2. generate model code from ecore and genmodel

How I do it?

Thank you
Re: Code generation from ant or maven [message #130012 is a reply to message #129989] Tue, 07 October 2008 11:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050206000003060706050701
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Pavel,

This is an EMF question that's been asked a few times. Searching the
EMF newsgroup will turn up many matches:

http://www.google.com/cse?cx=017941334893793413703%3Asqfrdtd 112s&q=ANT+news.eclipse.tools.emf&sa=Search
< http://www.google.com/cse?cx=017941334893793413703%3Asqfrdtd 112s&q=ANT+news.eclipse.tools.emf&sa=Search>

Not surprisingly, it even shows up in the FAQ: :-P

2.37 How can I use the EMF Ant tasks?
< http://wiki.eclipse.org/index.php/EMF-FAQ#How_can_I_use_the_ EMF_Ant_tasks.3F>


Pavel Bernshtam wrote:
> Hi!
>
> I want to make all the tasks related to EMF code generation from ANT
> (or, preferable from Maven).
> So i need
> 1. generate ecore and genmodel from Java interfaces
> 2. generate model code from ecore and genmodel
>
> How I do it?
>
> Thank you
>

--------------050206000003060706050701
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Pavel,<br>
<br>
This is an EMF question that's been asked a few times.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Code generation from ant or maven [message #130050 is a reply to message #130012] Wed, 08 October 2008 09:07 Go to previous messageGo to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Thank you and sorry for asking a trivial question.

I try to use both build.xml example (with antRunner application) or
codeGen.cmd script from an example.

However in both cases I receive "Invalid project description" error.

What may be a reason?

I receive this error even if I use the .project file from examples ..


Thank you
Re: Code generation from ant or maven [message #130062 is a reply to message #130050] Wed, 08 October 2008 10:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Pavel,

The description, if I recall correctly, is where the physical location
of the project is being specified. It sounds like there's a problem
with that in your case. You run this under debug control to see that's
happening. I.e., what specific value doesn't it like?


Pavel Bernshtam wrote:
> Thank you and sorry for asking a trivial question.
>
> I try to use both build.xml example (with antRunner application) or
> codeGen.cmd script from an example.
>
> However in both cases I receive "Invalid project description" error.
>
> What may be a reason?
>
> I receive this error even if I use the .project file from examples ..
>
>
> Thank you
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Code generation from ant or maven [message #130104 is a reply to message #130062] Sun, 12 October 2008 07:53 Go to previous messageGo to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
How can I turn debug on?

Fro stack trace I do not receive any information about the reason of the
fail ...
Re: Code generation from ant or maven [message #130117 is a reply to message #130104] Sun, 12 October 2008 08:18 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
I run it with -debug flag

"c:\Program Files\eclipse\eclipsec.exe" -noSplash -debug -data
d:\work\library\workspace -application org.eclipse.ant.core.antRunner
-buildfile build.xml

But i do not receive more information about the root cause of the
exception:

All I have it is:

Caused by: org.eclipse.core.internal.resources.ResourceException: Invalid
project description.
at
org.eclipse.core.internal.resources.Project.checkDescription (Project.java:141)
at
org.eclipse.core.internal.resources.Project.assertCreateRequ irements(Project.java:33)
at
org.eclipse.core.internal.resources.Project.create(Project.j ava:252)
at
org.eclipse.core.internal.resources.Project.create(Project.j ava:234)
at
org.eclipse.emf.importer.java.JavaImporterApplication.adjust ModelImporter(JavaImporterApplication.java:192)
Re: Code generation from ant or maven [message #620335 is a reply to message #129989] Tue, 07 October 2008 11:18 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050206000003060706050701
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Pavel,

This is an EMF question that's been asked a few times. Searching the
EMF newsgroup will turn up many matches:

http://www.google.com/cse?cx=017941334893793413703%3Asqfrdtd 112s&q=ANT+news.eclipse.tools.emf&sa=Search
< http://www.google.com/cse?cx=017941334893793413703%3Asqfrdtd 112s&q=ANT+news.eclipse.tools.emf&sa=Search>

Not surprisingly, it even shows up in the FAQ: :-P

2.37 How can I use the EMF Ant tasks?
< http://wiki.eclipse.org/index.php/EMF-FAQ#How_can_I_use_the_ EMF_Ant_tasks.3F>


Pavel Bernshtam wrote:
> Hi!
>
> I want to make all the tasks related to EMF code generation from ANT
> (or, preferable from Maven).
> So i need
> 1. generate ecore and genmodel from Java interfaces
> 2. generate model code from ecore and genmodel
>
> How I do it?
>
> Thank you
>

--------------050206000003060706050701
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Pavel,<br>
<br>
This is an EMF question that's been asked a few times.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Code generation from ant or maven [message #620338 is a reply to message #130012] Wed, 08 October 2008 09:07 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Thank you and sorry for asking a trivial question.

I try to use both build.xml example (with antRunner application) or
codeGen.cmd script from an example.

However in both cases I receive "Invalid project description" error.

What may be a reason?

I receive this error even if I use the .project file from examples ..


Thank you
Re: Code generation from ant or maven [message #620339 is a reply to message #130050] Wed, 08 October 2008 10:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Pavel,

The description, if I recall correctly, is where the physical location
of the project is being specified. It sounds like there's a problem
with that in your case. You run this under debug control to see that's
happening. I.e., what specific value doesn't it like?


Pavel Bernshtam wrote:
> Thank you and sorry for asking a trivial question.
>
> I try to use both build.xml example (with antRunner application) or
> codeGen.cmd script from an example.
>
> However in both cases I receive "Invalid project description" error.
>
> What may be a reason?
>
> I receive this error even if I use the .project file from examples ..
>
>
> Thank you
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Code generation from ant or maven [message #620342 is a reply to message #130062] Sun, 12 October 2008 07:53 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
How can I turn debug on?

Fro stack trace I do not receive any information about the reason of the
fail ...
Re: Code generation from ant or maven [message #620343 is a reply to message #130104] Sun, 12 October 2008 08:18 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
I run it with -debug flag

"c:\Program Files\eclipse\eclipsec.exe" -noSplash -debug -data
d:\work\library\workspace -application org.eclipse.ant.core.antRunner
-buildfile build.xml

But i do not receive more information about the root cause of the
exception:

All I have it is:

Caused by: org.eclipse.core.internal.resources.ResourceException: Invalid
project description.
at
org.eclipse.core.internal.resources.Project.checkDescription (Project.java:141)
at
org.eclipse.core.internal.resources.Project.assertCreateRequ irements(Project.java:33)
at
org.eclipse.core.internal.resources.Project.create(Project.j ava:252)
at
org.eclipse.core.internal.resources.Project.create(Project.j ava:234)
at
org.eclipse.emf.importer.java.JavaImporterApplication.adjust ModelImporter(JavaImporterApplication.java:192)
Previous Topic:[Teneo] correct version for Eclipse 3.2.2 ??
Next Topic:Using JET with EMF model
Goto Forum:
  


Current Time: Sun Dec 22 11:44:26 GMT 2024

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

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

Back to the top