It's all about the answers!

Ask a question

looking for a delivery precondiion that stop java warnings


Edoardo Comar (1652) | asked Jan 10 '12, 9:01 a.m.
Hi
we are using 3.0.1 and would like the team advisor to stop deliver of java files with warnings,
not just for errors or unused imports.

The precondition is not a standard one

http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Ft_scm_eclipse_process_preconditions.html

thanks
Edoardo Comar - IBM Hursley JTC

3 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Jan 10 '12, 3:32 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You will need to write your own precondition for this.
There are messages in the jazz.extend forum providing pointers on how to get started.
Also, you should feel free to post an enhancement request, asking for this functionality to be added to the standard precondition.

Alternatively, you could just adjust your compiler settings to classify those problems as "errors" and then just use the standard precondition.

Cheers,
Geoff

Hi
we are using 3.0.1 and would like the team advisor to stop deliver of java files with warnings,
not just for errors or unused imports.

The precondition is not a standard one

http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Ft_scm_eclipse_process_preconditions.html

thanks
Edoardo Comar - IBM Hursley JTC

permanent link
Edoardo Comar (1652) | answered Jan 10 '12, 4:43 p.m.

Alternatively, you could just adjust your compiler settings to classify those problems as "errors" and then just use the standard precondition.

Thanks!
as for the last suggestion however, my request came about as I could not live with too many red Xs popping along as I code :D

permanent link
Matt Lennon (61225) | answered Jan 11 '12, 12:54 p.m.
JAZZ DEVELOPER
Hi Edoardo.

If you decide to write your own custom precondition, you may find this jazz.net wiki article useful:

https://jazz.net/wiki/bin/view/Main/CustomPreconditionsLandingSite

It gives a quick overview of the topic and provides links to related articles, tutorials, etc.

You may want to look at the code for com.ibm.team.filesystem.internal.ide.java.ui.deliver.ProhibitUnusedImportsAdvisor which is a client-side "deliver" precondition that does something very similar to what you want. Note that this code is not part of the officially supported RTC API, subject to change or deletion without notice, etc.

Your answer


Register or to post your answer.