Skip to main content



      Home
Home » Modeling » EMF » working on plugin source
working on plugin source [message #391153] Tue, 15 February 2005 05:13 Go to next message
Eclipse UserFriend
Originally posted by: r.schlesener.gmx.net

hy, another newbie question:

I want to work on the emf source, I got the emf project from the Eclipse
cvs.
The ant build file doesnt work on my windows os.

Is the project a simple Java project or a plugin project?
How can I compile the code, run it for testing and deploy it?
Is there a document on that somewhere, or is compiling and deploying
different for every sub-project in Eclipse?

Ralf
Re: working on plugin source [message #391160 is a reply to message #391153] Tue, 15 February 2005 07:17 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------070705050809060107050502
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Ralf,

We only use the ant build file when we are building a driver for
deployment. If you just shadow all the source from CVS it should
compile because the projects will all be plugin projects. If you start
a Runtime workspace, the plugins you just built should be available for
use in that Eclipse session. (One very unfortunate limitation of the
PDE is that although you don't need to build the jars to launch a
runtime workspace, if that runtime workspace is going to generate code
that needs to compile against the .classes of these projects, then the
jars are required to be present.) To get around this problem, I always
shadow the plugins not in the workspace, but in the actual plugin
directory of the Eclipse environment that I am using. After the build
finishes, I exit Eclipse and run this shell script to create the jars:

for i in \
plugins/org.eclipse.emf.codegen/runtime/codegen.jar \
plugins/org.eclipse.emf.codegen.ecore/runtime/codegen.ecore. jar \

plugins/org.eclipse.emf.codegen.ecore.ui/runtime/codegen.eco re.ui.jar \
plugins/org.eclipse.emf.codegen.ui/runtime/codegen.ui.jar \
plugins/org.eclipse.emf.common/runtime/common.jar \
plugins/org.eclipse.emf.common.ui/runtime/common.ui.jar \
plugins/org.eclipse.emf.commonj.sdo/runtime/commonj.sdo.jar \
plugins/org.eclipse.emf.ecore/runtime/ecore.jar \
plugins/org.eclipse.emf.ecore.change/runtime/ecore.change.ja r \

plugins/org.eclipse.emf.ecore.change.edit/runtime/ecore.chan ge.edit.jar
\
plugins/org.eclipse.emf.ecore.edit/runtime/ecore.edit.jar \
plugins/org.eclipse.emf.ecore.editor/runtime/ecore.editor.ja r \
plugins/org.eclipse.emf.ecore.sdo/runtime/ecore.sdo.jar \
plugins/org.eclipse.emf.ecore.sdo.edit/runtime/ecore.sdo.edi t.jar \

plugins/org.eclipse.emf.ecore.sdo.editor/runtime/ecore.sdo.e ditor.jar \
plugins/org.eclipse.emf.ecore.xmi/runtime/ecore.xmi.jar \
plugins/org.eclipse.emf.edit/runtime/edit.jar \
plugins/org.eclipse.emf.edit.ui/runtime/edit.ui.jar \
plugins/org.eclipse.emf.mapping/runtime/mapping.jar \
plugins/org.eclipse.emf.mapping.ui/runtime/mapping.ui.jar \

plugins/org.eclipse.emf.mapping.ecore2ecore/runtime/mapping. ecore2ecore.jar
\

plugins/org.eclipse.emf.mapping.ecore2ecore.editor/runtime/m apping.ecore2ecore.editor.jar
\

plugins/org.eclipse.emf.mapping.xsd2ecore/runtime/mapping.xs d2ecore.jar
\

plugins/org.eclipse.emf.mapping.xsd2ecore.editor/runtime/map ping.xsd2ecore.editor.jar
\
plugins/org.eclipse.xsd/runtime/xsd.jar \
plugins/org.eclipse.xsd.edit/runtime/xsd.edit.jar \
plugins/org.eclipse.xsd.editor/runtime/xsd.editor.jar \
plugins/org.eclipse.xsd.test/runtime/xsd.test.jar \
plugins/org.eclipse.emf.java/runtime/java.jar \
plugins/org.eclipse.emf.java.edit/runtime/java.edit.jar \
plugins/org.eclipse.emf.java.editor/runtime/java.editor.jar
do
(
mkdir -p $(dirname $i)
cd $(dirname $(dirname $i))/bin
echo zip -r ../runtime/$(basename $i) *
zip -r ../runtime/$(basename $i) *
)
done

Then I start Eclipse again (usually with -clean) and now the EMF I just
built can be used directly in the original Eclipse. If I want to debug
EMF, I just use a runtime workspace...


Ralf Schlesener wrote:

> hy, another newbie question:
>
> I want to work on the emf source, I got the emf project from the
> Eclipse cvs.
> The ant build file doesnt work on my windows os.
>
> Is the project a simple Java project or a plugin project?
> How can I compile the code, run it for testing and deploy it?
> Is there a document on that somewhere, or is compiling and deploying
> different for every sub-project in Eclipse?
>
> Ralf
>


--------------070705050809060107050502
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">
Ralf,<br>
<br>
We only use the ant build file when we are building a driver for
deployment.
Previous Topic:Problem with CrossReference
Next Topic:Missing uml2 plug-in
Goto Forum:
  


Current Time: Thu Aug 21 15:44:43 EDT 2025

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

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

Back to the top