[jbosstools-issues] [JBoss JIRA] (JBIDE-21952) Enforce non empty git source parameter in templates

Marián Labuda (JIRA) issues at jboss.org
Wed Mar 23 09:25:00 EDT 2016


     [ https://issues.jboss.org/browse/JBIDE-21952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marián Labuda updated JBIDE-21952:
----------------------------------
    Fix Version/s: 4.4.0.Alpha1
                       (was: 4.3.1.CR1)


> Enforce non empty git source parameter in templates
> ---------------------------------------------------
>
>                 Key: JBIDE-21952
>                 URL: https://issues.jboss.org/browse/JBIDE-21952
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 4.3.1.Beta2
>            Reporter: Fred Bricon
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.4.0.Alpha1
>
>
> Following JBIDE-21340, we need to add validation of required git source parameter property in ParameterListPage.
> To find out what parameter is the git repository url you'd do:
> {code}
> public String getGitRepoParameterKey() {
> 	ITemplate template = model.getSelectedTemplate();
> 	if (template != null) {
> 		for(String key : new String[]{"SOURCE_REPOSITORY_URL", "GIT_URI"}) {
> 			if (template.getParameters().containsKey(key)) {
> 				return key;
> 			}
> 		}
> 	}
> 	return null;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list