Difference between revisions of "Texo/Download and Install"

From Eclipsepedia

Jump to: navigation, search
(Using Texo at runtime outside of Eclipse/OSGI)
Line 15: Line 15:
 
After installing and restarting you can generate code from ecore/xsd models and refer to Texo plugins from plugin MANIFEST.MF files.
 
After installing and restarting you can generate code from ecore/xsd models and refer to Texo plugins from plugin MANIFEST.MF files.
  
== Using Texo at runtime outside of Eclipse/OSGI ==
+
== Using Texo in a Web Container ==
 +
 
 +
=== Download Texo jar files ===
  
 
The Texo jar files can be downloaded through a browser by going to this page: http://download.eclipse.org/modeling/emft/texo/updates/interim
 
The Texo jar files can be downloaded through a browser by going to this page: http://download.eclipse.org/modeling/emft/texo/updates/interim
 +
 +
=== Texo jar files ===
  
 
To use the runtime layer of Texo outside of OSGI/Eclipse (for example in a web container) you need the following jar file:
 
To use the runtime layer of Texo outside of OSGI/Eclipse (for example in a web container) you need the following jar file:
Line 28: Line 32:
 
* '''org.eclipse.emf.texo.datagenerator''': for generating test data
 
* '''org.eclipse.emf.texo.datagenerator''': for generating test data
  
The Texo runtime JAR and the generated runtime classes (*ModelFactory, *ModelPackage) depend on 3 other JARs which are located in the plugins directory of your eclipse installation:
+
=== Dependencies ===
 +
 
 +
The Texo runtime JAR and the generated runtime classes (*ModelFactory, *ModelPackage) depend on 3 (EMF) jar-files which are located in the plugins directory of your eclipse installation:
 
* '''org.eclipse.emf.common'''
 
* '''org.eclipse.emf.common'''
 
* '''org.eclipse.emf.ecore'''
 
* '''org.eclipse.emf.ecore'''
 
* '''org.eclipse.emf.ecore.xmi'''
 
* '''org.eclipse.emf.ecore.xmi'''
 +
 +
For '''JSON''' web service support you also need to obtain org.json jar file. These can be downloaded from the internet, or try [http://www.eclipse.org/downloads/download.php?r=1&file=/tools/orbit/downloads/drops/R20110523182458/repository/plugins/org.json_1.0.0.v201011060100.jar this] location.
  
 
For more information with using EMF in a standalone Java application, see:
 
For more information with using EMF in a standalone Java application, see:

Revision as of 05:25, 3 April 2012

Contents


Texo is installed through the Eclipse Update Manager.

Update Manager Locations

To enable code generation in Eclipse or to use Texo in an OSGI-plugin environment in Eclipse, you need to install Texo into Eclipse. This is done through an update manager. For runtime usage of Texo see the next section.

Texo is available through this update site:

The last successful nightly build is available through this update site:

After installing and restarting you can generate code from ecore/xsd models and refer to Texo plugins from plugin MANIFEST.MF files.

Using Texo in a Web Container

Download Texo jar files

The Texo jar files can be downloaded through a browser by going to this page: http://download.eclipse.org/modeling/emft/texo/updates/interim

Texo jar files

To use the runtime layer of Texo outside of OSGI/Eclipse (for example in a web container) you need the following jar file:

  • org.eclipse.emf.texo

If you want to use Texo web service support then the following jar files must be used:

  • org.eclipse.emf.texo.server: for server side logic, entitymanager handling etc.
  • org.eclipse.emf.texo.json: for json serialization and json web service support
  • org.eclipse.emf.texo.xml: for xml and xmi serialization for xml/json web service support
  • org.eclipse.emf.texo.datagenerator: for generating test data

Dependencies

The Texo runtime JAR and the generated runtime classes (*ModelFactory, *ModelPackage) depend on 3 (EMF) jar-files which are located in the plugins directory of your eclipse installation:

  • org.eclipse.emf.common
  • org.eclipse.emf.ecore
  • org.eclipse.emf.ecore.xmi

For JSON web service support you also need to obtain org.json jar file. These can be downloaded from the internet, or try this location.

For more information with using EMF in a standalone Java application, see:

You can also configure Texo to only generate Entities, no EMF dependencies.

Texo Example Project(s)

The Texo example projects are hosted in this git repository: