Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Turn of generatation of PDE artifacts?
Turn of generatation of PDE artifacts? [message #656018] Wed, 23 February 2011 18:55 Go to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Hi,

I'm using EMF in a plain JDT (i.e. non-plugin) project.

I noticed that when I generate model code using the context menu in the
IDE, it generates a META-INF/MANIFEST.MF and plugin.xml,
plugin.properties etc. Additionally it messes with .project to add the
PDE nature and builders, and adds the PDE classpath container to .classpath.

I don't want any of these things! Is there an option to JUST generate
the Java code?

When I generate using the command line generator application it doesn't
alter .classpath and .project, which is much better but still fairly
annoying.

Thanks,
Neil
Re: Turn of generatation of PDE artifacts? [message #656062 is a reply to message #656018] Thu, 24 February 2011 00:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Neil,

Comments below.

Neil Bartlett wrote:
> Hi,
>
> I'm using EMF in a plain JDT (i.e. non-plugin) project.
>
> I noticed that when I generate model code using the context menu in
> the IDE, it generates a META-INF/MANIFEST.MF and plugin.xml,
> plugin.properties etc. Additionally it messes with .project to add the
> PDE nature and builders, and adds the PDE classpath container to
> .classpath.
>
> I don't want any of these things! Is there an option to JUST generate
> the Java code?
Personally I much prefer to let PDE manage my classpath rather than
doing it manually...

There are options like Bundle Manifest and Update Classpath you can
fiddle with if you want to manage more of that yourself.
>
> When I generate using the command line generator application it
> doesn't alter .classpath and .project, which is much better but still
> fairly annoying.
>
> Thanks,
> Neil


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Turn of generatation of PDE artifacts? [message #656293 is a reply to message #656062] Thu, 24 February 2011 23:23 Go to previous messageGo to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
On 24/02/2011 00:08, Ed Merks wrote:
> Personally I much prefer to let PDE manage my classpath rather than
> doing it manually...

Well, I agree that using a tool to manage dependencies is better than
doing it yourself. But I prefer other tools than PDE. It's just wrong to
assume that all EMF users are also PDE users.

> There are options like Bundle Manifest and Update Classpath you can
> fiddle with if you want to manage more of that yourself.

Okay I hadn't found the "Update Classpath" option. That helps, thanks.

Turning off Bundle Manifest removes META-INF/MANIFEST.MF and instead
generates old Eclipse 1.x/2.x-style plugin.xml. Oh well not so bad, I
can just delete that.

My remaining problem is that EMF overwrites build.properties. I had some
settings in there that were lost... oh well I can choose a different
name for my own build stuff I guess.

I seem to be saying "oh well" a lot when using EMF! It's so nice in some
ways... so annoying in others.

Cheers,
Neil

>>
>> When I generate using the command line generator application it
>> doesn't alter .classpath and .project, which is much better but still
>> fairly annoying.
>>
>> Thanks,
>> Neil
Re: Turn of generatation of PDE artifacts? [message #656304 is a reply to message #656293] Fri, 25 February 2011 00:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Neil,

Comments below.

Neil Bartlett wrote:
> On 24/02/2011 00:08, Ed Merks wrote:
>> Personally I much prefer to let PDE manage my classpath rather than
>> doing it manually...
>
> Well, I agree that using a tool to manage dependencies is better than
> doing it yourself. But I prefer other tools than PDE. It's just wrong
> to assume that all EMF users are also PDE users.
Given we're generating into the Eclipse workspace and PDE is always
there, it's a pretty darned good assumption for most users (except the
really fussy ones who feel compelled to manage classpaths manually).
You can imagine how much work it gets to be to maintain a zillion
different options/settings/configurations/combinations...
>
>> There are options like Bundle Manifest and Update Classpath you can
>> fiddle with if you want to manage more of that yourself.
>
> Okay I hadn't found the "Update Classpath" option. That helps, thanks.
>
> Turning off Bundle Manifest removes META-INF/MANIFEST.MF and instead
> generates old Eclipse 1.x/2.x-style plugin.xml. Oh well not so bad, I
> can just delete that.
>
> My remaining problem is that EMF overwrites build.properties. I had
> some settings in there that were lost... oh well I can choose a
> different name for my own build stuff I guess.
I suspect it generates that only when there is no MANIFEST.MF...
>
> I seem to be saying "oh well" a lot when using EMF!
It seems to me that most every jar ought to have a MANIFEST.MF, right?
EMF will generate one, but it will not touch it once it exists. So you
could put whatever you want in it. As for other artifacts, you can just
let them be and not include them in your binary results if ultimately
you don't want them.
> It's so nice in some ways... so annoying in others.
Unfortunately there's very little time to polish the gem...
>
> Cheers,
> Neil
>
>>>
>>> When I generate using the command line generator application it
>>> doesn't alter .classpath and .project, which is much better but still
>>> fairly annoying.
>>>
>>> Thanks,
>>> Neil
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Turn of generatation of PDE artifacts? [message #656309 is a reply to message #656304] Fri, 25 February 2011 01:09 Go to previous messageGo to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Hi Ed,

Comments below.

On 25/02/2011 00:06, Ed Merks wrote:
> Given we're generating into the Eclipse workspace and PDE is always
> there, it's a pretty darned good assumption for most users (except the
> really fussy ones who feel compelled to manage classpaths manually).

PDE is certainly not always there. Take a look at the download figures
for "Eclipse IDE for Java Developers" (2.3 million) and "Eclipse for
Java EE Developers" (1.6 million) versus "Eclipse Classic" (500,000).
The non-PDE installs outweigh PDE by nearly 8 times.

Please note that I do not manage classpaths manually. I use a tool as
well, but that tool is not PDE.

> You
> can imagine how much work it gets to be to maintain a zillion different
> options/settings/configurations/combinations...

Well there is an option to disable "Update Classpath". Why not to
disable generation of all PDE-specific artifacts? I don't believe I'm
asking for something complicated, I *JUST* want the code.

> It seems to me that most every jar ought to have a MANIFEST.MF, right?

Oh yes, of course all my JARs have manifests, but my *projects* don't! I
also don't need EMF's help to generate MANIFEST.MF because frankly what
you generate is junk... full of Require-Bundle, depends on large chunks
of Eclipse... yikes.

Still, at least the other outputs are ignorable. Updating .classpath and
..project was most obnoxious problem, so I'm happy that you've shown me a
way to turn that off.

Cheers,
Neil
Re: Turn of generatation of PDE artifacts? [message #656312 is a reply to message #656309] Fri, 25 February 2011 01:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Neil,

Comments below.

Neil Bartlett wrote:
> Hi Ed,
>
> Comments below.
>
> On 25/02/2011 00:06, Ed Merks wrote:
>> Given we're generating into the Eclipse workspace and PDE is always
>> there, it's a pretty darned good assumption for most users (except the
>> really fussy ones who feel compelled to manage classpaths manually).
>
> PDE is certainly not always there. Take a look at the download figures
> for "Eclipse IDE for Java Developers" (2.3 million) and "Eclipse for
> Java EE Developers" (1.6 million) versus "Eclipse Classic" (500,000).
> The non-PDE installs outweigh PDE by nearly 8 times.
According to http://www.eclipse.org/downloads/compare.php EE has PDE...
>
> Please note that I do not manage classpaths manually. I use a tool as
> well, but that tool is not PDE.
>
> > You
>> can imagine how much work it gets to be to maintain a zillion different
>> options/settings/configurations/combinations...
>
> Well there is an option to disable "Update Classpath". Why not to
> disable generation of all PDE-specific artifacts?
The stuff we generate wouldn't even compile. No one asked before you.
There are 100 other feature requests that seem more useful.
> I don't believe I'm asking for something complicated, I *JUST* want
> the code.
No, it's just one little cut. But100 people asking for 100 more options
really do complicate things. Death by a thousand cuts...
>
>> It seems to me that most every jar ought to have a MANIFEST.MF, right?
>
> Oh yes, of course all my JARs have manifests, but my *projects* don't!
They're generated somehow?
> I also don't need EMF's help to generate MANIFEST.MF because frankly
> what you generate is junk...
One man's useful artifact is another man's junk.
> full of Require-Bundle, depends on large chunks of Eclipse... yikes.
>
> Still, at least the other outputs are ignorable.
Rose colored glasses can accomplish quite a bit to make life rosey.
> Updating .classpath and .project was most obnoxious problem, so I'm
> happy that you've shown me a way to turn that off.
>
> Cheers,
> Neil


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:ClassCastException on.DynamicEObjectImpl
Next Topic:[query2] How may I do a query on attribute values using regexp?
Goto Forum:
  


Current Time: Sat Apr 20 03:06:26 GMT 2024

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

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

Back to the top