Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-21952

Enforce non empty git source parameter in templates

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.4.0.Alpha1
    • 4.3.1.Beta2
    • openshift
    • None

      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:

      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;
      }
      

            scabanovich Viacheslav Kabanovich (Inactive)
            fbricon@redhat.com Fred Bricon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: