Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Generating JDO outside of ecilpse
Generating JDO outside of ecilpse [message #90440] Wed, 18 July 2007 15:19 Go to next message
Eclipse UserFriend
Originally posted by: audra.us.ibm.com

Hi Martin,
Is there a way to generate a .jdo file via command line or using ANT? My
application is using Teneo. We have been using Teneo plugin to manually
create our jdo files. We are trying to create a build process to generate
the jdo and enhance the classes using the Teneo and JPox jars. Is it
possible to generate the .jdo outside of eclipse?

Thanks in advance for you help.
Audra
Re: Generating JDO outside of ecilpse [message #90461 is a reply to message #90440] Wed, 18 July 2007 15:47 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Audra,
Yes it is possible to generate the jdo file outside of eclipse. You would need the following jar
files (you can find them in the teneo plugins jars/directories in your eclipse installation plugins
directory):
org.eclipse.emf.teneo
org.eclipse.emf.teneo.annotations
org.eclipse.emf.teneo.jpox

and the jpox jars

With these jars in place you can generate a jdo file programmatically through the
JpoxHelper.INSTANCE.generateMapping(...) method.

For the Teneo test cases I programmatically enhance through this call:
JPOXEnhancer.main(new String[] { mappingFile.getAbsolutePath() });
(were JPOXEnhancer is jpox class located in the jpox enhancer jar)
The jpox website has some more info on how to integrate the enhancement step in your build process.

gr. Martin

Audra wrote:
> Hi Martin,
> Is there a way to generate a .jdo file via command line or using ANT?
> My application is using Teneo. We have been using Teneo plugin to
> manually create our jdo files. We are trying to create a build process
> to generate the jdo and enhance the classes using the Teneo and JPox
> jars. Is it possible to generate the .jdo outside of eclipse?
>
> Thanks in advance for you help.
> Audra
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Generating JDO outside of ecilpse [message #608791 is a reply to message #90440] Wed, 18 July 2007 15:47 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Audra,
Yes it is possible to generate the jdo file outside of eclipse. You would need the following jar
files (you can find them in the teneo plugins jars/directories in your eclipse installation plugins
directory):
org.eclipse.emf.teneo
org.eclipse.emf.teneo.annotations
org.eclipse.emf.teneo.jpox

and the jpox jars

With these jars in place you can generate a jdo file programmatically through the
JpoxHelper.INSTANCE.generateMapping(...) method.

For the Teneo test cases I programmatically enhance through this call:
JPOXEnhancer.main(new String[] { mappingFile.getAbsolutePath() });
(were JPOXEnhancer is jpox class located in the jpox enhancer jar)
The jpox website has some more info on how to integrate the enhancement step in your build process.

gr. Martin

Audra wrote:
> Hi Martin,
> Is there a way to generate a .jdo file via command line or using ANT?
> My application is using Teneo. We have been using Teneo plugin to
> manually create our jdo files. We are trying to create a build process
> to generate the jdo and enhance the classes using the Teneo and JPox
> jars. Is it possible to generate the .jdo outside of eclipse?
>
> Thanks in advance for you help.
> Audra
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Generating JDO outside of ecilpse
Next Topic:[Teneo] Primary key and Index with same columns
Goto Forum:
  


Current Time: Thu Apr 25 20:00:58 GMT 2024

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

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

Back to the top