Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

looking for a delivery precondiion that stop java warnings

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

0 votes



3 answers

Permanent link
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

0 votes


Permanent link

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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 10 '12, 9:01 a.m.

Question was seen: 3,493 times

Last updated: Jan 10 '12, 9:01 a.m.

Confirmation Cancel Confirm