Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPF » Publishing a Configuration in a script?
Publishing a Configuration in a script? [message #13654] Fri, 16 June 2006 19:30 Go to next message
Eclipse UserFriend
Originally posted by: paul.quinn.xwave.com

I would like to be able to publish an existing configuration from EPF/RMC
as a web site as part of a 'nightly build' script. I'm relatively new to
the Eclipse plugin world, but as I understand it, I would create a
headless plugin, which in turn makes the appropriate calls to the EPF API.

Is that the recommended strategy? Has anyone else done this previously? Is
there a source of information out there that could help identify the API
calls, etc. that I need, other than doing stack traces, etc., and reading
the EPF source?

Any and all help gratefully received.

Thanks,
Paul
Re: Publishing a Configuration in a script? [message #13806 is a reply to message #13654] Wed, 21 June 2006 13:32 Go to previous messageGo to next message
Brian Schlosser is currently offline Brian SchlosserFriend
Messages: 4
Registered: July 2009
Junior Member
Paul,

I have the same need, and have started to do some work in this area.

I've opened Bugzilla record 148030 to track the issue, and will post a
patch with the code I have so far.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030

Brian.

Paul Quinn wrote:
> I would like to be able to publish an existing configuration from
> EPF/RMC as a web site as part of a 'nightly build' script. I'm
> relatively new to the Eclipse plugin world, but as I understand it, I
> would create a headless plugin, which in turn makes the appropriate
> calls to the EPF API.
>
> Is that the recommended strategy? Has anyone else done this previously?
> Is there a source of information out there that could help identify the
> API calls, etc. that I need, other than doing stack traces, etc., and
> reading the EPF source?
>
> Any and all help gratefully received.
>
> Thanks,
> Paul
Re: Publishing a Configuration in a script? [message #15143 is a reply to message #13806] Fri, 23 June 2006 12:31 Go to previous messageGo to next message
Brian Schlosser is currently offline Brian SchlosserFriend
Messages: 4
Registered: July 2009
Junior Member
I've added a patch to the bug.

The patch contains the following two hacks:
org.eclipse.epf.library.ui.LibraryUIManager.addConfiguration Contribution()
needs a try/catch(IllegalStateException) block around the entire method
body to catch the case that the WorkbenchWindow is not open. (This is
just a hack, the way that the contribution is made needs improved as it
doesn't play nice when the plugin is in something other that the EPFC RCP)

org.eclipse.epf.authoring.ui.AuthoringUIPlugin.start() commented out the
call to promptForMethodLibrary() because it forces the UI to open. See
also bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=146387

Brian Schlosser wrote:
> Paul,
>
> I have the same need, and have started to do some work in this area.
>
> I've opened Bugzilla record 148030 to track the issue, and will post a
> patch with the code I have so far.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030
>
> Brian.
>
> Paul Quinn wrote:
>> I would like to be able to publish an existing configuration from
>> EPF/RMC as a web site as part of a 'nightly build' script. I'm
>> relatively new to the Eclipse plugin world, but as I understand it, I
>> would create a headless plugin, which in turn makes the appropriate
>> calls to the EPF API.
>>
>> Is that the recommended strategy? Has anyone else done this
>> previously? Is there a source of information out there that could help
>> identify the API calls, etc. that I need, other than doing stack
>> traces, etc., and reading the EPF source?
>>
>> Any and all help gratefully received.
>>
>> Thanks,
>> Paul
Re: Publishing a Configuration in a script? [message #15177 is a reply to message #15143] Fri, 23 June 2006 16:58 Go to previous message
Eclipse UserFriend
Originally posted by: paul.quinn.xwave.com

Thanks, Brian. I'll take a look at your patch. I assume from the lack of
any other feedback that (a) this is the way to go (no flames, at least)
and (b) not many people have done it, although I'd be a little surprised
if the RMC/RUP group (Peter Haumer et al) within IBM doesn't have the
capability. Of course, maybe that's who you're building it for... ;^)

Cheers,
Paul
Re: Publishing a Configuration in a script? [message #564134 is a reply to message #13654] Wed, 21 June 2006 13:32 Go to previous message
Brian Schlosser is currently offline Brian SchlosserFriend
Messages: 4
Registered: July 2009
Junior Member
Paul,

I have the same need, and have started to do some work in this area.

I've opened Bugzilla record 148030 to track the issue, and will post a
patch with the code I have so far.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030

Brian.

Paul Quinn wrote:
> I would like to be able to publish an existing configuration from
> EPF/RMC as a web site as part of a 'nightly build' script. I'm
> relatively new to the Eclipse plugin world, but as I understand it, I
> would create a headless plugin, which in turn makes the appropriate
> calls to the EPF API.
>
> Is that the recommended strategy? Has anyone else done this previously?
> Is there a source of information out there that could help identify the
> API calls, etc. that I need, other than doing stack traces, etc., and
> reading the EPF source?
>
> Any and all help gratefully received.
>
> Thanks,
> Paul
Re: Publishing a Configuration in a script? [message #564213 is a reply to message #13806] Fri, 23 June 2006 12:31 Go to previous message
Brian Schlosser is currently offline Brian SchlosserFriend
Messages: 4
Registered: July 2009
Junior Member
I've added a patch to the bug.

The patch contains the following two hacks:
org.eclipse.epf.library.ui.LibraryUIManager.addConfiguration Contribution()
needs a try/catch(IllegalStateException) block around the entire method
body to catch the case that the WorkbenchWindow is not open. (This is
just a hack, the way that the contribution is made needs improved as it
doesn't play nice when the plugin is in something other that the EPFC RCP)

org.eclipse.epf.authoring.ui.AuthoringUIPlugin.start() commented out the
call to promptForMethodLibrary() because it forces the UI to open. See
also bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=146387

Brian Schlosser wrote:
> Paul,
>
> I have the same need, and have started to do some work in this area.
>
> I've opened Bugzilla record 148030 to track the issue, and will post a
> patch with the code I have so far.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=148030
>
> Brian.
>
> Paul Quinn wrote:
>> I would like to be able to publish an existing configuration from
>> EPF/RMC as a web site as part of a 'nightly build' script. I'm
>> relatively new to the Eclipse plugin world, but as I understand it, I
>> would create a headless plugin, which in turn makes the appropriate
>> calls to the EPF API.
>>
>> Is that the recommended strategy? Has anyone else done this
>> previously? Is there a source of information out there that could help
>> identify the API calls, etc. that I need, other than doing stack
>> traces, etc., and reading the EPF source?
>>
>> Any and all help gratefully received.
>>
>> Thanks,
>> Paul
Re: Publishing a Configuration in a script? [message #564238 is a reply to message #15143] Fri, 23 June 2006 16:58 Go to previous message
Eclipse UserFriend
Originally posted by: paul.quinn.xwave.com

Thanks, Brian. I'll take a look at your patch. I assume from the lack of
any other feedback that (a) this is the way to go (no flames, at least)
and (b) not many people have done it, although I'd be a little surprised
if the RMC/RUP group (Peter Haumer et al) within IBM doesn't have the
capability. Of course, maybe that's who you're building it for... ;^)

Cheers,
Paul
Previous Topic:Ordering of Tasks in EPF Composer
Next Topic:Import Export Method Plugin
Goto Forum:
  


Current Time: Fri Dec 13 02:57:20 GMT 2024

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

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

Back to the top