protected void updateScm ( Scm value , String xmlTag , Counter counter , Element element ) { boolean shouldExist = value != null ; Element root = updateElement ( counter , element , xmlTag , shouldExist ) ; if ( shouldExist ) { Counter innerCount = new Counter ( counter . getDepth ( ) + 1 ) ; findAndReplaceSimpleElement ( innerCount , root , "connection" , value . getConnection ( ) , null ) ; findAndReplaceSimpleElement ( innerCount , root , "developerConnection" , value . getDeveloperConnection ( ) , null ) ; findAndReplaceSimpleElement ( innerCount , root , "tag" , value . getTag ( ) , "HEAD" ) ; findAndReplaceSimpleElement ( innerCount , root , "url" , value . getUrl ( ) , null ) ; } }
Method updateScm .