You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-dev@maven.apache.org by Krashan Brahmanjara <kr...@wp.pl> on 2009/05/22 12:08:59 UTC

StatusScmResult.getChangedFiles not filled with files list

Hi
After upgrading do SlikSvn 1.6 executing of svn.exe no longer fills
StatusScmResult.getChangedFiles list. 

I/m testing buildnumeber-maven-plugin. There are executed lines

    ScmRepository repository = getScmRepository();
    ScmProvider scmProvider =
scmManager.getProviderByRepository(repository);
    StatusScmResult result = scmProvider.status(repository, new
ScmFileSet(scmDirectory));
    getLog().info("Status3 1..." + result.getCommandLine());
    getLog().info("Status3 2..." + result.getCommandOutput());
    getLog().info("Status3 3..." + result.getProviderMessage());
    getLog().info("Status3 4..." + result.getChangedFiles().toString());
    getLog().info("Status3 5..." + result.isSuccess());
    getLog().info("Status3 6..." + result.hashCode());
    getLog().info("Status3 7..." + result.toString());

result.getChangedFiles is empty array but list of changed files are
displayed.

Console output
(...)
[DEBUG]   org.apache.maven.scm:maven-scm-api:jar:1.2
[DEBUG]   org.apache.maven.scm:maven-scm-manager-plexus:jar:1.2
[DEBUG]   org.apache.maven.scm:maven-scm-provider-accurev:jar:1.2
(...)
[INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
[INFO] Working directory: D:\oss\workspace\oss\oss-services\oss-services-web
[DEBUG] ?       .revision
[DEBUG] M       src\main\java\pl\asseco\oss\test\web\TestSlownikiWS.java
[DEBUG] M       pom.xml
[INFO] Status3 1...cmd.exe /X /C "svn --non-interactive status"
[INFO] Status3 2...null
[INFO] Status3 3...null
[INFO] Status3 4...[]
[INFO] Status3 5...true
[INFO] Status3 6...32219102
[INFO] Status3
7...org.apache.maven.scm.command.status.StatusScmResult@1eb9fde
[INFO] Status ...[]size 0


I suppose that svn works OK but problem is in reading file data from console
output.



-- 
View this message in context: http://www.nabble.com/StatusScmResult.getChangedFiles-not-filled-with-files-list-tp23667711p23667711.html
Sent from the Maven - SCM mailing list archive at Nabble.com.