an other workaround is used in maven-scm for windows
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1398095 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java b/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
index 3fa5b43..67bf9d7 100644
--- a/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
+++ b/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
@@ -611,29 +611,11 @@
try
{
-
- // MSCMPUB-2: so add files one by one operation is local no remote access so not so slow
- if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
- {
- for (File file : addedList)
- {
- CommandParameters commandParameters = new CommandParameters();
- commandParameters.setString( CommandParameter.MESSAGE, "Adding new site files." );
- commandParameters.setString( CommandParameter.FORCE_ADD, Boolean.TRUE.toString() );
- ScmFileSet addedFile = new ScmFileSet( checkoutDirectory, file );
- checkScmResult( scmProvider.add( scmRepository, addedFile, commandParameters ),
- "add new files to SCM" );
- }
- }
- else
- {
CommandParameters commandParameters = new CommandParameters();
commandParameters.setString( CommandParameter.MESSAGE, "Adding new site files." );
commandParameters.setString( CommandParameter.FORCE_ADD, Boolean.TRUE.toString() );
checkScmResult( scmProvider.add( scmRepository, addedFileSet, commandParameters ),
"add new files to SCM" );
- }
-
}
catch ( ScmException e )