Home » Archived » EPF » Publishing a Configuration in a script?
Publishing a Configuration in a script? [message #13654] |
Fri, 16 June 2006 19:30 |
Eclipse User |
|
|
|
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 |
Brian Schlosser 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 |
Brian Schlosser 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 |
Eclipse User |
|
|
|
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 |
Brian Schlosser 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 |
Brian Schlosser 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 |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Fri Dec 13 02:57:20 GMT 2024
Powered by FUDForum. Page generated in 0.04697 seconds
|