{
try
{
ScmFileSet fileSet = new ScmFileSet( checkoutDirectory, relativized );
getLog().info( "scm add directory: " + relativized );
AddScmResult addDirResult = scmProvider.add( scmRepository, fileSet, "Adding directory" );
if ( !addDirResult.isSuccess() )
{
getLog().warn( " Error adding directory " + relativized + ": " + addDirResult.getCommandOutput() );
}
}
catch ( ScmException e )
{
//
}
}
}
else
{ // add all directories in one command
try
{
List<File> dirs = new ArrayList<File>( dirsToAdd );
ScmFileSet fileSet = new ScmFileSet( checkoutDirectory, dirs );
getLog().info( "scm add directories: " + dirs );
AddScmResult addDirResult = scmProvider.add( scmRepository, fileSet, "Adding directories" );
if ( !addDirResult.isSuccess() )
{
getLog().warn( " Error adding directories " + dirs + ": " + addDirResult.getCommandOutput() );
}
}
catch ( ScmException e )
{
//