It's all about the answers!

Ask a question

Running advisors outside of an operation


Nicolas Dangeville (31632425) | asked Apr 06 '07, 12:30 p.m.
JAZZ DEVELOPER
Based on the example provided by the eclipse way process, we have seen that
some advisors gather warnings or errors set by the compiler, some set the
status of a jazz artifact (workitem correctly populated), and some perform
controls of their own (is there a copyright in the source).

Is there a way to run these advisors alone, outside of the context of an
operation? basically, I would like to check the copyrights but not try to
deliver. I guess it applies also to the first and second type of controls as
well.

Many thanks,

Nicolas

3 answers



permanent link
Jared Burns (4.5k29) | answered Apr 06 '07, 5:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Support for this is build into the platform (it's possible to ask the
Process framework to run all advisors for an operation without actually
executing it), but this isn't currently surfaced in the change set UI.

This request is tracked in bug 11860.

- Jared

Nicolas Dangeville wrote:
Based on the example provided by the eclipse way process, we have seen that
some advisors gather warnings or errors set by the compiler, some set the
status of a jazz artifact (workitem correctly populated), and some perform
controls of their own (is there a copyright in the source).

Is there a way to run these advisors alone, outside of the context of an
operation? basically, I would like to check the copyrights but not try to
deliver. I guess it applies also to the first and second type of controls as
well.

Many thanks,

Nicolas


permanent link
Randy Hudson (216243) | answered Apr 07 '07, 10:07 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Do such advisors (e.g. missing copyright) generate markers in my
eclipse:workspace? It seems like some advisor types are closely related to
eclipse:workspace builders. Maybe markers which prevent delivery of a
change set would be displayed in the pending changes view?

Can any existing Eclipse builder/mechanism which generates a Marker be
flagged using an advisor? For example, a tool which checks code formatting.

"Jared Burns" <jared_burns@us.ibm.com> wrote in message
news:ev6bom$1sf$1@localhost.localdomain...
Support for this is build into the platform (it's possible to ask the
Process framework to run all advisors for an operation without actually
executing it), but this isn't currently surfaced in the change set UI.

This request is tracked in bug 11860.

- Jared

Nicolas Dangeville wrote:

permanent link
Jared Burns (4.5k29) | answered Apr 07 '07, 11:25 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Randy Hudson wrote:
Do such advisors (e.g. missing copyright) generate markers in my
eclipse:workspace? It seems like some advisor types are closely
related to
eclipse:workspace builders. Maybe markers which prevent delivery of a
change set would be displayed in the pending changes view?

The current set of advisors don't create markers. The request to show
process problems in the Pending Changes view is Bug 10996.

Can any existing Eclipse builder/mechanism which generates a Marker be
flagged using an advisor? For example, a tool which checks code
formatting.


Yes, this is how the "Prohibit Unused Imports" advisor works.
Client-side advisors are contributed via an extension point so they can
do anything that you can implement in an Eclipse plugin.

- Jared

Your answer


Register or to post your answer.