Author: olamy Date: Sun Oct 14 14:58:56 2012 New Revision: 1398095 URL: http://svn.apache.org/viewvc?rev=1398095&view=rev Log: an other workaround is used in maven-scm for windows
Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java?rev=1398095&r1=1398094&r2=1398095&view=diff ============================================================================== --- maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java (original) +++ maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java Sun Oct 14 14:58:56 2012 @@ -611,29 +611,11 @@ public abstract class AbstractScmPublish 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 )