Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-9074] Disable the "Exclude element CHECKEDOUT" option …
…when checking the "Use snaphost view" checkbox
  • Loading branch information
rseguy committed Mar 28, 2011
1 parent 16276ab commit afc215c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Expand Up @@ -448,6 +448,13 @@ public FormValidation doCheckComponent(@QueryParameter String value) {
return FormValidation.ok();
}

public FormValidation doCheckExcludeElementCheckedout(@QueryParameter boolean excludeElementCheckedout, @QueryParameter boolean snapshotView) {
if(excludeElementCheckedout && snapshotView) {
return FormValidation.error(ResourceBundleHolder.get(ClearCaseUcmBaselineParameterDefinition.class).format("NoExcludeWithSnapshotView"));
}
return FormValidation.ok();
}

public FormValidation doCheckMoreRecentThan(@QueryParameter String value) {
if(StringUtils.isNotBlank(value) && !value.matches(MORE_RECENT_THAN_REGEX)) {
return FormValidation.error(ResourceBundleHolder.get(ClearCaseUcmBaselineParameterDefinition.class).format("InvalidMoreRecentThanFormat"));
Expand Down
Expand Up @@ -28,6 +28,7 @@ DisplayName=ClearCase UCM baseline
Exclude\ element\ CHECKEDOUT=Exclude the <code>element * CHECKEDOUT</code> rule from the config spec
Force\ rmview=Force rmview
InvalidMoreRecentThanFormat=The value specified doesn''t match what''s expected; Take a look at the inline help to fix that
NoExcludeWithSnapshotView=When using a snapshot view, the element * CHECKEDOUT rule must not be excluded from the config spec
Promotion\ level=Promotion level
PromotionLevelShouldBeSet=Setting a promotion level allows reducing the size of the baselines that are offered to the user when starting a build; Shouldn''t you define one?
StreamShouldBeSet=Setting a stream allows reducing the size of the baselines that are offered to the user when starting a build; Shouldn''t you define one?
Expand Down
Expand Up @@ -26,9 +26,10 @@ Component=Composant
ComponentMustBeSet=Le composant ClearCase UCM doit obligatoirement &ecirc;tre sp&eacute;cifi&eacute;
DisplayName=Ligne de base ClearCase UCM
Display\ baselines\ more\ recent\ than=Afficher les lignes de base plus r&eacute;centes que
Exclude\ element\ CHECKEDOUT=Exclure la r&egrave;gle <code>element * CHECKEDOUT</code> de la sp&eacute;cification de configuration
Exclude\ element\ CHECKEDOUT=Exclure la r&egrave;gle element * CHECKEDOUT de la sp&eacute;cification de configuration
Force\ rmview=Forcer la recr&eacute;ation de la vue
InvalidMoreRecentThanFormat=La valeur specifi&eacute;e ne correspond pas &agrave; ce qui est attendu ; merci de consulter l''aide
NoExcludeWithSnapshotView=Lorsqu''une vue de type snapshot est utilis&eacute;e, la r&egrave;gle <code>element * CHECKEDOUT</code> ne doit pas &ecirc;tre exclue de la sp&eacute;cification de configuration
Promotion\ level=Niveau de promotion
PromotionLevelShouldBeSet=Sp&eacute;cifier un niveau de promotion permet de r&eacute;duire la liste de lignes de base qui sera offerte \u00e0 l''utilisateur lors du d&eacute;marrage d'un build ; ne devriez-vous pas en d&eacute;finir un ?
PVOB=PVOB
Expand Down

0 comments on commit afc215c

Please sign in to comment.