This is an automated email from the ASF dual-hosted git repository. olamy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-scm.git
The following commit(s) were added to refs/heads/master by this push: new e91395e [SCM-881] svn add in binary mode when requested (#68) e91395e is described below commit e91395e8d8080e31538633bccd9ea4ccb804bb40 Author: basinilya <basini...@gmail.com> AuthorDate: Fri Apr 13 06:15:11 2018 +0300 [SCM-881] svn add in binary mode when requested (#68) --- .../scm/provider/svn/svnexe/command/add/SvnAddCommand.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/add/SvnAddCommand.java b/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/add/SvnAddCommand.java index 9d5f1d0..eb8ced7 100644 --- a/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/add/SvnAddCommand.java +++ b/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/add/SvnAddCommand.java @@ -49,12 +49,6 @@ public class SvnAddCommand boolean binary ) throws ScmException { - // TODO: could do this with propset? - if ( binary ) - { - throw new ScmException( "This provider does not yet support binary files" ); - } - if ( fileSet.getFileList().isEmpty() ) { throw new ScmException( "You must provide at least one file/directory to add" ); @@ -62,6 +56,12 @@ public class SvnAddCommand Commandline cl = createCommandLine( fileSet.getBasedir(), fileSet.getFileList() ); + if ( binary ) + { + cl.createArg().setValue( "--config-option" ); + cl.createArg().setValue( "config:miscellany:enable-auto-props=no" ); + } + SvnAddConsumer consumer = new SvnAddConsumer( getLogger() ); CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer(); -- To stop receiving notification emails like this one, please contact ol...@apache.org.