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 ) ; } } }
Sets the git repository uri