code: public void setUri(String uri) {
                  if (GitTaskUtils.isNullOrBlankString(uri)) {
                          throw new BuildException("Can't set null URI attribute.");
                  }
  
                  if (this.uri == null) {
                          try {
                                  new URIish(uri);
                                  this.uri = uri;
                          } catch (URISyntaxException e) {
                                  throw new BuildException(String.format("Invalid URI '%s'.", uri), e);
                          }
                  }
          }
docs: Sets the git repository uri
  
  @antdoc.notrequired
  @param uri The repository uri