Please, file an issue with eventually a patch and we'll fix it.

Emmanuel

[EMAIL PROTECTED] a écrit :
Good day!

I’ve tried to checkout my project from SVN repository using your SCM adapter. It seems that it works a little bit incorrectly during parsing SVN output. (line “Unknown file status: ‘ ‘):

And that is the result of executing the same svn checkout command (svn --non-interactive checkout http://dir-helper/svn/DB3426/Source/bigFileLoader checkout):

As you can see file status at last line is printed at second position ( U checkout). I decompiled org.apache.maven.scm.provider.svn.command.checkout.SvnCheckOutConsumer class and drew attention at method /consumeLine/:

*public void *consumeLine(String line)

          {

*              if*(line.length() <= 3)

              {

logger.warn("Unexpected input, the line must be at least three characters long. Line: '" + line + "'.");

*                  return*;

              }

    String statusString = *line.substring(0, 1);***

              String file = line.substring(3);

*              if*(line.startsWith("Checked out revision"))

              {

String revisionString = line.substring("Checked out revision".length() + 1, line.length() - 1);

*                  try*

                  {

                      revision = Integer.parseInt(revisionString);

                  }

*                  catch*(NumberFormatException ex) { }

*                  return*;

              }

              ScmFileStatus status;

*              if*(statusString.equals("A"))

                  status = ScmFileStatus.ADDED;

*              else*

*              if*(statusString.equals("U"))

              {

                  status = ScmFileStatus.UPDATED;

              } *else*

              {

logger.info("Unknown file status: '" + statusString + "'.");

*                  return*;

              }

*              if*(!(*new *File(workingDirectory, file)).isFile())

              {

*                  return*;

              } *else*

              {

                  checkedOutFiles.add(*new *ScmFile(file, status));

*                  **return*;

              }

Possible solution could be trimming the *line* variable.

Thanks. I’ll be waiting for your reply and fix.

Best regards, Tim Nizametdinov, developer

mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


Reply via email to