Code generation from ant or maven [message #129989] |
Tue, 07 October 2008 04:15  |
Eclipse User |
|
|
|
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 #130117 is a reply to message #130104] |
Sun, 12 October 2008 04:18  |
Eclipse User |
|
|
|
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 #620338 is a reply to message #130012] |
Wed, 08 October 2008 05:07  |
Eclipse User |
|
|
|
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 06:38  |
Eclipse User |
|
|
|
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
>
|
|
|
|
Re: Code generation from ant or maven [message #620343 is a reply to message #130104] |
Sun, 12 October 2008 04:18  |
Eclipse User |
|
|
|
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)
|
|
|
Powered by
FUDForum. Page generated in 0.08051 seconds